Difference between revisions of "LlLoadURL"

From Second Life Wiki
Jump to: navigation, search
Line 12: Line 12:
 
|constants
 
|constants
 
|examples=
 
|examples=
 +
<p style="margin:0.4em 0pt 0.5em; border:1px solid #AAAAAA; line-height:1.1em;">
 
<font face="Courier New, Courier, mono"><font color="#FF7700">// Display URL Dialog</font><br />
 
<font face="Courier New, Courier, mono"><font color="#FF7700">// Display URL Dialog</font><br />
 
<font color="#007700">key</font> gAvatarKey;<br />
 
<font color="#007700">key</font> gAvatarKey;<br />
Line 17: Line 18:
 
<font color="#A00000">default</font><br />
 
<font color="#A00000">default</font><br />
 
{<br />
 
{<br />
&nbsp;&nbsp;&nbsp;<font color="#00A0A0">&nbsp;touch_start</font>(<font color="#007700">integer</font> num_detected)<br />
+
&nbsp;&nbsp;&nbsp;&nbsp;<font color="#00A0A0">touch_start</font>(<font color="#007700">integer</font> num_detected)<br />
 
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
 
&nbsp;&nbsp;&nbsp;&nbsp;{<br />
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gAvatarKey = <font color="#A00000">llDetectedKey(0)</font>;<br />
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gAvatarKey = <font color="#A00000">llDetectedKey(0)</font>;<br />
Line 24: Line 25:
 
}
 
}
 
</font>
 
</font>
 +
</p>
 
|helpers
 
|helpers
 
|also_functions
 
|also_functions

Revision as of 16:52, 24 April 2007

Summary

Function: llLoadURL( key avatar_id, string message, string url );

Shows dialog to avatar avatar_id offering to load web page at url with message.
If user clicks yes, launches the page in their web browser, starting the browser if required.

• key avatar_id
• string message
• string url

The url is truncated to 255 characters and message is truncated to 254 characters. Introduced in version 1.6, this function was disabled for group deeded items. As of version ~1.9, the function was enabled for group deeded items. In the server upgrade released on 2007-03-14, it appears that the function is again disabled for group deeded items (please change it back!).

Caveats

  • This function causes the script to sleep for 10.0 seconds.
All Issues ~ Search JIRA for related Bugs

Examples

// Display URL Dialog
key gAvatarKey;

default
{
    touch_start(integer num_detected)
    {
        gAvatarKey = llDetectedKey(0);
        llLoadURL(gAvatarKey, "View the offical Second Life website.", "http://www.secondlife.com");
    }
}

Deep Notes

Search JIRA for related Issues

Signature

function void llLoadURL( key avatar_id, string message, string url );