Javascript and Frames

K

Kent Feiler

One thing I like about frames is that they're a good place to stow
Javascript. Javascript that I'd like to be around while the visible
content of the screen changes goes in the frame declaration HTML file.
It never needs to be reloaded and JS variables can be updated there as
the visible screens progress.

But...if I want to be a good internet samaritan and not use frames,
what's the best way to replace that function?



Regards,


Kent Feiler
www.KentFeiler.com
 
L

Laurent Bugnion

Hi,

Kent said:
One thing I like about frames is that they're a good place to stow
Javascript. Javascript that I'd like to be around while the visible
content of the screen changes goes in the frame declaration HTML file.
It never needs to be reloaded and JS variables can be updated there as
the visible screens progress.

But...if I want to be a good internet samaritan and not use frames,
what's the best way to replace that function?



Regards,


Kent Feiler
www.KentFeiler.com

The modern alternative would be to go AJAX. Load your scripts once, and
update the document using XmlHttpRequest, in an "invisible" way.

HTH,
Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top