"JQuery AJAX Capabilities Tutorial Videos for Beginner " (1) - PowerPoint PPT Presentation

About This Presentation
Title:

"JQuery AJAX Capabilities Tutorial Videos for Beginner " (1)

Description:

JQuery AJAX Capabilities Tutorial covers Ajax global event-handlers,Ajax shorthand functions, Ajax helper functions,ajax setup method,ajax get method,ajax set method in a clear manner. You can also acces free resources of Jquery in the form videos, online and classroom tutorials. – PowerPoint PPT presentation

Number of Views:48

less

Transcript and Presenter's Notes

Title: "JQuery AJAX Capabilities Tutorial Videos for Beginner " (1)


1
CATCH EXPERTS
https//www.catchexperts.com
http//www.courseing.com
2
JQuery AJAX Capabilities Tutorial Videos for
Beginner by
3
Highlights
  • Global Ajax Event handlers
  • Shorthand functions Helper functions
  • AJAX SETUP Method
  • AJAX Get and Set Methods

4
Global Ajax Event handlers
  • Ajax methods register handlers to be called for
    specific events.
  • Initialization or completion takes place for
    every Ajax request.
  • Ajax methods are .ajaxComplete(), .ajaxError(),
    .ajaxSend(), .ajaxStart(), .ajaxStop(),
    .ajaxSuccess().
  • .ajaxComplete() method register a handler to be
    called when Ajax requests complete.
  • .ajaxError() register a handler to be called when
    Ajax requests complete with an error.

5
Global Ajax Event handlers
  • .ajaxSend() method attaches a function to be
    executed before an Ajax request is sent.
  • .ajaxStart() method register handlers to be
    called when the first Ajax request begins.
  • .ajaxStop() method register a handler to be
    called when all Ajax requests have completed.
  • .ajaxSuccess() method attaches a function to be
    executed whenever an Ajax request completes
    successfully.

6
Shorthand methods Helper functions
  • Shorthand methods executes regular types of Ajax
    requests.
  • Shorthand methods are five types, they are
    jQuery.get(), jQuery.getJSON(), .load()
    jQuery.getScript(), jQuery.post().
  • jQuery.get() method loads data from the web
    servers.
  • jQuery.getJSON() loads JSON encoded data from the
    web servers.
  • .load() method loads data from the web servers.
  • jQuery.post() method loads data from the web
    servers.

7
Shorthand methods Helper functions
  • jQuery.getScript() method loads JavaScript file
    from the server and executes it.
  • Helper functions handle common idioms encounter
    while performing Ajax tasks.
  • Helper functions are three types, they are
  • .serializeArray() function encodes form elements
    as an array of names and values.
  • .serialize() function encodes form elements as
    strings for submission.
  • jQuery.param() function creates serialized
    representation of an array, plain object, or a
    jQuery object suitable for use in a URL query
    string or Ajax request.

8
AJAX SETUP Method
  • Sets default values for future AJAX requests.
  • Syntax .ajaxSetup(namevalue, namevalue, ...
    )
  • Plain object is the option for Ajax setup method
  • Plain object stands for set of key or value
    pairs which configure the default Ajax request.
  • Async, cache, contentType, context, data,
    dataType, global, password, processData are some
    possible names of Ajax setup method

9
AJAX Get and Set Methods
  • Uses to request data from the server.
  • Get() method requests and retrieve data from a
    specified resource.
  • Syntax .get( URL, callback)
  • Post() method submits data to the web servers.
  • Syntax .post( URL, data, callback)

10
Feedback
Like It ? Hate It?
We would love to hear from you whatever you think
about the course.
Click HERE to share what you think!
11
Thank you
Thank You for Watching JQuery AJAX Capabilities
Tutorial Videos for Beginner by
http//www.courseing.com
Write a Comment
User Comments (0)
About PowerShow.com