[Attribute^=value] Usage considerations for the jquery selector under FirefoxA script that was written earlier uses thevar bindattrs = $ ("[databind^= ' attr '", item);We all see the problem, right?This script has been used for some time, but it hasn't been tested under Firefox,Can be used under other browsers!Today, someone suddenly finds that the data loaded under Firefox is incorrect,After a period of de
Use the link as follows. After clicking in Chrome, the behavior is expected, but a new tag card will be opened under IE (according to reference, Firefox has the same problem).After looking for information, found to be resolved as follows.Block browser default event via onclick: or direct: The reason is that three browsers have different processing order for three properties.Chrome Order: onclick, href-and targetIE and
Async default is True, which is asynchronous, $. After Ajax executes, it will continue to follow the footsteps of Ajax until the server side returns data, triggering $. The success method in Ajax. Two threads are executed at this time.
My flash-screen situation is:
The code is as follows
Copy Code
$.ajax ({Type: "Post",URL: "index.php",Data: {},Async:false,Beforesend:function () {},Success:function (data) {//...},Complete:function () {}});
Here, my async i
Customattributedemo (obj)
{
if (Obj.clickcount = = ' 0 ')
{
Obj.clickcount = ' 1 ';
}
Else
{
Obj.disabled = true;
}
}
The above code will fail under Firefox because Firefox has a higher limit on the use of custom attributes and can only access it using the attributes[] collection, Firefox code:
Copy Code code as follows:
Using Python to write a reptile will certainly want to analyze the browser's various behavior, I use the tool is the Firefox browser plug-in Httpfox, the following describes the installation and use of this plug-in method.
First, open the Firefox browser, click on the menu in the upper right corner to open additional components
Second, click on the extension on the left, search Httpfox on the rightAfter t
Normally, we usually capture onkeydown or onkeyup events in input to do some commonly used processing, such as restricting the input of a certain type of characters, or restricting the length of input, and so on.
If you want to capture these onkeydown and onkeyup events in a Div, it is browser-compatible if you bind attributes directly to the nodes such as:
The code is as follows
Copy Code
Then in IE can work, and in
JavaScript gets Event
To start with a simple example, a simple button control is as follows:
Then register the event for it, and in this case, how to get an event in JavaScript, especially Firefox. Please see:
No accident, in the IE/FF, the above example will output input, that is, the trigger Click event node label name, ie, the event access here will not say, the focus of the situation under the FF.
Here the arguments.callee.call
The current version of the open source mobile OS Firefox OS is that the stable version that has been released to the manufacturer is 1.3, the release to be released in perfect functionality is 1.4 (released 25th this month), and the version of the research and development process has just been set to 1.5. The Firefox OS's main source branch on GitHub is already 1.5, and today it is possible to show what has
The Perfect browser-compatible
HR:
height:1px;
Border:none;
border-top:1px solid Black;
margin:0;
*margin:0 0-14px 0;
Float:none;
*float:left;
Display:block;
The 1.hr element is a block-level element that is a box that has border
2. Height:
sizeAnd
Style.height.IEAnd
FirefoxThe size is interpreted and calculated differently, so it's best not to
sizeUse
Height, but there will be a border
Box, so will
Border:none.
FirefoxIt's under.
sizeIt's solid.
Box, not just an ordinary block-lev
Recently, colleagues encountered a problem, the mall Web page when the jump, in Firefox click PageTag jump failed. Test in chrome,360, QQ browser jump normal.
Solution path:
1, in Firefox, Ctrl+shift+a, open the browser component interface
First component, tab optimization, disable. Restart the browser. Browse the Site page again, OK.
2, upgrade your Firefox
In the Android version of Firefox View blog home found in the middle of the font display is very large, began to think is the home page CSS for mobile browser support is not good.
It turned out to be a well-known bug in Firefox for Android:
For the. This is a known bug in Firefox's code to enlarge text to make it more readable on small screens. For details, seehttps://bugzilla.mozilla.org/show_bug.cgi?id=
1. Document.form.item Issues
(1) Existing problems:
There are many Document.formName.item ("itemname") statements in existing code that cannot be run under Firefox (Firefox)
(2) Workaround:
Use document.formname.elements["ElementName"]
2. Collection Class object issues
(1) Existing problems:
Many collection class objects in existing code use (), IE can accept, Firefox
, IE and Firefox js and CSS
PNG Transparent AlphaImageLoaderFilter:progid:DXImageTransform.Microsoft.AlphaImageLoader (Enabled=benabled,sizingmethod=ssize,src=surl)
Enabled: Options available. A Boolean value (Boolean). Sets or retrieves whether the filter is active. true: Default value. Filter activation. False: Filters are prohibited.Sizingmethod: Options available. String. Sets or retrieves how a picture of a filter's object is displayed within t
Workaround, check the environment:Python 2.7.10Firefox version 46Selenium 2.53.6Note: The Firefox automatic update is turned off, otherwise the selenium use case may not be executed after an automatic upgrade.The error is as follows:Macbookpro:github apple$ Python3 Test.pytraceback (most recent call last): File "/library/frameworks/python.framework/ versions/3.4/lib/python3.4/site-packages/selenium/webdriver/common/service.py ", line-up, in Start Stdo
Before tossing MATLAB Chinese input problem, the structure of MATLAB is not good, but also the Firefox Chinese font bad. (Some of the pages, such as Baidu know the display of Chinese places all error)The previous action is:Ubuntu installation Chinese font can display Chinese, or cannot input Chinese (fictx).First, prepare font XP fonts stored in the C:/windows/fonts directory, we have the favorite fonts copied out, such as SIMSUN.TTC, Simkai.ttf, Sim
This article reproduces the method of installing Flash Player from http://blog.sina.com.cn/s/blog_6ad624380102v1xf.html Firefox: first download flash on the Adobe website Playerflash Player plugin: http://get.adobe.com/cn/flashplayer/then extract the sudo cp./downloads/install_flash_player_11_linux.i386/ libflashplayer.so/usr/lib/mozilla/plugins/./downloads/install_flash_player_11_linux.i386/ Libflashplayer.so This path depends on the name of the extr
1. Since Firefox defaults to allow Web pages to choose their own fonts, there will be some Web site garbled on Linux. So you can remove the option to allow the page to choose its own font to solve some garbled situation. 2. If there are garbled characters, and other applications garbled, try the following solution.The simple brute force method is to remove the default profile directly.1 sudo mv /etc/fonts/conf.d/-sansserif.conf /etc/fonts/conf.d/-sa
When we use XMLHttpRequest to get the text content, if the server returned is GBK (or gb2312 and other non-UTF8 encoded) content, then get a bunch of garbled, how to convert to the default UTF8 encoded text in the browser?In fact, if you are using Chrome or Firefox browser, it is very simple, you can use the browser built-in object Textdecoder to convert.JavaScript Sample code:if (' Textdecoder ' in window) { var files = { ' gbk.txt ': ' GBK '
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.