Page 1 of 1

How is the Hyperlink widget meant to work?

Posted: Thu Nov 10, 2011 5:16 pm
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.

Re: How is the Hyperlink widget meant to work?

Posted: Thu Nov 10, 2011 6:23 pm
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?