This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > February 2004 > refresh





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author refresh
Unregistered

2004-01-30, 2:07 am

I have a question fr {ome scripting experts out there. I want to design a vrmlscript in the script node when triggered will refresh the wrl page. The same effect as clicking Refresh at the internet explorer. How can I do that? Thanks in idvance!
Muaddib

2004-01-30, 8:30 am

Unregistered,
All refresh is doing is eliminating the instance of the current
world you are in and replacing it with a new instance of itself. For
that, check out the Browser.loadURL javascript api call in
the annotated spec:
http://www.caip.rutgers.edu/vrlab/v...otated/BOOK.HTM
Under the Javascript listing (top of the screen), Browser sublisting
(left side of screen).
Take care,
Muaddib

Unregistered wrote:
quote:

> I have a question fr some scripting experts out there. I want to design
> a vrmlscript in the script node when triggered will refresh the wrl
> page. The same effect as clicking Refresh at the internet explorer. How
> can I do that? Thanks in advance!
>
>
> Unregistered -
> ------------------------------------------------------------------------
> Posted via http://www.forum4designers.com
> ------------------------------------------------------------------------
> View this thread: http://www.forum4designers.com/message39239.html
>




--
-------------------------------------------------------
VRSpace - An open source, 3D, modular, cross-platform,
multi-user system with persistent shared objects.
Check out a demo at http://www.vrspace.org/demo.htm
-------------------------------------------------------

Paul Aslin

2004-02-01, 12:30 pm

Simple.

Browser.loadURL(Browser.getWorldURL(),'');

loadURL is usually used with a string, but in this case we use
Browser.getWorldURL() to retrieve the URL of the world directly.

This method means if you rename/move the world you don't need to
change the file.

Unregistered <Guest.10u34q@mail.forum4designers.com> wrote in message news:<Guest.10u34q@mail.forum4designers.com>...
quote:

> I have a question fr some scripting experts out there. I want to design
> a vrmlscript in the script node when triggered will refresh the wrl
> page. The same effect as clicking Refresh at the internet explorer. How
> can I do that? Thanks in advance!
>
>
> Unregistered -
> ------------------------------------------------------------------------
> Posted via http://www.forum4designers.com
> ------------------------------------------------------------------------
> View this thread: http://www.forum4designers.com/message39239.html


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews