1 Reply Latest reply on Jul 25, 2007 6:23 AM by faoifaoi

    SPRY problems.. causing things to hang..

    BrownChiLD03 Level 1
      Hi guys..

      I did a website and using the cool SPRY framework to put some Ajax goodies in it..

      In my Spry Collapsible Panel, spry has a option to make the default state OPEN or CLOSE.. This was for my REGISTRATION FORM..

      I needed it to be dynamic.. where php code will control its default state..

      so..

      this line:

      quote:

      var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:false, enableAnimation:false});


      i modified to;

      quote:

      var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen: <? echo $openPanel;?>, enableAnimation:false});


      now everytime i open the page in dreamweaver, DW freezes for a very long time, and then prompts a java script error of some kind.. even when the web page is already openned, there are certain things that can cause this long freeze again and error.. like if i do some coding and stuff.. .

      is there a way to stop this? or is there a better way to make the default state dynamic?