I am very new to Ajax and jQuery, so please bear with me. I am uploading content via Ajax on my page, and the uploaded content has jQuery slide shows inside. When I click the link, everything works fine, the content appears, and the whole slide show does not start at all. I need to click this link a second time to start the slide show.
This is my code:
var loadUrl = "map_fr.html"; $("#loader").on('click',function(){ $("#conteudo_projects").html(ajax_load).load(loadUrl); });
Then I select the link with id = "loader" to load the contents inside the #conteudo_projects DIV.
Can anyone help me? Why doesnโt the slide show start working the first time? (If I test the slide show directly on the page, it works, so I know that there is no problem with this, it only happens when loading via Ajax).
Many thanks!
EDIT: I installed Firebug, and although I still donโt quite understand that everything that it displays, I noticed that in Net> JS, when I click the link for the first time, I get a jQuery GET request (ajax.googleapis.com) grayish. When I click again, the new request looks fine. I donโt know if this helps, Iโm still trying to do this job. Thanks!
source share