Which scripts are those?
Anyways, if content on a page is changed and the load event for the page has passed, often a script will stop functioning.
This need not be.
Many scripts are written to look for all elements that fit certain criteria and assign click and/or hover events to them.
If instead these scripts listened to the page for click and/or hover events and reacted to them if the trigger element fit those criteria, then new content would work without having to be initialized.
Or, after new content arrives, it can be initialized. That's one of the things that instance.onajaxpageload can be used for (example using the alert):
Code:
<script type="text/javascript">
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
countries.onajaxpageload = function(pageurl){
if (pageurl.indexOf("external4.htm") != -1){
alert('Hello');
}
};
</script>
Bookmarks