Grow your CSS skills. Land your dream job.

ajax

  • # June 11, 2009 at 6:25 am

    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

    Rob
    # June 11, 2009 at 10:37 am

    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 :)

    # June 12, 2009 at 5:31 am
    "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)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".