To write JavaScript code that is compatible with mainstream browsers, you need to pay attention to their differences. The general Dom that IE and FF comprehensively consider is below!
1.doc ument. formname. Item ("itemname ")
Description: You can
JSP page itself, the page object is an instance of the servlet class after the current page is converted. From the converted servlet class code, we can see this relationship: Object page = this; in JSP pages, page objects are rarely used.
The
Note: This is a class that uses the javascrpt class to display the tree structure. Version 0.5 of the program (the first unperfect program) is implemented using JavaScript and xml dom. In ie5.5 or earlier versions, the msxml3.0 component must be
/*
* Parameters:
* Textvalue: Text value (to create a text cell text value)
* Idname: ID value (to create a text Cell ID)
*/
Function createtexte (OBJ, idname, textvalue ){
VaR span = Document. createelement ("span ");
Span. setattribute
1.doc ument. formname. Item ("itemname ")
Description: You can use document. formname. item ("itemname") or document. formname. elements ["elementname"]; In Firefox, only document. formname. elements ["elementname"].Solution: Use document. formname.
Getattribute () method
● A document is a node tree.
● Nodes are divided into different types: Element nodes, attribute nodes, and text nodes.
● The getelementbyid () method returns an object that corresponds to a specific element node in the
Property and attribute are very easy to confuse, and the Chinese translation of two words is very similar (properties: attributes, Attribute: properties), but in fact, they are different things and belong to different categories.
property
About PDOPDO is a "database access abstraction layer" that is used to unify various databases (MySQL, MSSQL, Oracle, DB2, PostgreSQL ......) Allows you to easily switch between different databases, making porting between databases easy.
PDO driver
Procedural processing of Struts1 for zh_HANS_CN InternationalizationRecently, zh_HANS_CN was introduced to solve the problem of Chinese locale changes in Windows 8. sites that have already supported Chinese languages cannot work normally.Of course,
The code is as follows:Copy code FLASH key detection and right-click shielding Disable or enable scrolling based on whether the focus is on FLASH. The code is as follows:Copy code disable or enable scrolling based on whether the focus is
Recently, zh_hans_cn was introduced to solve the problem of Chinese locale changes in Windows 8. sites that have already supported Chinese languages cannot work normally.
Of course, you can add a resource file to support the new locale, but
Compatibility between IE and Firefox and Its Solution (zt)
Original address:Http://hi.baidu.com/thinsoft/blog/item/9d159a1bdb6939f9ae513319.htmlUse:Document. getelementbyid ("apple") is used to access the object, and an ID must be unique on
The so-called attribute range is the range of save that can be accessed after a property is set, after how many other pages are still accessible.One, JSP attribute scopeThere are four attribute ranges available in the JSP, and four attribute ranges
Example of using the getAttribute method in js, jsgetattribute
GetAttribute () method
So far, we have introduced two methods to retrieve specific element nodes: getElementById () and getElementsByTagName. After finding the element, we can use the
Get reference of Map type request, session, application, actual type HttpServletRequest, HttpSession, and ServletContext:
First three: dependent on Containers
First three: IOC (only this type)
The following three: dependent on Containers
Third:
Pdo usage learning notes. 1. basic concepts 1. PDO: the abbreviation of PHPDataObject. The PDO extension class library defines a lightweight and consistent interface for PHP. It provides a data access abstraction layer, regardless of the basic
1.doc ument. formname. Item ("itemname ")Description: You can use document. formname. item ("itemname") or document. formname. elements ["elementname"]; In Firefox, only document. formname. elements ["elementname"].Solution: Use document. formname.
1. Request object
The request information of the client is encapsulated in the request object, so that the client can understand the customer's requirements and then respond. It is an instance of the httpservletrequest class.
Serial number method
Nine built-in Jsp objects and nine built-in jsp objects
Nine built-in Jsp objects
Implicit object
Description
Request
After translation, the corresponding HttpServletRequest/ServletRequest object
Response
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.