skeeterchariot
08-12-2006, 06:36 PM
Has anyone noticed that javascript paths enclosed in single quotes (') are not updated by Dreamweaver when you move the file?
For example, if you move a file to a subdirectory, all paths should automatically get a ../ added like this:
<a href="../main.htm">
becomes
<a href="../../main.htm">
Ok, so far so good. But now add some javascript with a path in single quotes, and try it again:
<a href="../main.htm" onmouseover="image0.src='../main-on.gif';">
becomes
<a href="../../main.htm" onmouseover="image0.src='../main-on.gif';">
The first path got updated, but the second path was completely ignored. This is causing total havoc with my files!! Please someone tell me how to fix this in Dreamweaver (it never happened to me in Frontpage). And how could such a common problem go unnoticed? I've posted in 3 forums, including Adobe's help forum, and no one seems to know what I'm talking about! :mad:
For example, if you move a file to a subdirectory, all paths should automatically get a ../ added like this:
<a href="../main.htm">
becomes
<a href="../../main.htm">
Ok, so far so good. But now add some javascript with a path in single quotes, and try it again:
<a href="../main.htm" onmouseover="image0.src='../main-on.gif';">
becomes
<a href="../../main.htm" onmouseover="image0.src='../main-on.gif';">
The first path got updated, but the second path was completely ignored. This is causing total havoc with my files!! Please someone tell me how to fix this in Dreamweaver (it never happened to me in Frontpage). And how could such a common problem go unnoticed? I've posted in 3 forums, including Adobe's help forum, and no one seems to know what I'm talking about! :mad: