With ExtJS development for nearly a year, but also encountered a lot of strange problems, the most impressive to be extjs in IE to show the problem. Because most of the development process with chrome to debug, rarely in IE debugging (now both need to be balanced), led to the last page in IE can not load normally, then that embarrassed Ah, see IE reported the wrong, I want to cry, even the wrong stack of information do not (this point, ie do not really good), do not know. Tried n many methods, a
Found a lot of people in the garden working on response. Download file name is using this method
Response.appendheader ("Content-disposition", "attachment;filename=" + httputility.urlencode (FileInfo.Name, SYSTEM.TEXT.ENCODING.UTF8));
But this is only for use without spaces and ie.
If you want to output in Firefox without encoded files, and ie the output of the file name in the hollow lattice is not the + number, it is necessary to judge one more ti
1, Firefox and IE events event handling
In IE, event objects are saved and maintained as a global variable. All browser events, whether triggered by the user
, or other events, updates the Window.event object. So in code, just easy to call window.event
You can easily get the event object and then event.srcelement the element that triggers the event to further process
In FF, the event object is not a global object, in general, is the scene, the site u
This section makes Firefox also support IE's InnerText method
Copy Code code as follows:
function Isie () {
if (Window.navigator.userAgent.toLowerCase (). IndexOf ("MSIE") >=1)
return true;
Else
return false;
}
if (!isie ()) {//firefox innertext define
htmlelement.prototype.__definegetter__ ("InnerText",
function () {
var anystring = "";
var ChildS = this.childnodes;
for
;
...
$result = 1;
Echo $_post[' callback ']. ' (' Json_encode ($result). ‘);';/ /Note that the encoding used should be consistent with the client request;
Exit (0);
}
Debugging Tools
Firefox has powerful Firebug Plug-ins, now newer browsers such as Chrome and Safari, as well as IE 8 built-in debugging tools, with the help of these debugging tools, can be very detailed view of Ajax The execution process (the shortcut key for the
According to foreign media reports, computer security experts have warned users, while the use of IE and Firefox may cause users to be remotely attacked.
When users use IE browser, if they encounter a malicious Web site, the system will also register a "firefoxurl://" handler. This program allows the browser to interact with specific content on the Web, which can cause users to suffer from remote attacks.
Earlier this week, security researchers Thor
javascript|xml| Advertising
Recently updated the home page ads, ASP. NET advertising control is easy to achieve this, but the homepage is a static page, Lenovo advertising control principle decided to use JavaScript+xml To achieve this aspect of configuration, update the ads as long as the XML can be updated to facilitate the advertising rotationThe XML structure is as follows==
JScript files
var now = new Date ();
var Min = Now.getseconds ();
var i;
if (Min% 2) = = 1)/read seconds, according to
The standard event trigger can use the Dispatchevent method. But now FF5 cannot trigger the default behavior of a. As follows
Copy Code code as follows:
Link A, use dispatchevent analog click. The test jumps to mail.sina.com.cn in the Ie9/safari/chrome/opera. But Firefox5 did not jump over.
Because the click method is added to all elements in Firefox5 (Firefox3 not), use the click Method to test the
Copy Code code as follows:
The test still did n
Beforeunload refers to the last JS execution opportunity provided before the page is unloaded. As follows
Copy Code code as follows:
Window.onbeforeunload = function () {
Return ' The blog you are editing has not been saved, are you sure you want to leave this page? ';
};
You can use the return value text to prompt the user. However, only Firefox does not display the text.
When the page is refreshed, the browser behaves as f
On a front-end page, you need to submit parameters via JavaScript, use JS to create form forms, and append the parameters into the form to submit the code as follows:
JS Code:
Copy Code code as follows:
Functionloadconfig (Gameurl,skinid) {
Vartemp=document.createelement ("form");
Temp.action= "${createlink (Controller: ' Mobileconfig ', Action: ' Beforelaunchconfig ')}";
Temp.method= "POST";
Temp.style.visibility= "hidden";
Varopt=document.createelement ("input");
O
We are using Firefox on some sites to see this display:Now time is: 108 year January 26
And the IE browser's words will show the normal:Now the time is: January 26, 2008
The reason is javascrīpt compatibility problem
var today = new Date (), var year = Today.getyear ();
Inside Firefox getyear returns the value of "Current year-1900", and Microsoft makes a change:When today's year is greater than o
", 1,2,3)You can show hello-world-1-2-3.(The number of arguments is related to the caller, but not to the parameter definition of the function)based on these two properties, we can get the event object for the first function:Btn.onclick=handle_click;function Handle_click (){Showcontent ();}function Showcontent (){var evt=searchevent ();if (Evtevt.shiftkey)//If the call is based on an event, and shift is pressedwindow.open (Global_helpurl);ElseLocation.href=global_helpurl;}function Searchevent ()
Perhaps "excellent" will bring a lot of criticism, but I think it's really good, and I've seen about 20 flash-free drop-down lists, and they're a mess underneath Firefox. I've been doing this for two days, and that's how if you submit a form, you can keep the value of the second list box, because you pass the JS Add an entry to the Drop-down box then his state is not to be saved test platform: Ie6,firefox
Today in the Ajax use of two Drop-down boxes dynamically add options in the Select, when I am in the normal use of IE test in Firefox is not normal use, I am not very familiar with the script, so the Internet check to find them in the dynamic add option when a little different.
Take him down below, and you might use it later:
To delete all options in a select dynamically:
function Deletealloptions (SEL) {
sel.options.length=0;
}
To delete an opt
In the development of Firefox OS 1.4 (expected June 10, 2014), Mozilla developers have created a new graphical user interface, code-named Haida, to improve the user experience on mobile devices and effectively improve the efficiency of multi-tasking management.
The new Haida interface, all rewritten with HTML, CSS, and JavaScript, will increase the efficiency of multitasking management. Now that you've abandoned the Task Manager management, you c
The two days are plagued by Firefox's Chinese font display problems under the Mac. In Firefox, set the Sans-serif font to the SIMSUN-EXTB (new Arial) or English font (this will use the Mac default Chinese font), as shown in the following figure:
When browsing the website of the garden, the Chinese fonts displayed are strange and ugly, see the picture below. The same settings in Chrome, the fonts displayed are completely different.
(the image sho
Page Speed performs several tests on the Web server configuration and front-end code of the site. These tests are based on a set of best practices that are known to enhance Web page performance. A site administrator who runs page speed on a Web page gets a set of scores for each page and useful suggestions on how to improve the performance of the Web page.
Edit this paragraph using Page speed
With Page speed, you can:
Make your site faster;
Make Internet users always follow your website;
Reduce
General view of the individual:
Browsers are not the end of the update, Chrome has completed a big step, it is good, but there is still distance from Firefox. (Of course, if you use the number of people to determine the pros and cons of a software, then I have nothing to say) because the kernel reason Chrome cannot eliminate Firefox, and Firefox needs an opportu
1. Firefox cannot support innertext.Firefox supports innerhtml but does not support innertext. It supports textcontent to implement innertext, but by default, redundant spaces are retained. If textcontent is not required, you can use innerhtml instead if the string does not contain HTML code.2. Prohibit the selection of webpage content:JS: obj. onselectstart = function () {return false;} is generally used in IE ;}
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.