Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ajax.updater problem

    Hi Friends,

    My Problem is to send the value of one ajax updater to next ajax updater

    this is my ajax code

    new Ajax.Updater('pubListCount', 'DeletePublication.action', {
    onSuccess: function() {

    setSelectedTo(false);
    new Ajax.Updater('resultContainer', 'ManagePaginationPublications.action', {
    onComplete: function() {
    document.getElementById('workingStatus').style.display = 'none';
    var topElement = document.getElementById("cout");
    var bottomElement = document.getElementById("bottomCout");
    topElement.innerHTML = "<span class='text-no-border'>" + totalSelected + " item(s) deleted from the List </span>"
    bottomElement.innerHTML = "<span class='text-no-border'>" + totalSelected + " item(s) deleted from the List </span>"
    }, parameters:Form.Methods.serialize(document.forms["publicationForm"])
    });
    }, parameters:Form.Methods.serialize(document.forms["publicationForm"])
    });


    In the above code there are two updaters of ajax

    when i call first ajax i am setting value say like "setName("Sudahkar")" in the action class
    now my problem is how to send the this value name to next ajax updater as parameter there is any way...

    in the next ajax call i am making the action call and in that also i have setters and getters for "Name" so i need to set this name there how..

    urgent frinds

    is there any other way i can improve my code plx tell me friends..
    bye

    thx for help..

  • #2
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    ok.... explain why you're using recursive updaters for me?

  • #3
    Registered User
    Join Date
    Jan 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no friend actually
    it was my old base code so i cant change that ..

    so can you please tell me how to do.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •