![]() |
url in a gui window
How do I put an url in a gui text window?
I am using the GuiMLTextProfile and in the text="<a href=http://url.here>link here</a>"; the link can be clicked on but no web page opens. I searched these forums and the wiki but could not find an answer. What I found on the wiki on page http://wiki.graal.us/GScript#GuiMLTextCtrl: and am using is this PHP Code:
|
Are you sure this isnt a technical problem conserning your browser?
I know firefox has a long warmup time, and sometimes flags in other programs arent picked up by it. |
Quoted from the very same part of the page you linked to:
Quote:
|
The onURL(url) command
has insufficient documentation for it to be useful (as is the case with much of the wiki). I could find no example of it in use. I understand that the http://website.address.com goes betweek the parentheses, but where does the text for what you want the user click on go? |
Look what happens when you try:
PHP Code:
|
Please post GS2-specific questions in the GS2 subforum. Redirects will be left for now for convenience.
|
Well nano, I tried it, and I see that nothing happens.
no link shows up in the text place regardless of where I add that code. PHP Code:
I tried putting the function in the text string too, but all that does is convert the function to display text. I tried putting it where the @player.nick is but that does not show anything either. What am I doing wrong here? |
First off, I do not see a URL in what you posted. URLs are defined using the standard HTML <a href> tag or the Torque script <a:url>, also do not include the http://.
Try using a catch event instead. HTML Code:
thiso.catchevent(name, "onURL", "urlClicked");HTML Code:
function urlClicked(obj, url) openURL(url); |
| All times are GMT +2. The time now is 09:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.