Re: Reload all included javascript src
- From: Hrvoje Vencl <hrvojevencl@xxxxxxxxx>
- Date: 20 May 2007 12:18:20 -0700
Thanks,
but I think I will re-write it to ajax, as it will take less time for
me to do it like that.
Randy Webb je napisao/la:
Hrvoje Vencl said the following on 5/19/2007 8:07 AM:
Hi Randy,
Umm, hi.
can you write here a simple script that would do that job?
To do what job? Quote what you are replying to so people know what you
are referring to.
In that called script I only use:
document.write('some html code here');
Executing that script one time after the page loads would be the limit.
After the page loads, if you document.write to the page then it replaces
the current page. So, the only thing that would be in your page is the
html in the string you wrote. If you want to be able to continuously
execute the script without destroying the current page you need to use
something like DynWrite from the FAQ. Then, wrap it in a function and
simply call the function, end of problems. No need to try to keep
"reloading all included script files".
Just to answer the question, search the archives for loadJSFile and you
can find many different variations of a function that will load .js
files on the fly. You would simply have to loop through the script tags,
pick up the src attribute, and loadJSFile load the file again.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
.
- Follow-Ups:
- Re: Reload all included javascript src
- From: Randy Webb
- Re: Reload all included javascript src
- References:
- Reload all included javascript src
- From: Hrvoje Vencl
- Re: Reload all included javascript src
- From: Randy Webb
- Re: Reload all included javascript src
- From: Hrvoje Vencl
- Re: Reload all included javascript src
- From: Randy Webb
- Reload all included javascript src
- Prev by Date: Re: FAQ Topic - When should I use eval?
- Next by Date: Re: Subject changed to: Windows Update and non-IE browsers
- Previous by thread: Re: Reload all included javascript src
- Next by thread: Re: Reload all included javascript src
- Index(es):
Relevant Pages
|