...

View Full Version : Ajax prototype.js



otnj2ee
08-23-2007, 11:05 PM
In order to use the prototype.js (http://prototype.conio.net/), I use the Updater to pass the <div id="parentID">'s id, url (test.htm?name="test1"), and other parameters.

The returned content from the java class, will be placed within the <div id="parentID"> </div>

So I'll use:

var myAjax = new Ajax.Updater(...)

How and in what format should I pass the parameters?



Thanks


Scott

GJay
08-25-2007, 05:16 PM
Id, then url, then the 'options' hash, something like:


var updater = new Ajax.Updater($('some_id'),'/something.php',{
method: ' get'
});



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum