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

    Ajax prototype.js

    In order to use the prototype.js (http://prototype.conio.net/), I use the Updater to pass the <div id="parentID">'s id, url (test.htm?name="test1"), and other parameters.

    The returned content from the java class, will be placed within the <div id="parentID"> </div>

    So I'll use:

    var myAjax = new Ajax.Updater(...)

    How and in what format should I pass the parameters?



    Thanks


    Scott

  • #2
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    Id, then url, then the 'options' hash, something like:
    Code:
    var updater = new Ajax.Updater($('some_id'),'/something.php',{
      method: ' get'
    });
    My thoughts on some things: http://codemeetsmusic.com
    And my scrapbook of cool things: http://gjones.tumblr.com


  •  

    Posting Permissions

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