Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-07-2011, 02:58 AM   PM User | #1
q1h
New Coder

 
Join Date: May 2011
Posts: 34
Thanks: 7
Thanked 0 Times in 0 Posts
q1h is an unknown quantity at this point
Complex jQuery AJAX timimng issue

I am a jQuery noob, so please have some mercy.

Basically, I have an AJAX form that utilizes jQuery and other javascript functions (like datepicker, prepend, etc.), and it is in one TR of a table. The rest of the table is data from a MySQL database (which is where the form submits to).

When the form is submitted, the div needs to be refreshed to show the updated data and clear the form. This code is used:

Code:
$(function() {  
  $("#refresh").click(function() {
    $("#mydiv").load(location.href + " #mydiv > *");
  });
});
When the div is refreshed, however, the javascript functions cease to work, which I assume is due to some timing misalignment.

Any help would be appreciated on figuring this out. I can upload more code if you need it. Thanks.
q1h is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:35 PM.


Advertisement
Log in to turn off these ads.