Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-05-2013, 08:52 PM   PM User | #1
otnj2ee
Regular Coder

 
Join Date: Apr 2007
Posts: 174
Thanks: 17
Thanked 0 Times in 0 Posts
otnj2ee is an unknown quantity at this point
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
otnj2ee is offline   Reply With Quote
Old 02-05-2013, 09:10 PM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
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,

IMO this stores up problems (and confusion) for when you least expect it.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:26 AM.


Advertisement
Log in to turn off these ads.