jquery ajax load
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/05/jquery-ajax-load.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 how to load HTML data from the server using jquery AJAX load function.
What is AJAX
AJAX stands for Asynchronous JavaScript and XML, and allow parts of the page to be updated without having to reload the entire page.
Syntax
.load( url [, data ] [, complete ] )
Parameter - Description
url - Required. URL to which the request is sent.
data - Optional. A JSON object or string that is sent to the server along with the request.
complete - A callback function that is called when the request completes.
The following example loads HTML data from the server. When a text box receives focus, the help text associated with that field is loaded from the server and displayed. When the focus is lost the help text disappears.
HtmlPage1.html
<html>
<head>
<script src="jquery-1.11.2.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var textBoxes = $('input[type="text"]');
textBoxes.focus(function () {
var helpDiv = $(this).attr('id') + 'HelpDiv';
$('#' + helpDiv).load('Help.html #' + helpDiv);
});
textBoxes.blur(function () {
var helpDiv = $(this).attr('id') + 'HelpDiv';
$('#' + helpDiv).html('');
});
});
</script>
</head>
<body style="font-family:Arial">
<table>
<tr>
<td>First Name</td>
<td><input id="firstName" type="text" /></td>
<td><div id="firstNameHelpDiv"></div></td>
</tr>
<tr>
<td>Last Name</td>
<td><input id="lastName" type="text" /></td>
<td><div id="lastNameHelpDiv"></div></td>
</tr>
<tr>
<td>Email</td>
<td><input id="email" type="text" /></td>
<td><div id="emailHelpDiv"></div></td>
</tr>
<tr>
<td>Income</td>
<td><input id="income" type="text" /></td>
<td><div id="incomeHelpDiv"></div></td>
</tr>
</table>
</body>
</html>
Help.html
<div id="firstNameHelpDiv">
Your fisrt name as it appears in passport
</div>
<div id="lastNameHelpDiv">
Your last name as it appears in passport
</div>
<div id="emailHelpDiv">
Your email address for communication
</div>
<div id="incomeHelpDiv">
Your annual income
</div>
Видео jquery ajax load канала kudvenkat
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/05/jquery-ajax-load.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 how to load HTML data from the server using jquery AJAX load function.
What is AJAX
AJAX stands for Asynchronous JavaScript and XML, and allow parts of the page to be updated without having to reload the entire page.
Syntax
.load( url [, data ] [, complete ] )
Parameter - Description
url - Required. URL to which the request is sent.
data - Optional. A JSON object or string that is sent to the server along with the request.
complete - A callback function that is called when the request completes.
The following example loads HTML data from the server. When a text box receives focus, the help text associated with that field is loaded from the server and displayed. When the focus is lost the help text disappears.
HtmlPage1.html
<html>
<head>
<script src="jquery-1.11.2.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var textBoxes = $('input[type="text"]');
textBoxes.focus(function () {
var helpDiv = $(this).attr('id') + 'HelpDiv';
$('#' + helpDiv).load('Help.html #' + helpDiv);
});
textBoxes.blur(function () {
var helpDiv = $(this).attr('id') + 'HelpDiv';
$('#' + helpDiv).html('');
});
});
</script>
</head>
<body style="font-family:Arial">
<table>
<tr>
<td>First Name</td>
<td><input id="firstName" type="text" /></td>
<td><div id="firstNameHelpDiv"></div></td>
</tr>
<tr>
<td>Last Name</td>
<td><input id="lastName" type="text" /></td>
<td><div id="lastNameHelpDiv"></div></td>
</tr>
<tr>
<td>Email</td>
<td><input id="email" type="text" /></td>
<td><div id="emailHelpDiv"></div></td>
</tr>
<tr>
<td>Income</td>
<td><input id="income" type="text" /></td>
<td><div id="incomeHelpDiv"></div></td>
</tr>
</table>
</body>
</html>
Help.html
<div id="firstNameHelpDiv">
Your fisrt name as it appears in passport
</div>
<div id="lastNameHelpDiv">
Your last name as it appears in passport
</div>
<div id="emailHelpDiv">
Your email address for communication
</div>
<div id="incomeHelpDiv">
Your annual income
</div>
Видео jquery ajax load канала kudvenkat
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![JSON and AJAX Tutorial: With Real Examples](https://i.ytimg.com/vi/rJesac0_Ftw/default.jpg)
![jquery ajax load aspx page](https://i.ytimg.com/vi/xPk6f0SoHyQ/default.jpg)
![jQuery Tutorials: Submitting a Form with AJAX](https://i.ytimg.com/vi/GrycH6F-ksY/default.jpg)
![](https://i.ytimg.com/vi/S5Y_g2hx_QM/default.jpg)
![Part 92 Ajax with asp net mvc](https://i.ytimg.com/vi/B59skvlroyc/default.jpg)
![2: How to load in data from a server using AJAX - Learn AJAX programming](https://i.ytimg.com/vi/XhMGV8PzyOg/default.jpg)
![cross apply - cool trick in sql server](https://i.ytimg.com/vi/eVsG9oQsr-c/default.jpg)
![](https://i.ytimg.com/vi/Iae0pfVrZ1o/default.jpg)
![4: How to use get and post methods in jQuery AJAX - Learn AJAX programming](https://i.ytimg.com/vi/MG9itGX1hD0/default.jpg)
![jquery ajax method](https://i.ytimg.com/vi/kvlBmon98xg/default.jpg)
![Save/insert data to database without postback using ajax in ASP.NET](https://i.ytimg.com/vi/98_rB2eBYxE/default.jpg)
![Loading data into HTML Tables using AJAX - JavaScript Tutorial](https://i.ytimg.com/vi/12tjh_6xL2M/default.jpg)
![01. Introduction to AJAX in JavaScript | AJAX Tutorial | UiBrains | NAVEEN SAGGAM](https://i.ytimg.com/vi/ACNGhBfNftA/default.jpg)
![jQuery datatables get data from database table](https://i.ytimg.com/vi/TgD24a9gxXw/default.jpg)
![AJAX Form Submission To Email](https://i.ytimg.com/vi/o4acVCCbJcI/default.jpg)
![08: How to pass JSON data to server side using jQuery AJAX ?](https://i.ytimg.com/vi/s5STJHbXegc/default.jpg)
![#36 Introduction to jQuery library | Setting jQuery in Project](https://i.ytimg.com/vi/i32p6HvYC1A/default.jpg)
![C# ASP Net Core MVC Web Application with JQUERY and AJAX](https://i.ytimg.com/vi/KQn04MLa_-M/default.jpg)
![Calling aspx page method using jquery](https://i.ytimg.com/vi/x6iHQ5G-KKc/default.jpg)
![ASP.NET Core 3.0 Razor Pages Ajax jQuery 3.4.1 Live Search Filter](https://i.ytimg.com/vi/AS-IDZIqRQ4/default.jpg)