|
| Previous < 6 7 8 9 10 11 12 13 14 > Next |
|
This is a mini-tutorial on saving state across page loads on the client side, without using cookies so as to save large amounts of data beyond cookies size limits.
In AJAX, most of the action occurs inside a single web page. When a page is loaded, a new instance of the JavaScript interpreter is started. When you leave a page, jumping to Google for example, all of your JavaScript objects are completely cleared away; you lose all of your state. If you then hit the back button to go back from Google to your original AJAX application, you will find that the page actually completely reloads, calling your onload listener, and that any JavaScript objects you stored anywhere are gone.
|
|
|
|
With the recent popularization of AJAX (Asynchronus Javascript And XML), it is now unnessecary to reload a page with the same basic layout, just to get new content. You can use AJAX to retrieve just the content without reloading the page, then change the value of a content area.
Retrieve database information with AJAX, PHP and MySQL
First of all, to use AJAX you must understand how it works. AJAX is JavaScript that can run through the “AJAX Engine” and by doing so, retrieve data from a remote page through HTTP, without having a page reload. It is similar to PHP’s file_get_contents(), however it can be done through JavaScript as a client-side script. |
|
|
|
This tutorial shows you how to move an application from a conventional JSP, Eclipse design to one based on Ajax (Asynchronous JavaScript and XML) technology. It will guide you through the development of a small human-resources application, first using conventional JavaServer Pages (JSP) and Eclipse, and then migrating it to a highly interactive solution using Ajax.
In this tutorial, you'll create an employee-information panel using standard JSP and servlet technology. You'll do all development and testing using the Kick-start your Java apps suite, design the application in Eclipse, and then deploy and test it on Application Server. The application interactively fetches and displays employee information, including a photo, from a DB2 Express-C database.
|
|
|
|
Here's a very brief overview of AJAX and JSON. Since we are using the MuseStorm Javascript components, no AJAX and JSON knowledge is really needed to create our AJAX desktop!
AJAX is such a hot buzzword today, that you'd think every mashup / web application is using it.
Well here is a shocking revelation: if you are building a mashup / web application - you are most likely to use JSON and not AJAX!
|
|
|
|
The XMLHttpRequest object is a handy dandy JavaScript object that offers a convenient way for webpages to get information from servers without refreshing themselves.
The benefit to end users is that they don't have to type as much and they don't have to wait as long. For example, having the user's city and state show up in a webpage automatically after the ZIP code has been typed in is a big time saver.
Although the XMLHttpRequest object might sound complex and different from any other JavaScript object you have ever used, it really isn't. A good way to think of the XMLHttpRequest object is as you would think of the JavaScript Image object. As we know, with the Image object you can dynamically specify a new URL for the image source without reloading the page. Similarly with the XMLHttpRequest object, you can dynamically specify a URL to get some server data without reloading the page
|
|
|
|
| Previous < 6 7 8 9 10 11 12 13 14 > Next |
|
|
|
|