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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:48:12+00:00 2026-05-16T08:48:12+00:00

I have a page with a div that is dynamically filled using a paginator

  • 0

I have a page with a div that is dynamically filled using a paginator 😉 At page init I load the first 10 forms in it using jquery .load() method.

What I’d like to do is to make all the forms dynamically updatable using AjaxForm plugin. I know about server side, let’s call it update.asp. It works.

But there are several questions:

  1. How to make plugin work in the first place as the AjaxForm seems not to work to the firms inside a dynamically loaded div?

  2. How do I ID and name the forms? Now I used ID and name myForm to all of them (maybe that is why it doesn’t work). Because if I use name myForm1, myForm2 etc… I have to write 10 ajaxForm functions that I use:

         $('#myForm').ajaxForm({
           beforeSubmit: showLoader,
           success: hideLoader
     }); 
    

I would then need to make this 10 times using myForm1 to myForm10? There must be another way…

  1. How do I make AjaxForm work with the pages that are not loaded yet? I think this is the same problem as 1). Because even page 1 is loaded dynamically somehow the ajaxForm doesn’t get bind to the form.

Sorry, I am quite new to jquery, I am trying hard to study it, I tried this quite some time before I wrote here. If you can help me, I’d be very gratefull.

Yours

Jerry

EDIT: Here is my loader now… It is not working OK, as the loader is never shown, it dissapears so fast I can see it only if I put alert in the hideLoader :-(((

      function load(num){
      showLoader2();
      var link='/obdelaneslike.asp?ID=<%=request.QueryString("IDRecept") %>&offset='+ num
       $('#content').load(link, function(){
        hideLoader2();
        $('.ajax-loader').hide();

         $('.myForm').bind("submit", function(event) { 
                   $(this).ajaxForm({

               beforeSubmit: showLoader($(this).find('img.ajax-loader').attr('id')),
           success: hideLoader($(this).find('img.ajax-loader').attr('id'))

           }); 
           return false;
                  }); 

           });

       }
  • 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-16T08:48:13+00:00Added an answer on May 16, 2026 at 8:48 am

    I’ll try and address these one at a time to better match the question:

    1) You can re-bind when you .load() (or whatever jQuery ajax method you’re using) or use a plugin like livequery(), for example here’s re-binding (do this in your success handler):

    $("#myDynamicDiv .myForm").ajaxForm({ ...options... }); 
    

    Or using livequery():

    $(".myForm").livequery(function() { $(this).ajaxForm({ ...options... }); });
    

    2) Use a class instead of IDs here, like this: class="myForm", whenever you want to handle batches of elements like this class is a pretty safe route. The examples above work with class and not IDs per form (they can have IDs, they’re just not used). Your form tags would look like this:

    <form class="myForm">
    

    3) The same solutions in answer #1 account for this 🙂

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

Sidebar

Ask A Question

Stats

  • Questions 498k
  • Answers 498k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I suspect you'll find that it is indeed not possible.… May 16, 2026 at 12:11 pm
  • Editorial Team
    Editorial Team added an answer Complete working code. I know this is long, but it's… May 16, 2026 at 12:11 pm
  • Editorial Team
    Editorial Team added an answer paddle is a local variable in the run() method. It… May 16, 2026 at 12:11 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a page that contains some dynamically created controls (TextBox and DropDownList). When
I am using JSF2.0 Mojarra 2.0.2. I have a method that logs out a
I have a page with multiple instances of anythingSlider on it and I'm using
I have a page where while the page loads, I put an absolute DIV
I have web page in ASP.NET. I have created Tree View control with jQuery.
I have a script that dynamically loads iframes inside a webpage. You can see
I have a UserControl ('AddressInfoGroup') within an updatepanel that dynamically loads user controls ('AddressInfo')
I use PHP and javascript via prototype. i have a threaded comments page that
I have a simple page that contains an iframe. The iframe contains a page
Novice question I guess: The Scenario: I have an asp.net page that contains 6

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.