How is the Hyperlink widget meant to work?

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
joerattz
New User
Posts: 17
Joined: Thu May 26, 2011 1:57 pm
First Name: Joe
Last Name: Rattz
Company Name: Genuine Parts Company
Contact:

How is the Hyperlink widget meant to work?

Post by joerattz »

I know I must be missing it, but I don't see a widget property to set for the href. When I look at the rendered HTML for my hyperlink, the href is set to "javascript:void(0)" but I don't know how that got there.

Also, there is no target property. I did see this post:

http://profoundlogic.com/forums/phpbb3/ ... =hyperlink

But it seems like such a hack. Not to mention that if you don't want to open a new browser window, I still don't know how to set the widget's href. I would expect a widget to make this all a bit easier.

Thanks.
User avatar
Brian
Profound Logic Staff Member
Posts: 286
Joined: Thu Apr 14, 2011 10:23 am
First Name: Brian
Last Name: May
Company Name: Profound Logic Software
Contact:

Re: How is the Hyperlink widget meant to work?

Post by Brian »

Well, the hyperlink widget is actually intended to send a response to your RPG program. In that way, it is not much different than a button.

Using window.open() on the onclick event isn't really a hack, it is to keep your application stateful. Profound UI goes to a lot of trouble to keep your application stateful so that control can return to your RPG program as you would expect. If you clicked a hyperlink with a href set to another page, that would be the equivalent of killing your terminal session in the middle of a green screen application.

Does this clarify a bit?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests