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 987941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:33:51+00:00 2026-05-16T05:33:51+00:00

A friend and I are looking over a website involving a button that makes

  • 0

A friend and I are looking over a website involving a button that makes an AJAX call that upon successful return, loads HTML into a specified DIV tag and calls a Javascript function. The problem is that it will only work twice. After clicking it twice it fails to work properly. We are trying to dynamically control what the ready() invoked function is.

here is a simple case:

<html>
<head>
<script type="text/javascript" src="jquery-1.4.1.js"> </script>
<script type="text/javascript">
$(function(){
  $("#trigger").click(
    function(){
     $("#target").load('load.html');
    }
  );
});
</script>
</head>
<body>

<div id="target" style='width:200px;height:200px;border: 1px solid black'>
Not Loaded
</div>
<input type="button" value="Load AJAX" id="trigger" />
</body>
</html>

load.html contains:

<script type="text/javascript">
$(function(){
  alert('loaded stuff');
});
</script>
loaded

Here is the sample: http://phoenixillusion.net/demos/ajax/

Thanks!
EDIT Forgot to put information about the contents of load.html

  • 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-16T05:33:52+00:00Added an answer on May 16, 2026 at 5:33 am

    You should upgrade to jQuery 1.4.2 which included a pretty heavy re-write of the events module, you can find full release notes here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to set up a small site for a friend that has some
I am looking for the best way to mimic the facebook friend window, where
A friend of mine claims that in a typical database, using (for example) nvarchar[256]
I've just cleaned up a friend's e-commerce website. The hosting company had detected and
A friend of mine and I are looking to start a project looking into
I started looking at JSP yesterday and a question I asked my friend was:
A friend of mine asked me the other day if I'm just looking at
My friend and I are writing an IRC C# bot, and we are looking
I'm looking for a little sage advice from some helpful HTML/CSS masters. I am
One of my friends has written a website that has so many user controls

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.