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 3 of 3

Thread: AJAX send

  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    179
    Thanks
    17
    Thanked 0 Times in 0 Posts

    AJAX send

    Case 1:

    ajaxInstance.open("GET", x, true);
    ajaxInstance.send(null);


    Case 2:

    ajaxInstance.open("post", x, true);
    ajaxInstance.send(null);


    Since a null is to be sent, is the ajaxInstance.send mandatory or optional in these cases?


    Thanks


    Scott

  • #2
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    I think it's mandatory, dont forget to capitalize the 'POST', for GET send is always null or (' ') and for POST send is a query string like name=value&name1=value1 etc...

  • #3
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by sybil6 View Post
    I think it's mandatory, dont forget to capitalize the 'POST', for GET send is always null or (' ') and for POST send is a query string like name=value&name1=value1 etc...
    while to capitalize 'post' and 'get'? I ask because I think I always use lowercase and seems to work.

    Quote Originally Posted by otnj2ee View Post
    Case 1:

    ajaxInstance.open("GET", x, true);
    ajaxInstance.send(null);

    Case 2:

    ajaxInstance.open("post", x, true);
    ajaxInstance.send(null);

    Since a null is to be sent, is the ajaxInstance.send mandatory or optional in these cases?

    Thanks


    Scott
    it's mandatory, nothing happend untill you call send.

    best regards


  •  

    Posting Permissions

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