⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ajax_httprequest.asp@output=print

📁 W3Schools tutorial..web designing
💻 ASP@OUTPUT=PRINT
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>AJAX HTTP Requests</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>
<body>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

<h1>AJAX Http Requests</h1>
<a href="ajax_intro.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="ajax_example.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>
<hr />
<h2>AJAX Uses HTTP Requests</h2>

<p>In traditional JavaScript coding, if you want to get any information from a database or a file on the server, or send 
user information to a server, you will have to make an 
HTML form and GET or POST data to the server. The user will have to click 
the &quot;Submit&quot; button to send/get the information, wait for the server to respond, then a new page will load with the 
results.</p>
<p>Because the server returns a new page each 
time the user submits input, traditional web applications can 
run slowly and tend to be less user-friendly.</p>

<p>With AJAX, your JavaScript communicates directly with the server, through the 
JavaScript <b>XMLHttpRequest</b> object</p>
<p>With an HTTP request, a web page can make a request to, and get a response from a web 
server - without reloading the page. The user will stay on the same page, and he 
or she will 
not notice that scripts request pages, or send data to a 
server in the background.</p>
<hr />

<h2>The XMLHttpRequest Object</h2>
<p><b>By using the XMLHttpRequest object, a web developer can update a page with data from the server 
after the page has loaded!</b></p>
<p>AJAX was made popular in 2005 by Google (with Google Suggest).</p>
<p><a target="_blank" href="../../www.google.com/webhp@complete=1&hl=en">Google Suggest</a> 
is using the XMLHttpRequest object to create a very dynamic web interface: 
When you start typing in Google's search box, a JavaScript sends the letters off 
to a server and the server returns a list of suggestions.</p>
<p>The XMLHttpRequest object is supported in Internet Explorer 5.0+, Safari 1.2, 
Mozilla 1.0 / Firefox, Opera 8+, and Netscape 7.</p>
<hr />

<a href="ajax_intro.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="ajax_example.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -