EDIT: Sorry, just found http://www.dynamicdrive.com/forums/a...p/t-11098.html that describes the same issue..
Dynamic Ajax Content
http://www.dynamicdrive.com/dynamici...jaxcontent.htm
I have some problem with using the Dynamic Ajax Content when trying to load a gallery made which is using Lightbox.
My problem is that when I load the gallerypage, lightbox needs the following .js files loaded:
and this is done by usingHTML Code:<script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects"></script> <script type="text/javascript" src="js/lightbox.js"></script>
Now I have pinned down the problem to the loading ofHTML Code:<a href="javascript:ajaxpage('gallery/england2005/default.html', 'mainCont'); loadobjs('css/lightbox.css', 'css/thumbs.css', 'js/prototype.js', 'js/scriptaculous.js?load=effects', 'js/lightbox.js')" class="content">"if this line is removed, the page loads but lightbox doesn't work. Can the Dynamic Ajax Content be modified to support a .js that loads another js?Code:'js/scriptaculous.js?load=effects'
The page can be found on www.tobiaslolax.nu (gallery link), if you need a look on the sourcecode you will need to use the url www.dirtyworkers.org/tobiaslolax.nu/
Thanks in advance,
Tobias



Reply With Quote

Bookmarks