I see why that is happening, it is similar to a problem we had with the other AJAX script. If you go back to internal and then to external, it will work. The problem only arises when you are replacing the external with the same external. To fix that we need to prevent our poll from firing too soon when identical content is loaded, try changing the pollContent() function like so:
Code:
function pollContent(id){
if(document.getElementById(id)){
initLightbox();
document.getElementById(id).id="";
}
else
setTimeout("pollContent('"+id+"')", 60)
}
That should take care of it.
Added:
In case you don't already known, you have to use a different (unique) id for each external page's test span, especially not one in use on the 'top' page. With the above change to pollContent, we probably could get away with the same test span id for all external content pages but, best to be on the safe side.
Bookmarks