Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
jquery ajax get function
Play lesson

jQuery tutorial for beginners - jquery ajax get function

5.0 (2)
25 learners

What you'll learn

This course includes

  • 22.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/06/jquery-ajax-get-function.html Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help. https://www.youtube.com/channel/UC7sEwIXM_YfAMyonQCrGfWA/?sub_confirmation=1 In this video we will discuss 1. How to make a GET request using jQuery AJAX get function 2. Difference between jQuery get and load functions We discussed how to make AJAX requests using jQuery load() function in Part 53 and Part 54. Let us rewrite the example we worked with in Part 54, using jQuery AJAX get() function. Please change the following jquery code in HtmlPage1.html $('#' + helpDiv + 'HelpDiv').load('GetHelpText.aspx', { HelpTextKey: helpDiv }); AS SHOWN BELOW $.get('GetHelpText.aspx', { HelpTextKey: helpDiv }, function (response) { $('#' + helpDiv + 'HelpDiv').html(response); }); What is the difference between jQuery get and load functions 1. jQuery load function can be used to load only the HTML data from the server, where as jquery get function can be used to load any type of data (xml, json, script, or html). 2. jQuery load function may issue a get or post request depending on whether the data parameter is specified or not. POST method is used if data is provided, otherwise, GET is used. On the other hand jquery get method always issues a GET request. 3. With load function we specify a selector first. The HTML content retrieved from the server is automatically inserted into the DOM elements matched by the selector. $('selector').load('url', 'data'); With get function we do not specify any selector first, instead we will make use of the callback function to insert the data received from the server into the DOM elements. $.get('url', 'data', function (response) { $('selector').html(response); }); In our next video, we will discuss how to load json data from the server using jquery get function.

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere