[Javascript]Passive,Javascript-callable,in-line(PHP)codereferences wit

Andrew Gibson andyg at ihug.co.nz
Tue Apr 8 17:30:58 CDT 2003


I've used a hidden frame for a similar effect, probably a mickey mouse way
of doing it, but........

Have a function on the main page access a function in the hidden frame.

something like

<a href=javascript:parent.frames['hidden'].getData()><Get data from
server</a>

and then in the hidden frame have the function populate a form and post it.
Then whenever data i get from the server, I write to a <div> or whatever on
the main page from the hidden frame.

Andrew




>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>http://ashleyit.com/rs/jsrs/select/php/select.php  for his remote
>scripting,

This script also uses a hidden iframe, but it dynamically writes it into the
page. Otherwise it's, sorry to say so, typically server-side-programmer's
JavaScript: far too much code for a not so very complicated effect.

But it does what you want, no doubt about that.

--------------------------------------------------





More information about the Javascript mailing list