Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Viewer 2 Force_a_page_reload  

Force_a_page_reload

Force_a_page_reload

Category: Viewer 2
By : Becky Pippen
Created: 2010-09-02 Edited: 2010-09-02
Worlds: Second Life

the Zip file

Download all files for Force_a_page_reload
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Force_a_page_reload_1.lsl
1 integer face = 4;
2 string myURL;
3 integer seq = 0; // sequence number for unique URLs
4
5 default
6 {
8 {
10 }
11
12 http_request(key id, string method, string body)
13 {
14 if(method == URL_REQUEST_GRANTED) {
15 myURL = body;
16 llSetPrimMediaParams(face,
17 [PRIM_MEDIA_AUTO_PLAY, TRUE,
18 PRIM_MEDIA_CURRENT_URL, myURL]);
19 llSetTimerEvent(5.0);
20 } else if(method == "GET") {
21 llHTTPResponse(id, 200, "Sim FPS: " + (string)llGetRegionFPS());
22 }
23 }
24
25 timer()
26 {
27 llSetPrimMediaParams(face,
28 [PRIM_MEDIA_CURRENT_URL, myURL + "/?r=" + (string)(++seq)]);
29 }
30 }

Back to the Best Free Tools in Second Life and OpenSim.