I used to use the Prototype JavaScript framework, version 1.4.0. When I tried to reload my page to a div container, I'll call:

var myAjax = new Ajax.Updater(
{
success: targetElement,
failure: targetElement
},
url,
{
method: method,
parameters: parameters,
onFailure: errFunc,
evalScripts: true
},
cbHandler
);

And it worked fine.


Now I use the newer version of Prototype JavaScript framework, version 1.7.1.

THe exact same line var myAjax = new Ajax.Updater as shown above won't work. No error message, it just failed to forward the execution to the BACK (java side).

How can I configure the var myAjax = new Ajax.Updater for prototype.js version 1.7.1?


Thanks