This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > September 2005 > DW8 Broke my script





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author DW8 Broke my script
TwelveThirty

2005-09-15, 11:26 pm

:disgust;
Just installed Dreamweaver 8 and tried to update a library item that contanin
javascript for a slideout menu. When I update the page, DW8 seemingly randomly
replaces spaces in the script with '%20%22' and' \Templates' and destroys some
urls. See my example below.


-----------------------line from DW8 updated page----------------

"<td><a href=\"/headsets/cellular/cellular.html\"

onMouseOut=\"MM_swapImgRTemplates/estore()/%22%20onMouseOver=/%22MM_swapImage('d
d_3_0','','http://hs.zappos.com/img/hds2/menu/dd/overview_on.gif',1)\"><img
src=\"http://hs.zappos.com/img/hds2/menu/dd/overview_off.gif\"
alt=\"Overview\" name=\"dd_3_0\" border=\"0\"></a></td>" +

------------------------------------------------------------------

Looks like a find and replace or something blew up.

-----------------------same line from a working page------------------

"<td><a href=\"/headsets/cellular/cellular.html\"
onMouseOut=\"MM_swapImgRestore()\"

onMouseOver=\"MM_swapImage('dd_3_0','','http://hs.zappos.com/img/hds2/menu/dd/ov
erview_on.gif',1)\"><img
src=\"http://hs.zappos.com/img/hds2/menu/dd/overview_off.gif\"
alt=\"Overview\" name=\"dd_3_0\" border=\"0\"></a></td>" +



Nancy Gill

2005-09-15, 11:28 pm

Sounds like your settings are XHTML and site root (in the second instance).
You can change those things in Edit/preferences.


--
Nancy Gill
Team Macromedia Member: Dreamweaver MX/UltraDev
http://www.macromedia.com/go/team/
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

"TwelveThirty" <webforumsuser@macromedia.com> wrote in message
news:dgd1dt$nsc$1@forums.macromedia.com...
> :disgust;
> Just installed Dreamweaver 8 and tried to update a library item that

contanin
> javascript for a slideout menu. When I update the page, DW8 seemingly

randomly
> replaces spaces in the script with '%20%22' and' \Templates' and destroys

some
> urls. See my example below.
>
>
> -----------------------line from DW8 updated page----------------
>
> "<td><a href=\"/headsets/cellular/cellular.html\"
>
>

onMouseOut=\"MM_swapImgRTemplates/estore()/%22%20onMouseOver=/%22MM_swapImag
e('d
>

d_3_0','','http://hs.zappos.com/img/hds2/menu/dd/overview_on.gif',1)\"><img
> src=\"http://hs.zappos.com/img/hds2/menu/dd/overview_off.gif\"
> alt=\"Overview\" name=\"dd_3_0\" border=\"0\"></a></td>" +
>
> ------------------------------------------------------------------
>
> Looks like a find and replace or something blew up.
>
> -----------------------same line from a working page------------------
>
> "<td><a href=\"/headsets/cellular/cellular.html\"
> onMouseOut=\"MM_swapImgRestore()\"
>
>

onMouseOver=\"MM_swapImage('dd_3_0','','http://hs.zappos.com/img/hds2/menu/d
d/ov
> erview_on.gif',1)\"><img
> src=\"http://hs.zappos.com/img/hds2/menu/dd/overview_off.gif\"
> alt=\"Overview\" name=\"dd_3_0\" border=\"0\"></a></td>" +
>
>
>



TwelveThirty

2005-09-16, 7:36 pm

Hi Nancy,

Thanks for the tip but unfortunately neither option fixed the issue.

With Edit > Preferences > New Document: Default Document Type (DTD): HTML
4.010 Transitional

and...

Edit > Preferences > Site: Manage Sites: Local Info: Links relative to:
Document

I still get the error fubared code. ANy other ideas? Not too thrilled with DW8
do far.



----------------- Line 924 - 934 before -----------------------
"<tr>" +

"<td><a href=\"/headsets/company/contact.html\"
onMouseOut=\"MM_swapImgRestore()\"
onMouseOver=\"MM_swapImage('dd_5_4','','http://hs.zappos.com/img/hds2/menu/dd/cr
_sup_on.gif',1)\"><img
src=\"http://hs.zappos.com/img/hds2/menu/dd/cr_sup_off.gif\" alt=\"If You Ever
Have a Problem . . .\" name=\"dd_5_4\" border=\"0\"></a></td>" +

"</tr>" +

"<tr>" +

"<td><a href=\"/headsets/resources/returns.html\"
onMouseOut=\"MM_swapImgRestore()\"
onMouseOver=\"MM_swapImage('dd_5_5','','http://hs.zappos.com/img/hds2/menu/dd/cr
_ret_on.gif',1)\"><img
src=\"http://hs.zappos.com/img/hds2/menu/dd/cr_ret_off.gif\" alt=\"Returns\"
name=\"dd_5_5\" border=\"0\"></a></td>" +

"</tr>" +
----------------- after library update -----------------------
"<tr>" +


Templates/%09%09%09%09%09%09%22%3Ctd%3E%3Ca%20href=/%22/headsets/company/contact
..html\" onMouseOut=\"MM_swapImgRestore()\"
onMouseOver=\"MM_swapImage('dd_5_4','','http://hs.zappos.com/img/hds2/menu/dd/cr
_sup_on.gif',1)\"><img
src=\"http://hs.zappos.com/img/hds2/menu/dd/cr_sup_off.gif\" alt=\"If You Ever
Have a Problem . . .\" name=\"dd_5_4\" border=\"0\"></a></td>" +

"</tr>" +

"<tr>" +


Templates/%0A%09%09%09%09%09%09%22%3Ctd%3E%3Ca%20href=/%22/headsets/resources/re
turns.html\" onMouseOut=\"MM_swapImgRestore()\"
onMouseOver=\"MM_swapImage('dd_5_5','','http://hs.zappos.com/img/hds2/menu/dd/cr
_ret_on.gif',1)\"><img
src=\"http://hs.zappos.com/img/hds2/menu/dd/cr_ret_off.gif\" alt=\"Returns\"
name=\"dd_5_5\" border=\"0\"></a></td>" +

"</tr>" +

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews