This problem occurs because the file save code and the page display encoding are not the same. A variety of browsers, there is no uniform specification, especially IE, to do browser compatibility, is more depressing. Let's simulate the problem.
[Original]ajax implementation of user Registration function tutorial two ', '
//
This tutorial by the original site, reproduced please specify the place
Author: www.111cn.net
Email: drise@163.com
qq:271728967
//
The first reg.php file is done
This method is more go, common have the following several;The full page Refresh method is described below: sometimes you might useWindow.location.reload () refreshes the current page.Parent.location.reload () Refreshes the Father object (for
The solution of Ajax Chinese garbled, in fact, will be in the server side of the file plus a header, indicating what the code stream is sent. Like what
An ASP document adds a single line to the header description:
The code is as
Today speaking of Ajax to achieve static file landing effect it, first of all, we take the station www.111cn.net landing effect as an example: First look at the Www.111cn.net landing entrance effect:
This seems to be no different from the other, but
The code is as follows
Copy Code
function Showhint (str){var xmlhttp;if (str.length==0){document.getElementById ("Txthint"). Innerhtml= "Sorry, your username cannot be empty";Return}if (window. XMLHttpRequest){//code for ie7+,
-ajaxA. Full name: Asynchronous JavaScript and XML (asynchronous JavaScript and XML)B. Meaning: A Web development technology for creating interactive Web applicationsC. function: To achieve local refresh, reduce server pressureD. Principle of work:
Solution of error in Response.Write output JS script in Ajax
Ajax 3.5 is not altered. Later tried to Scriptmanager.registerstartupscript (UpdatePanel1, typeof (UpdatePanel), "AAA", ", True); The last true in is changed to
Ajax asynchronously invokes a data instance
Through Ajax in the client call back code, through the background code changes, repair, query data, and return the results to the client, in the client to get the data returned by the server to do the
Ajax technology = Asynchronous JavaScript and XML
Ajax is an abbreviation for asynchronous JavaScript and XML.
Ajax is not a new programming language, but just a new technology to create better, faster, more interactive Web applications.
Each AJAX operation appends a number to the IFRAME.SRC question mark to record history. Click the Back button, iframe in the OnLoad event to obtain the URL of the IFRAME, according to the number after the question mark to fetch records.
00
ajax User Registration detects if user name has been deleted
Username:& Nbsp; required, username 3-12 characters, can only contain 0-9,a-z,a-z or underscores
Usercheck.asp File Code
If Request ("username") <> "thenResponse.Write ("1")End
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.