User:Void Singer/To Go Cup

From Second Life Wiki
< User:Void Singer
Revision as of 21:58, 7 May 2011 by Void Singer (talk | contribs) (experimental tool for teacup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To Go Cup

What is it?


To Go Cup is an experimental support script for the Teacup Server In a Prim. It adds click to load support for viewing pages in the internal browsers of viewers that either do not support, or have disabled, MOAP. It does not support loading to an external browser at this time (SL limitation, see VWR-25555 for details)

Code

To Go Cup


  • Save to a script named "To Go Cup", and drop in the same prim as your Teacup server.

<lsl>default{

   touch_start( integer total_number ){
       if (llDetectedLinkNumber( 0 ) == llGetLinkNumber()){
           string vStrURL = llList2String( llGetPrimitiveParams( [PRIM_TEXT] ), 0 );
           if("No URL" == vStrURL){
vStrURL = "data:text/html;charset:UTF-8,<html><body>

" + vStrURL + "

</body></html>";
           }else{
               vStrURL = "data:text/html;charset:UTF-8,<html><head><base href='" + vStrURL +
                 "'/><script src='teacup.js'></script></head><body>Loading...</body></html>";
           }
           llLoadURL( llDetectedKey( 0 ), "", vStrURL );
       }
   }

}</lsl>

Return to top

Notes:

Version/Upgrade/Compatibility/Bugs


This script is versionless as it's an experimental tool to add support to Teacup. If it's found to work without bugs or problems it will be incorporated directly into that script, and this page will be removed.

Testors

the following Viewers need tested to ensure smooth functioning, please update their status if you test with any of these (MOAP enable viewers can test by clicking on the back side without disabling MOAP)

  • v2.6+ (Official Release): Unknown
  • v1.23 (official release): Unknown
  • Singularity: Unknown
  • Imprudence: Unknown
  • Emergence: Unknown
  • Firestorm: Unknown
  • Emergence: Unknown
  • Snowglobe: Unknown
  • Kirstens: Unknown
  • Phoenix: (908 tested) Works, full url is displayed in the internal browser and page loads as expected.
  • Cool VL: Unknown
  • Rainbow: Unknown
  • Any other publicly available viewer with current support: ???
Return to top