Load JS with AJAX

  • Posted in : cvCard
  • SnowFalls
    Participant

    Hi there,

     

    When an AJAX page loads the JS does not load with it, even if it’s already linked on the page. I think there needs to be an action or something that calls the JS to reload when the button is clicked etc. (portfolio page, trying to have an owl slider load up.. uses JS).

     

    Thank you

    ahmetsali
    Keymaster

    Hi, you need to call your custom functions each time an ajax request is completed, to do this, edit js/main.js and find line : 700;

    			// wait for images to be loaded
    			p.imagesLoaded(function() {
    		              //your custom function here	
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register