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 01-28-2009, 04:23 PM   PM User | #1
sudhakarkva
New to the CF scene

 
Join Date: Jan 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
sudhakarkva is an unknown quantity at this point
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..
sudhakarkva is offline   Reply With Quote
Old 01-28-2009, 05:33 PM   PM User | #2
ohgod
Regular Coder

 
ohgod's Avatar
 
Join Date: Jun 2008
Location: Ohio
Posts: 579
Thanks: 6
Thanked 69 Times in 69 Posts
ohgod is on a distinguished road
ok.... explain why you're using recursive updaters for me?
ohgod is offline   Reply With Quote
Old 01-29-2009, 04:23 AM   PM User | #3
sudhakarkva
New to the CF scene

 
Join Date: Jan 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
sudhakarkva is an unknown quantity at this point
no friend actually
it was my old base code so i cant change that ..

so can you please tell me how to do.
sudhakarkva 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 02:29 PM.


Advertisement
Log in to turn off these ads.