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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dreamweaver template not updating relative link in javascript code?

Status
Not open for further replies.

starblood

Technical User
Feb 28, 2001
63
GB
I have relative links written into Javascript code. Am I right in thinking that they don't update with the rest of the relative links within the HTML page when made into a template and applied to pages?

I've been trying for a good while and it doesn't seem to work (yet it works on Dreamweaver behaviors). Are there any workarounds (not including server-side includes and keeping everything in the same folder)?
 
I've found a way to make it work via some javascript jiggery-pokery (parsing the URL to determine folder hierarchy and adapting the relative link in the javascript code accordingly).

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top