jQuery Basics: POST/GET Data (HTTP Request)

13th of November 2013 25

jQuery Basics: POST/GET Data (HTTP Request)

Posting data to files, with AJAX functionality as to avoid the page being refreshed. This example looks at PHP processing of data being typed into an input b…
Video Rating: 4 / 5

Filed under § jquery ajax — Tagged with , , , , ,

Share it!

Was it good for you to?


Support for the site!

No sponsors at the moment.

25 great comment(s) for this post

  1. Artur Mendes 1:12 am 13/11 of 2013

    @TheTyrhus or $(document).ready(function()

  2. phpacademy 2:06 am 13/11 of 2013

    @xFelicianoX Comma separate the values in { }. e.g. { name: name_value,
    email: email_value }

  3. Kingler91 2:55 am 13/11 of 2013

    Thank you Alex, you have been a great tutorial writer/speaker, and im
    looking forward for the visual upload tutorial you are re-doing. Please
    refere me to a donation button

  4. Sophia Braun 3:40 am 13/11 of 2013

    @bcefcti My bank account is exploding these days ($800-$1200 a day). Get
    into a killer niche that wants to buy and your set. This course explains it
    all -> bit.ly/R9sSnQ?=ynaowo

  5. kendan tinio 3:43 am 13/11 of 2013

    what if there are 7 inputs

  6. Neo Csatornája 3:58 am 13/11 of 2013

    And now you can use the placeholder atribut :)

  7. Andreas Lindhé 4:47 am 13/11 of 2013


  8. Shadowsphinx 4:52 am 13/11 of 2013

    Instead of using a search box to type, How would you use say, a drop down
    list of options. Better yet, how would you use two drop down lists to
    filter by??

  9. Jeffrey Marvin Forones 5:30 am 13/11 of 2013

    nice tutorial

  10. Patrick Broaden 6:10 am 13/11 of 2013

    I am using a VPS I am uploading on server. how do I get the path to the php
    file that I am trying to call? $.post (‘name.php’); It wont work because I
    can’t find the path. i have tried everything.

  11. marte thompson 6:15 am 13/11 of 2013

    This is really cool, but it does not work at all unless the PHP is set up
    on the server. This is confusing to anyone who has not gone through the
    XXAMP process.

  12. TheTyrhus 6:19 am 13/11 of 2013

    Hey Alex, a nice tut… anyway… you don’t need to put your script tag at
    the bottom af the script… and it’s kinda bad technique… i think it’s
    better to use a construction: $(function(){ }); and place everything into
    that function… this function means… “when the document is ready” so you
    can be sure about proper functionality of handlers… if that makes any
    sense… sorry for bad english… keep working on great tutorials… thanks

  13. JelvinJS7 6:50 am 13/11 of 2013

    if you were to perform multiple checks (username availability, password
    length, etc) would you have to do the function multiple times with slightly
    different codes, or could you do it all at once?

  14. Kingsley Chew 7:47 am 13/11 of 2013

    Thank you Alex, accept my kiss please:D

  15. marte thompson 8:43 am 13/11 of 2013

    XAMPP sorry.

  16. Nunya Bizness 9:29 am 13/11 of 2013

    @9092Dj same thing :P

  17. zeshan Rana 10:07 am 13/11 of 2013

    very helpful thanks buddy

  18. Mario Staats 10:35 am 13/11 of 2013

    Great Tutorial, easy to learn and easy to embed on my existing script, THX
    alot ;)

  19. Roshan Pal 11:32 am 13/11 of 2013

    Another great tutorial from Alex. Thank you sir!

  20. //Baka|. No4h 11:59 am 13/11 of 2013

    Hi! quick question: could I use this script or a variation of this, to
    retrieve an image from an ftp folder, and permanently save it into the div
    in the current html? so like an actual post. Hope you can help me!

  21. ketchup1001 12:07 pm 13/11 of 2013

    Well, the point of Ajax is to send/receive data to/from a server. PHP is a
    server-side scripting language and, if you don’t have a server to run PHP,
    you can’t really expect this to work.

  22. kfirba2 12:12 pm 13/11 of 2013

    What if I want to echo more than 1 thing? If I want to echo, lets say, 6
    thing, how do I do that? will “data” will contain all of them? and if so,
    how do I separate the result I originally wanted to get from “data”? Or
    maybe, I will have to use more than 1 argument in the callback function?

  23. Carlos Harry 12:24 pm 13/11 of 2013

    Why wonder the internet when you have Alex?

  24. thePixelPerinch 12:58 pm 13/11 of 2013

    if you work with array? how to get an array value from php page? e se
    volessi lavorare con un array? come ottengo il valore di un array dalla
    pagina php?

  25. Paul Brown 1:06 pm 13/11 of 2013

    Well done, Nice vid dude!


Your opinion matters. Add it below.

Tip: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent comments


Copyright jqueryui.info since 2010. All rights reserved. Design and the Absolute Theme by Tommie Hansen.