Hello All,
please excuse me for probably a very dumb question... I am no developer, just a M.D. and I am also new to JavaScript'ing...
I wanted to leave a script on the server to speed up the loading of pages where it is used and also to be able to make changes (if need be) only at one place (the script) instead of in all pages using it...
Now... According to the advice I found at CodeAvenue.com, I created a new folder on the server and put my script into it as a separate .js file, then I deleted the script from the page(s) using it and wrote there this instead:
<script language="JavaScript" src=http://www.webdeveloper.com/forum/archive/index.php/"_scripts/script_DE.js"></script>
Now the script doesn't work... I tried to put this line between <head> and </head> and then between <body> and </body> - all in vain... The script just won't work.
What did I do wrong? Is there perhaps any other way to leave a script on the server and still make it work when the page loads?
Any help will be GREATLY appreciated!
PS: Just two more bizarr thoughts... Is it because I put the script into an invisible folder ("_scripts")? Or can there be something particular about the srcipt itself why it won't work when left on server?
please excuse me for probably a very dumb question... I am no developer, just a M.D. and I am also new to JavaScript'ing...
I wanted to leave a script on the server to speed up the loading of pages where it is used and also to be able to make changes (if need be) only at one place (the script) instead of in all pages using it...
Now... According to the advice I found at CodeAvenue.com, I created a new folder on the server and put my script into it as a separate .js file, then I deleted the script from the page(s) using it and wrote there this instead:
<script language="JavaScript" src=http://www.webdeveloper.com/forum/archive/index.php/"_scripts/script_DE.js"></script>
Now the script doesn't work... I tried to put this line between <head> and </head> and then between <body> and </body> - all in vain... The script just won't work.
What did I do wrong? Is there perhaps any other way to leave a script on the server and still make it work when the page loads?
Any help will be GREATLY appreciated!
PS: Just two more bizarr thoughts... Is it because I put the script into an invisible folder ("_scripts")? Or can there be something particular about the srcipt itself why it won't work when left on server?