Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    179
    Thanks
    17
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •