Hi, I think that is a very recurrent problem but I donīt find the solution. I've problem loading the javascript using ajax. the code of the "accordion"page is:
here's the code http://www.dynamicdrive.com/dynamici...jaxcontent.htmHTML Code:<script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script> <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" /> </head> <body> <p>Welcome </p> <div id="Accordion1" class="Accordion" tabindex="0"> <div class="AccordionPanel"> <div class="AccordionPanelTab">TAB1</div> <div class="AccordionPanelContent">Content1</div> </div> <div class="AccordionPanel"> <div class="AccordionPanelTab">TAB 2</div> <div class="AccordionPanelContent">Content2 </div> </div> </div> <script type="text/javascript"> <!-- var Accordion1 = new Spry.Widget.Accordion("Accordion1"); //--> </script>
I can load the css file with loadobjs(), but not the js file and the little script included into the accordion page.



Reply With Quote

Bookmarks