Treefarn
01-02-2008, 05:35 PM
1) Script Title:
Switch Content Script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...tchcontent.htm
3) Describe problem:
I have an application (that unfortunately is not in production, so I can't send the webpage) that is using SwitchContent to display answers to questions. Everything works fine, unless the answer has an Unordered list in it. If the answer contains <UL> and <LI> tags, the UL and LI portions of the answer do NOT contract. ANyone else have problems with UL???
The relevant code:
<A href="javascript:togglehideshow.sweepToggle('contract')">Contract All</A> | <A href="javascript:togglehideshow.sweepToggle('expand')">Expand All</A> </div>
<p class=switchgroup1 id=bobcontent<%=x%>><%=Answer%>
<SCRIPT type=text/javascript>
var togglehideshow=new switchcontent("switchgroup1", "p")
togglehideshow.setStatus('<img src="../images/site/Eopen.gif" /> ', '<img src="../images/site/bdot.gif" /> ')
togglehideshow.setColor('darkred', '#607DA7')
togglehideshow.setPersist(true)
togglehideshow.collapsePrevious(true)
togglehideshow.init()
</SCRIPT>
Switch Content Script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...tchcontent.htm
3) Describe problem:
I have an application (that unfortunately is not in production, so I can't send the webpage) that is using SwitchContent to display answers to questions. Everything works fine, unless the answer has an Unordered list in it. If the answer contains <UL> and <LI> tags, the UL and LI portions of the answer do NOT contract. ANyone else have problems with UL???
The relevant code:
<A href="javascript:togglehideshow.sweepToggle('contract')">Contract All</A> | <A href="javascript:togglehideshow.sweepToggle('expand')">Expand All</A> </div>
<p class=switchgroup1 id=bobcontent<%=x%>><%=Answer%>
<SCRIPT type=text/javascript>
var togglehideshow=new switchcontent("switchgroup1", "p")
togglehideshow.setStatus('<img src="../images/site/Eopen.gif" /> ', '<img src="../images/site/bdot.gif" /> ')
togglehideshow.setColor('darkred', '#607DA7')
togglehideshow.setPersist(true)
togglehideshow.collapsePrevious(true)
togglehideshow.init()
</SCRIPT>