AJAX login verification

Ajax login verification The js file is as follows: Var xmlHttp; Function IMG1_onclick (){ CheckIsValid (); } Function CheckIsValid () { CreatXmlHttpRequest (); Var userName = document. getElementById ("AdminText "); Var passWord = document.

Javascript uses substr to obtain the substring of a string

Javascript uses substr to obtain the substring of a string

The text disappears when the js text box is clicked, and the text appears when the focus is lost.

We often see some websites that want to fill out a form for registration. One is that when the text box has a focus, the text box prompts to disappear. If we leave the text box, the western-style file prompts will come out, below I will introduce

Other parameters of the transfer form for SWFupload File Upload

In the past, we used SWFupload to upload files directly, and then the parameters were processed separately. Next I will introduce other parameters for passing the form using SWFupload. On the upload page, the value is always not obtained. Later, a

How to add a reference tag to the kindeditor Editor

The kindeditor editor does not contain blockquote tags by itself. If you need to add tags, You need to modify them by yourself, next, I will introduce you to the steps for adding blockquote tags to the kindeditor editor in eblog. For more

Introduction to asynchronous loading of Javascript listening Elements

We know that in IE browsers, we can monitor the loading status of elements through onreadystatechange, and then determine whether the elements are loaded through the readyState attribute. In standard browsers such as Chrome and FireFox, we can

Js control web pages open program code in a specific iframe

This article introduces a good js control page to open the program code in a specific iframe. If you need to know it, please do not go to the reference page. When writing the system management backend, we often use iframe for management, but there

JavaScript cannot read the contents of the script Tag src file.

This article describes how to solve the problem that JavaScript cannot read the src file of the script tag. Script tag Generally, when we create a script tag on the page, src either introduces an external js file:? 1 script

Js random array string (random advertisement)

On a large portal website, we will see that the ads displayed for the first time are different. Next I will introduce you to the random array strings. In fact, the ads are almost random. Instance The Code is as follows: Copy code

Explanation of javascript English letter case-insensitive Conversion

Next I will introduce to you how to use the toLocaleUpperCase (), toUpperCase (), toLocaleLowerCase (), and toLowerCase () functions of js to convert uppercase and lowercase letters. Next I will introduce it to you. ToLocaleUpperCase converts all

Details about the security scope usage of js Constructor

Today, when I read the javascript advanced Program Design book, I saw an article on the security scope. Next I will write about the security scope usage of js constructor based on my own knowledge. Let's take a test. The summary is as

Js verification character length examples

In js, we can use the length function to determine the length of common pure letters and numbers. However, we may not be very accurate about Chinese characters, below I will add some related instances to your favorites. For example, use the length

Solutions for session/cookie invalidation of iframe cross-origin calls in IE

The reason for the invalid session and cookie for iframe cross-origin logon in IE browser is that the P3P (Platform for Privacy Preferences Project (P3P) specification supported by IE6/IE7) by default, the Protocol prevents third parties from having

How to Use js onbeforeunload and onunload events

Onbeforeunload and onunload events are the functions of the two functions before and when the page is loaded, which can prevent prompt refresh when the page is refreshed or when the page is closed, next I will introduce the usage of onbeforeunload

Share 5 interesting JavaScript code snippets

Many people think that programming languages are only used for work, and there is no pleasure. In fact, as long as we make full use of our whimsy, there is also an interesting aspect of rigid things. This article tells you that using JavaScript can

Javascript in IE6 cannot hide the select tag bug.

Yesterday I made a simple project and required a select menu with three levels of linkage. However, IE6, which cannot afford to be hurt, encountered a select bug that cannot be hidden, I have also introduced the select layer-high issue in IE6, which

Perfect Method for judging whether iframe is loaded

Today, I just need to judge that the iframe loading is complete. I just found out that the method for this article is perfect. Var iframe = document. createElement ("iframe "); Iframe. src = "http://www.bkjia.com "; If (! /* @ Cc_on! @ */0) {// if

Javascript retrieves an instance of url parameters

Today, a friend asked the webmaster about how to obtain the url parameter value. In webpage design, sometimes we need to obtain the Link parameter on the client, A common method is to use a link as a string, break it down according to the link

Introduction to Prototype series (2) prototype. js Methods

Var Class = { Create: function (){ Return function (){ This. initialize. apply (this, arguments ); } } }; Object. extend = function (destination, source ){ For (var property in source) destination [property] = source [property]; Return destination; }

JQuery example: About $. getJSON cross-origin Ajax Method

The tutorials on the Internet are provided with an example. I don't know where to use $. getJSON to implement cross-origin Ajax. After some time of "research", I will write down the results. Client: When $. getJSON () is used to transmit the first

Total Pages: 472 1 .... 196 197 198 199 200 .... 472 Go to: GO

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.