Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript in <head> gets erased when Updating pages

Status
Not open for further replies.

boballoo

Technical User
Apr 21, 2002
6
JP
DW 4.01 on Win2k
I have a javascript between the head tag on one page which is attached to a template. The template does not have the script. If I make the javascript an editable region so that it is not changed when the template is applied, strange things happen to the page so that I can't view it and have to remove the "Editable region" with a text editor. Someone told me I have to make the script a library item and save it as a script asset. When I go to the library window there is no place to create a new script. How can I put scripts in the head tag without having them get erased when the template is applied?

I have had this problem for a long time. Any solutions?

Bob
 
Try putting the script in another file then using an include file to include the file with the script in it.

There's also a new extension at MM which assist with adding extra stuff to the ehader when working wiht templats. haven't used it, but its worth a look.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top