Solution to browser security error code: 1000

Source: Internet
Author: User
Document directory
  • I. Error
  • Ii. Solution
  • 3. Concepts of browsers to be understood
Solution to browser security error "Code:" 1000 Error

@ 2010-8-30 for & ever

 

Security error "Code:" 1000 error occurs when the webpage is running in the Firefox browser (you can view this error through firebugs ).

 

I. Error

Scenario 1,
File fields cannot be assigned values.
For example, <input type = "file" id = "file" value = "/> assign a value to this input string, and the error is returned.

Case 2,
Cross-origin scripts and CSS references
For example, a web page a.html runs on www.cnvqs.com, and a CSS style file is introduced in the header of the page.
<Link href = "http://img.cnvqs.com/css/a.css? Rand = 20100830006 "rel =" stylesheet "type =" text/CSS "/>
Then introduce Baidu's Js
<SCRIPT charset = "GBK" src = "http://www.baidu.com/js/opensug.js"> </SCRIPT>
This error is reported when you run the webpage.

Ii. Solution

For scenario 1, you can call form's reset () to clear the value of the original file domain, instead of clearing it by assigning values in Js.

In Case 2, you can add a line of code at the end of an HTML webpage file (for example, before the end of the body), as shown in the following code:
<Style> </style>
</Body>
</Html>
To solve the problem.

3. Concepts of browsers to be understood

Globalstorage
A browser object used to store information on the client.
In HTML5, it is suggested that after the browser is closed, the information stored using globalstorage can still be retained and the storage capacity is 5120 K under the same domain.
Like sessionstorage, information stored on any page in the domain can be shared by all pages.

The scope corresponds to the domain name of the storage, for example
Globalstorage ['img .cnvqs.com '] All pages under the img.cnvqs.com domain name can use this space
Globalstorage ['']: space available for all domain name pages

Currently, Firefox only supports globalstorage storage in the current domain, while the above case 2 is obviously the public domain used, so
"Security error" Code: "1000" appears ".

 

@ 2010-8-30 forandever

 

 

 

 

 

 

 

 

 

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.