llLoadURL

From Second Life Wiki
Revision as of 00:07, 12 November 2007 by Void Singer (talk | contribs) (changed order of flags (func= THEN sort=) to attempt proper placement in function category)
Jump to navigation Jump to search

Summary

Function: llLoadURL( key avatar_id, string message, string url );
10.0 Forced Delay
10.0 Energy

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.

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

Signature

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