homepage Welcome to WebmasterWorld Guest from 54.196.197.153
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Ajax within Ajax
maccas




msg:4358731
 9:16 am on Sep 5, 2011 (gmt 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.

 

lostdreamer




msg:4359397
 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?)

maccas




msg:4361824
 9:39 am on Sep 13, 2011 (gmt 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;"

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved