CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript frameworks (http://www.codingforums.com/forumdisplay.php?f=62)
-   -   prototype.js new Ajax.Updater (http://www.codingforums.com/showthread.php?t=287122)

otnj2ee 02-05-2013 08:52 PM

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

AndrewGSW 02-05-2013 09:10 PM

Have a look through the current docs to see if anything has changed.

Personally, I wouldn't do things like:

Code:

method: method,
parameters: parameters,

:eek:
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.