hi there
i want to update more than one elements in the HTML DOM using Ajax.
Please look at the following code:
function forward() {
var url = 'ajax/paginate.php';
var pars = 'direction=forward';
var target = 'content';
var ajax = new Ajax.Updater(target, url, {method: 'get', parameters:
pars});
}
Not only 'content' must be updated (this works fine), but also another
element ('page-number'). This element must be updated with the new
page number witch is also generated by 'ajax/paginate.php'. 'page-
number' is somewhere else in the DOM.
Who can help me?
<< i'm a newbe on prototype >>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---