Post Pic

Lytebox not working after AJAX content change load with jquery

if you are having problem loading lytebox when loading content with using ajax with jquery e.g.

$("#insidebox").load("ajax.php?cat="+cat+"&cache=" + Math.random()*99999);

The main problem was that Lytebox gets initialized during page load. Since AJAX bypasses page load, the problem arises.

The Lytebox run by this function initLytebox(); so we just need to call this functions when our ajax parsed data properly.

Related posts:

  1. Posting values through AJAX using jquery and getting a dynamic validation response without refreshing the page
  2. Div height 100% not working with scrolling on IE fixed with Jquery.

Leave Your Response

* Name, Email, Comment are Required

Advertisment

Topics