Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript ajax

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25124
    archinyax
    Participant

    What’s the difference between GET and POST AJAX requests? I’ve always done GET requests regardless, but I think I should probably look into it : The first question is if GET can be used for passwords. I know that it’s generally considered best practice to use POST for password forms, but isn’t this a bit different? Or am I wrong?
    ___________________
    yahoo keyword tool ~ overture ~ traffic estimator ~ adwords traffic estimator

    #58940
    Rob MacKay
    Participant

    GET will display the data being passed in the address bar in your browser, POST keeps it hidden. GET is the best and fastest method to pass data, just make sure its nothing important because of the way its passed, visible in the address bar :)

    Thats my understanding… im sure someone could add more to it :)

    #58992
    Mr KiTT3N
    Member
    "Robskiwarrior" wrote:
    GET will display the data being passed in the address bar in your browser, POST keeps it hidden. GET is the best and fastest method to pass data, just make sure its nothing important because of the way its passed, visible in the address bar :)

    Thats my understanding… im sure someone could add more to it :)

    In reference to ajax it doesn’t matter about what is seen in the url, with that said $.post is great for sending complex information, and you are limited by how many characters when sending info threw $.get()

    $.post() will allow you to send complex information like photos and just in general files to the server. Note that when you see the attribute enctype="multipart/form-data" attached to the <form> tag this tells the sever with the post command that your information is more complex than just characters and strings and also using more resources….

    p.s. never use passwords with get, there isn’t any type of security…

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.