Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
1
Script Language
=
"
Javascript
"
>
2
//
Judge whether it is an integer
3
Function
Isnum (STR)
4
{
5
HTML file (cd.html)
Cd navigate title: Artist: year: country: company: price:
XML file (CD. XML) empire burlesque Bob Dylan USA Columbia 10.90 1985 hide your heart Bonnie Tylor UK CBS Records 9.90
There is no uniform format for the characteristics of the Javascript language, writing specifications, and object-oriented encapsulation. My personal agreement is as follows:Book writing specificationsNamespaces, classes, and method names are
Dom provides a set of attributes for navigation, accessing, and updating document content, including read-only and read-write attributes.
The following table showsRead-Only TypeProperties:
DOM object
Arrays can be defined in four ways.
Use constructors:VaR A = new array ();VaR B = new array (8 );VaR c = new array ("first", "second", "third ");Or the number of arrays directly:VaR d = ["first", "second", "third"];
Attribute
Array has only
The javascripts in the HTML body section is executed when the page is loaded.The javascripts in the HTML head section is executed only when it is called.
--------------------------Where should JavaScript be stored?The javascripts in the page will
Using js to dynamically create a table can be in two formats: appendchild (), insertrow, and insertcell (). The two methods are similar, but the first one may have problems with IE. Therefore, we recommend you use the second method.
1. inserrow (
///
Reads the URL string as a key-value pair. ///For exampleHttp: // 192.168.1.211/jcysoft6.0 _ Changzhi/vacation.htm? Id = 1 & Action = addFunctionGetquerystring (key) { VaRValue = ""; ///Get the URL of the current page VaRSurl = Invalid
I wrote a WebServices method ~ Obtain the weather using the city name I will not see garbled characters when calling the server directly ~ (I deployed cirpt to Microsoft's WebServices. HTC.) but when I call the WebServices Chinese parameter in
Data source: http://www.blueshop.com.tw/board/show.asp? Subcde = brd20090219135915sxd & fumcde =
Special thanks to the great support provided by Bryan
The callback routine is as follows:
upload parts:
Defined
Style
What should I do if I want to change the content?
Below is a simple example
% @ Language = VBScript % > Html > Head > Meta Name = "Generator" Content = "Microsoft Visual Studio 6.0" > Style
Location -- location is used to obtain or set the URL of a form and parse the URL. It is one of the most important objects in Bom.
LocationThe meaning of Chinese "location"
URL: http://www.dreamdu.com/javascript/window.location/
Generally, the Traversal method is used to determine whether each radio is selected. If yes, obtain its value.
1 2 3
There are two points to note: how to set values and how to traverseDocument. getelementbyid ("userlist"). userid;This is the
Recently encountered a problem in the project. When you need to use window. showmodaldialog (PATH) to pop up a webpage.There is a Treeview control on the webpage. Treeview has several levels of nodes. It is invalid when you click expand node. The
Cross-origin access refers to the Access to Data Objects in another domain through JS on pages in one domain. For security reasons, almost all browsers do not allow cross-origin access.
That is to say, Using ajax to access content in different
Chapter 1. Modern JS Programming
Separate Dom Script Programming
Use Dom to locate and operate different DOM elements
introduction to the DOM introduction to the DOM it can be found. it's easy to use.
Chapter 2 object-oriented JS
Reference
1.
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