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

  • SEARCH
  • Home
  • 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 8495233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:31:01+00:00 2026-06-10T23:31:01+00:00

I have an ajax loaded content where i want to use a php script.

  • 0

I have an ajax loaded content where i want to use a php script.
The problem is that the script doesn’t work and if i try to .load it inside the ajax loaded content it gives an error stating "$ is not defined".

Is there a way to load a php script inside a dinamically loaded content?

Thanks

edit: i solved the $ is not defiend thing.
ok, some clarifiations.
These are the steps:
INDEX->menu click->ajax loads html into a div inside INDEX->inside that html i put a .load that should load the output of a php script.
Unfortunately it doesn’t work.

edit2: i was just stupid, the php script did load just well, the problem was i missed a character in the password for the db and it didn’t load the content. Thanks

  • 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-06-10T23:31:02+00:00Added an answer on June 10, 2026 at 11:31 pm

    “$ is not defined”

    means the jquery library is not loaded check that

    you have provided the correct path to the jQuery.js file, also include the jquery before including any other js library

    try using a cdn hosted version of jquery

    EDIT

    when you bind events to the dynamically loaded elements you have to use .on(jquery 1.7+) or .delegate like

    $(document).delegate( "yourElement", "load",
        function(e) {
            alert("loaded");
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div which get's its content loaded through ajax .load(ajaxcontent.php). Inside this
The problem. I have multiple tab, their content is loaded via ajax, so the
I have a website with ajax loaded content. Now I want to implement the
I have a jqGrid loaded by AJAX inside a jQuery UI Dialog. Everything is
I have the following Javascript libraries loaded for my page. <script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js></script> <script
I want to have a menu that when I click replaces the content of
I have a bunch of links that I want to load dynamically within the
I have a jQuery ajax function that loads some content into a div, some
I have an Ajax control that is loaded into a Yahoo popup using jQuery.
I have the exact problem here , except that I do not want to

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.