Hi, All
I have some *.js files that i'm using to hold data that is sent to a div tag using innerHTML, I'm using the onclick event to change the name of the *.js file so that it loads new data i.e ( onclick='rtf.src=file2.js';getdata(); ) changing it to file2 from file1, but the trouble is when it's the first time you load the page it takes two clicks for the data in innerHTML to change, but once you've clicked on everyone of them it will change with one click. This makes me think the *.js files need to be loaded into the browser cache first, maybe i'm wrong, but any advice is good.
thanks.
I have some *.js files that i'm using to hold data that is sent to a div tag using innerHTML, I'm using the onclick event to change the name of the *.js file so that it loads new data i.e ( onclick='rtf.src=file2.js';getdata(); ) changing it to file2 from file1, but the trouble is when it's the first time you load the page it takes two clicks for the data in innerHTML to change, but once you've clicked on everyone of them it will change with one click. This makes me think the *.js files need to be loaded into the browser cache first, maybe i'm wrong, but any advice is good.
thanks.