Difference between revisions of "LlLoadURL"

From Second Life Wiki
Jump to navigation Jump to search
(The examples have to copy nicely.)
Line 14: Line 14:
<div style="margin:0.4em 0em 0.5em 0em;border:1px solid #AAAAAA;line-height:1.1em;font-family: Courier New, Courier, mono;padding-top: 0.5em;padding: 0.5em 0em 0.5em 0.5em;">
<div style="margin:0.4em 0em 0.5em 0em;border:1px solid #AAAAAA;line-height:1.1em;font-family: Courier New, Courier, mono;padding-top: 0.5em;padding: 0.5em 0em 0.5em 0.5em;">
<div style="color: #FF7700;">// Display URL Dialog</div>
<div style="color: #FF7700;">// Display URL Dialog</div>
  <div><span style="color: #007700;">key</span> gAvatarKey;</div>
  <div>&nbsp;</div>
   <div style="color: #A00000;">default</div>
   <div style="color: #A00000;">default</div>
   <div>{</div>
   <div>{</div>
   <div style="padding-left: 2em;"><span style="color: #A00000">touch_start</span>(<span style="color: #007700;">integer</span> num_detected)</div>
   <div>{{Tab}}<span style="color: #A00000">touch_start</span>(<span style="color: #007700;">integer</span> num_detected)</div>
   <div style="padding-left: 2em;">{</div>
   <div>{{Tab}}{</div>
   <div style="padding-left: 4em;">gAvatarKey = <span style="color: #A00000;">[[llDetectedKey]](0)</span>;</div>
   <div>{{Tab|2}}<span style="color: #007700;">key</span> gAvatarKey = <span style="color: #A00000;">[[llDetectedKey]](0)</span>;</div>
   <div style="padding-left: 4em;"><span style="color: #A00000">llLoadURL</span>(gAvatarKey, <span style="color: #007700">"View the offical Second Life website."</span>, <span style="color: #007700">"<nowiki>http://www.secondlife.com"</nowiki></span>);</div>
   <div>{{Tab|2}}<span style="color: #A00000">llLoadURL</span>(gAvatarKey, <span style="color: #007700">"View the offical Second Life website."</span>, <span style="color: #007700">"<nowiki>http://www.secondlife.com"</nowiki></span>);</div>
   <div style="padding-left: 2em;">}</div>
   <div>{{Tab}}}</div>
   <div>}</div>
   <div>}</div>
</div>
</div>

Revision as of 06:41, 3 May 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
default
{
{{#pad:|

24

| |right}}touch_start(integer num_detected)
{{#pad:|

24

| |right}}{
{{#pad:|

48

| |right}}key gAvatarKey = llDetectedKey(0);
{{#pad:|

48

| |right}}llLoadURL(gAvatarKey, "View the offical Second Life website.", "http://www.secondlife.com");
{{#pad:|

24

| |right}}}
}

Deep Notes

Search JIRA for related Issues

Signature

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