Welcome to WebmasterWorld Guest from 54.221.54.252

Forum Moderators: open

Message Too Old, No Replies

Ajax within Ajax

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

Preferred Member

10+ Year Member

joined:Oct 30, 2000
posts:497
votes: 0


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 Sept 7, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:July 8, 2010
posts: 114
votes: 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 Sept 13, 2011 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 30, 2000
posts:497
votes: 0


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

for anyone else that wonders onto this page

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