Welcome to WebmasterWorld Guest from 54.205.75.60

Forum Moderators: open

Message Too Old, No Replies

Ajax within Ajax

   
9:16 am on Sep 5, 2011 (gmt 0)

10+ Year Member



Hi, not sure if I can explain this very well. I have some tabs on a page and when clicked they call a page. It works fine except if I have any javascript on the page being called. For example I have a tab call photos and when clicked it inserts photos.php, the photos uses light box to view larger image but it doesn't work, works fine if photos.php is included with regular php includes.
9:55 am on Sep 7, 2011 (gmt 0)



You probably have some functions that are being run on page load.
But with ajax calls you dont get the page load event.

Perhaps you could run the onload functions some other way (by the javascript that does the ajax call?)
9:39 am on Sep 13, 2011 (gmt 0)

10+ Year Member



Thanks, adding a onclick to the href tag did the trick.

for anyone else that wonders onto this page

onclick="showLightbox(this); return false;"