Skip to main content

AJAX Requests: Dynamic Data and Page Updates

  • Chapter
  • First Online:
  • 1337 Accesses

Abstract

This capability was absent from the browser initially. The time without this feature marked the infancy of the web, and with it came along a less-than-ideal user experience that resulted in a fair amount of redundant bytes circulated between client and server. The inefficiency of this primitive model was compounded by the fact that Internet bandwidth was extremely limited by today’s standards. In this chapter, I'll show you how to make AJAX requests without jQuery using both a long-standing method and a beautiful and elegant new method. You will also come to understand all of the concepts central to making HTTP requests to your server from the browser using JavaScript.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    https://blogs.msdn.microsoft.com/ie/2006/01/23/native-xmlhttprequest-object/

  2. 2.

    www.websiteoptimization.com/bw/0403/

  3. 3.

    https://fetch.spec.whatwg.org

  4. 4.

    www.w3.org/Protocols/HTTP/AsImplemented.html

  5. 5.

    https://httpwg.github.io/specs/rfc7540.html

  6. 6.

    https://tools.ietf.org/html/rfc5789

  7. 7.

    www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10

  8. 8.

    https://tools.ietf.org/html/rfc6455

  9. 9.

    https://fetch.spec.whatwg.org

  10. 10.

    www.w3.org/TR/XMLHttpRequest#dom-xmlhttprequest-send

  11. 11.

    https://fetch.spec.whatwg.org/#body-mixin

  12. 12.

    https://tools.ietf.org/html/rfc7231

  13. 13.

    https://tools.ietf.org/html/rfc7231#section-4.3.5

  14. 14.

    https://github.com/github/fetch

  15. 15.

    https://tools.ietf.org/html/rfc6902

  16. 16.

    www.w3.org/TR/html5/forms.html%23application/x-www-form-urlencoded-encoding-algorithm

  17. 17.

    http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers

  18. 18.

    http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262%2C3rdedition%2CDecember1999.pdf

  19. 19.

    https://bugs.webkit.org/show_bug.cgi?id=151937

  20. 20.

    www.ecma-international.org/ecma-262/5.1/#sec-15.12

  21. 21.

    https://fetch.spec.whatwg.org/#request-class

  22. 22.

    https://fetch.spec.whatwg.org/#body

  23. 23.

    www.ietf.org/rfc/rfc2388.txt

  24. 24.

    www.w3.org/TR/html5/forms.html#multipart-form-data

  25. 25.

    https://developer.mozilla.org/en-US/docs/Web/API/FormData

  26. 26.

    http://fineuploader.com

  27. 27.

    www.w3.org/TR/FileAPI/

  28. 28.

    www.w3.org/TR/XMLHttpRequest2/

  29. 29.

    www.w3.org/TR/FileAPI/#dfn-file

  30. 30.

    www.w3.org/TR/FileAPI/#dfn-Blob

  31. 31.

    www.w3.org/TR/FileAPI/#dfn-filereader

  32. 32.

    www.w3.org/TR/FileAPI/#dfn-Blob

  33. 33.

    http://fineuploader.com

  34. 34.

    https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy

  35. 35.

    http://security.stackexchange.com/a/23439

  36. 36.

    www.w3.org/TR/cors/

  37. 37.

    https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

  38. 38.

    http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Ray Nicholus

About this chapter

Cite this chapter

Nicholus, R. (2016). AJAX Requests: Dynamic Data and Page Updates. In: Beyond jQuery. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2235-5_9

Download citation

Publish with us

Policies and ethics