![]() |
prototype.js new Ajax.Updater
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 |
Have a look through the current docs to see if anything has changed.
Personally, I wouldn't do things like: Code:
method: method,IMO this stores up problems (and confusion) for when you least expect it. |
| All times are GMT +1. The time now is 01:34 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.