[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: frame refreshing in javascript



At 09:44 AM 3/1/96 -0500, you wrote:
>2) Using onLoad, I know how to get a frame to load multiple other frames when
>   the frame itself is loaded.  However, is it possible (or does anyone know
>   how) to get a frame to refresh itself when the value of some internal
>   variable is altered?  For example, here is some JavaScript-esque pseudo-code
>
>         ...
>         var frameIO = find_frame(top, 'User');
>         var formStatus = find_form(frameIO, 'Status');
>         if (formStatus != null)
>            {
>            formStatus.element[i].value = foo;    // element[i] is a hidden
input field 
>            refresh_frame(frameIO);               // the funciton I'm
trying to figure out
>

In the above code, you could use:

 parent.frameName.location = '#' 

to reload the page.  A similar question was already answered at the
JavaScript FAQ, 'How do I make a button that will reload my page?' 
You can take a look at http://www.his.com/~smithers/freq/beta/index.html

Andy Augustine

--------------------------------------------------------------------
This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.