|
|
| About site: Programming/Languages/JavaScript/AJAX - Guide to Using XMLHttpRequest (with Baby Steps) from WebPasties |
Return to Computers also Computers |
| About site: http://www.webpasties.com/xmlHttpRequest/ |
Title: Programming/Languages/JavaScript/AJAX - Guide to Using XMLHttpRequest (with Baby Steps) from WebPasties Detailed tutorial that explains how to creating an AJAX ZIP code database including a PHP/MySQL backend. |
|
|
|
|
Techsys_Software_Services,_Inc_ Provides consulting services for software companies and corporate customers in a mainframe environment.
| RFC_1177 FYI on Questions and Answers: Answers to Commonly Asked "New Internet User" Questions. G.S. Malkin, A.N. Marine, J.K. Reynolds. August 1990.
| Nonparametric_Classification_with_Polynomial_MPMC_Cascades Scalable non-parametric classification with Polynomial MPMC Cascades for use in Matlab. [GPL]
| Merijn_org Offers freeware tool called HijackThis which can be used to detect browser hijacking malware. Includes tutorial and downloads. [Windows]
| Stone_Oak_Web_Design,_Inc_ Offers web design, hosting, and search engine submission services. Located in Kodak, Tennessee, U.S.A.)
| Trivison,_Michael Graphic and design solutions. Located in Orange County, California, United States.
|
|
| Alexa statistic for http://www.webpasties.com/xmlHttpRequest/ |
Please visit: http://www.webpasties.com/xmlHttpRequest/
|
| Related sites for http://www.webpasties.com/xmlHttpRequest/ |
| Introducing_REBOL_with_Amazingly_Easy_GUI_Programming Author demonstrates cross-platform development, deployment with small, powerful network-enabled language with integrated GUI system; builds front end for small email-based survey, feedback system. [ON | | Celview_for_Macintosh Celcorp provides 3270 and 5250 terminal/printing emulation and ftp for the Macintosh, allowing it to connect to the mainframe and iSeries 400. | | IP-Country A program that can analyze IP lists offline and determine which country each IP belongs to. | | David_Cartwright Offers a daily perspective on security and related issues for enterprise organizations from the senior security consultant for Alkira Australia. | | My-Screensavers_com Scanned flowers, and savers to display personal photographs, available for immediate download. | | The_Bot_Factory Interactive virtual characters with voice and lip synchronization. Works with any web browser. | | ACM_Crossroads_-_Introduction_to_the_Gimp Student magazine of the Association for Computing Machinery. Crossroads has published an article about the Gimp, and has an online discussion forum related to it. | | EuroLinux_Alliance An open coalition of commercial companies and non-profit associations united to promote and protect a vigourous European software culture based on open source software. | | Biometrics_Discussion_Group French biometrics discussion group. Groupe de discussion en français sur la Biométrie. | | RFC_2941 Telnet Authentication Option. T. Ts'o, Editor, J. Altman. September 2000. | | NCL_Technologies Produces a free software tool for automating the testing of WML interfaces such as WAP sites and services. | | Silverback_Technologies IT monitoring software provider delivering integrated, web-based network, system and application monitoring solutions. | | Transparent_Alarm_Clock Free clock that includes hourly chimes, and will synchronize the PC clock with the Internet Time Server plus other .NET utilities. | | ApulSoft_-_WormHole [Mac - Win] It allows to transmit streaming audio between two computers over the TCP/IP protocol. Features, downloadable demo, purchasing information. | | Big_Yellow_Duck Services offered include design, graphic and button design, hosting, email, management, marketing, traffic analysis, and search engine submission services. | | TX_Text_Control Provides word processing functionality in component form. By Imaging Source. | | Parsing_with_yecc Quick introduction to parsing. | | Alphabetical_Navigation_Bar_Java_Display_Tag_Library Creates an alphabetic navigation bar, by slicing and dicing string data stored in a java.util.List object into 36 alphabetically sub list. | | Best_of_Joomla! Provides news, templates, tutorials and links. Official home of Fireboard forum. | | Esoteric_Computers Lists projects, details, photos. Convection Plant: no fans or pumps, only silent convective water cooling; Test Rig: research into pumpless, fanless, CPU water cooling. |
|
This is websites2007.org cache of m/ as retrieved on 2008.08.28 websites2007.org's cache is the snapshot that we took of the page as we crawled the web. The page may have changed since that time.
|
Guide to Using AJAX and XMLHttpRequest from WebPasties
function getHTTPObject() {
var xmlhttp;
/*@cc_on
@if (@_jscript_version >= 5)
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
@else
xmlhttp = false;
@end @*/
if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp = false;
}
}
return xmlhttp;
}
var url = "getCityState.php?param=";
var isWorking = false;
var http = getHTTPObject();
function handleHttpResponse() {
if (http.readyState == 4) {
isWorking = false;
if (http.responseText.indexOf('invalid') == -1) {
var xmlDocument = http.responseXML;
var city = xmlDocument.getElementsByTagName('city').item(0).firstChild.data;
var state = xmlDocument.getElementsByTagName('state').item(0).firstChild.data;
document.getElementById('city').value = city;
document.getElementById('state').value = state;
isWorking = false;
}
}
}
function updateCityState() {
if (!isWorking) {
var zipValue = document.getElementById("zip").value;
http.open("GET", url + escape(zipValue), true);
isWorking = true;
http.onreadystatechange = handleHttpResponse;
http.send(null);
}
}
Easy to Use Web Tools
Web Polls, Calendars, Slideshows
RSS Tickers, Podcasts and more.
www.webpasties.com
Guide to Using AJAX and XMLHttpRequest from WebPasties
Back to WebPasties
by Bill BercikCopyright 2005 ©
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.
The purpose of this article is to demonstrate through a series of baby steps just how easy it is to use the XMLHttpRequest object.
In order to complete this tutorial you should have some basic PHP, MySQL and JavaScript experience. That said, the PHP programming in these examples is so basic that if you do not have PHP experience, it may still be possible for you to look at the PHP code and apply the functionality to your weapon of choice, be it PERL, ASP, or JSP.
Below is a the ZIP code example mentioned earlier which takes advantage of the XMLHttpRequest object.
Notice how after you type in a ZIP code and then change the caret's focus to the next form field, the city and state will be magically filled in for you.
This tutorial will lead you through steps you can use to add this functionality to your site
ZIP code:
City:
State:
To Step #1 - Creating the Form
|
|
| |
Detailed | tutorial | that | explains | how | to | creating | an | AJAX | ZIP | code | database | including | a | PHP/MySQL | backend. |
|
http://www.webpasties.com/xmlHttpRequest/
Guide to Using XMLHttpRequest (with Baby Steps) from WebPasties 2008 August
dvd rental
dvd
Detailed tutorial that explains how to creating an AJAX ZIP code database including a PHP/MySQL backend.
Rules
|
© 2008 Internet Explorer 5+ or Netscape 6+
|
|
Recommended Sites: 1.
Arts -
Business -
Computers -
Games -
Health -
Home -
Kids and Teens -
News -
Recreation -
Reference -
Regional -
Science -
Shopping -
Society -
Sports -
World
Miss Gallery
- Top Anime Hentai
- DVD rental by mail
- Custom Jordans - Mobile Java Games - Fishing Reels - Mobile Phone - Credit Cards
|