HighDots Forums  

DWMX bug? Template update rewriting code in Editable Region

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss DWMX bug? Template update rewriting code in Editable Region in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
UW-MadisonBiotech webforumsuser@macromedia.com
 
Posts: n/a

Default DWMX bug? Template update rewriting code in Editable Region - 07-10-2003 , 12:39 PM






Here's the deal. I have a number of pages that have dynamic content populating drop down menus. This code resides in an Editable Region defined through a DW Template I created.

If I make a change to the template and update pages, my form code gets screwed up. My <cfoutput> tags are removed and a new <option> tag is added. Needlesstosay, this ruins my dynamically populated drop down menus.

Attempted solution: Create a library item of this snippet of code
Problem: You can't create a library item out of code using the "MM_jumpMenu()" behavior

Question to All: How can I protect this code from getting edited (even though it shouldn't be rewritten because it appears in an editable region)?????
Is there a way to lock code in an editable region so it gets passed over in any template updates?????

This is an example of the code BEFORE a template update.

<select name="select" onChange="MM_jumpMenu('parent',this,0)">
<option value="fac_reading-list.cfm" selected>Select from your courses </option>
<option value="fac_reading-list.cfm">-------- </option>
<cfoutput query="singleList">
<option value="session-change-write.cfm?CN_ID=#CN_ID#&coursename=#trim(coursenam e)#&year=#year#&semester=#semester#">#semester# #year#, #coursename#</option>
</cfoutput>
</select>

This is an exmample of the code AFTER a template update.

<select name="select" onChange="MM_jumpMenu('parent',this,0)">
<option value="fac_reading-list.cfm" selected>Select from your courses </option>
<option value="fac_reading-list.cfm">-------- </option>
<option>
<option value="session-change-write.cfm?CN_ID=#CN_ID#&coursename=#trim(coursenam e)#&year=#year#&semester=#semester#">#semester# #year#, #coursename#</option>
</select>

NOTE: <cfoutput> tags removed and new <option> tag added with no </option>

Thanks ahead of time for everyone's help!!!

Bryan Husk
University of Wisconsin - Madison
Master of Science in Biotechnology
www.ms-biotech.wisc.edu



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.