atomic
03-19-2009, 01:29 PM
1) Script Title: Ajax Tabs Content Script (v 2.2)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe problem:
Hi i am trying to use ajaxtabs and SexyLightBox2 (http://www.coders.me/ejemplos/sexy-lightbox-2/) on the same page.
SexyLightBox initalises in the head like this:
<script type="text/javascript">
window.addEvent('domready', function(){
new SexyLightBox();
new SexyLightBox({find:'sexywhite',color:'white', OverlayStyles:{'background-color':'#000'}});
});
</script>
when i load a new content using AjaxTabs the SexyLightBox links in the new content wont work, while SLB links on the rest of the page works fine (i would expect that).
So how can i re-initalise the above code when using AjaxTabs to load new content into a DIV?(i guess this would be a problem for any script that get initalised in the head)
thank you very much for any assistance.
NB. i realise that this is a multiple script question, but i think it is a basic javascript question as well, and i am new to this and just looking for some assistance.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
3) Describe problem:
Hi i am trying to use ajaxtabs and SexyLightBox2 (http://www.coders.me/ejemplos/sexy-lightbox-2/) on the same page.
SexyLightBox initalises in the head like this:
<script type="text/javascript">
window.addEvent('domready', function(){
new SexyLightBox();
new SexyLightBox({find:'sexywhite',color:'white', OverlayStyles:{'background-color':'#000'}});
});
</script>
when i load a new content using AjaxTabs the SexyLightBox links in the new content wont work, while SLB links on the rest of the page works fine (i would expect that).
So how can i re-initalise the above code when using AjaxTabs to load new content into a DIV?(i guess this would be a problem for any script that get initalised in the head)
thank you very much for any assistance.
NB. i realise that this is a multiple script question, but i think it is a basic javascript question as well, and i am new to this and just looking for some assistance.