Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7083667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:12:22+00:00 2026-05-28T07:12:22+00:00

I have developed a WordPress site that loads pages dynamically using the .load function.

  • 0

I have developed a WordPress site that loads pages dynamically using the .load function.

I have installed a few plugins that I NEED to get working, there is no substitute. My problem is that these plugins rely on JavaScript (an AJAX contact form, and a photo gallery) when they are loaded into div#content the required JavaScript doesn’t execute on the dynamically loaded content.

A normal solution would be load the JavaScript I need with the page, but since this is done with WordPress and the <script> tags are placed in <head> by the plugin. Another solution I have considered is using jQuery’s $.getScript, but again since the JS is already in the head this will cause conflicts. I am really stuck as to where to go next.

Any help appreciated guys.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:12:23+00:00Added an answer on May 28, 2026 at 7:12 am

    Why don’t you use the “complete” callback of the .load() method to instantiate your plugins to the added elements ?

     .load( url [, data] [, complete(responseText, textStatus, XMLHttpRequest)] )  
    
     url: A string containing the URL to which the request is sent.    
     data: A map or string that is sent to the server with the request.    
     complete(responseText, textStatus, XMLHttpRequest): A callback function that is executed when the request completes.
    

    The use is:

    $('#insertIntoThis').load('url', function(data, status, xhr) {
        // instantiate here
        // $('#myelement').myPlugin();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom developed WordPress plugin that is using jQuery 1.4 and for
We currently have a fully developed web forms application, basically its like WordPress using
We have a site that runs on Symfony and that was developed by people
I have developed a wordpress plugin that looks through a bunch of html and
I have a wordpress site that was built for me by a developer some
I have developed whole my website in wordpress and my site url is like
I'm using the anytime.js datepicker library of a WordPress plugin that was custom-developed for
I have developed a taxonomy for a site that I've been working on that
I have developed a VB.NET WCF service that recives and sends back data. When
We have developed a website that uses MVC, C#, and jQuery. In one of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.