All Questions

128
votes
8answers
77918 views

How can I make setInterval also work when a tab is inactive in Chrome?

I have a setInterval running a piece of code 30 times a second. This works great, however when I select another tab (so that the tab with my code becomes inactive), the setInterval is set to an idle s...
1179
votes
29answers
587660 views

How do I get ASP.NET Web API to return JSON instead of XML using Chrome?

Using the newer ASP.NET Web API, in Chrome I am seeing XML - how can I change it to request JSON so I can view it in the browser? I do believe it is just part of the request headers, am I correct in t...
256
votes
30answers
355813 views

Get the real width and height of an image with JavaScript? (in Safari/Chrome)

I am creating a jQuery plugin. How do I get real image width and height with Javascript in Safari? Following works with Firefox 3, IE7 and Opera 9: var pic = $("img") // need to remove these in of...
216
votes
22answers
147601 views

How can I force WebKit to redraw/repaint to propagate style changes?

I have some trivial JavaScript to effect a style change: sel = document.getElementById('my_id'); sel.className = sel.className.replace(/item-[1-9]-selected/,'item-1-selected'); return false; This w...
880
votes
11answers
1100291 views

How to remove border (outline) around text/input boxes? (Chrome)

Can anyone explain how to remove the orange or blue border (outline) around text/input boxes? I think it only happens on Chrome to show that the input box is active. Here's the input CSS I'm using: i...
21
votes
2answers
26393 views

The Chrome extension popup is not working, click events are not handled

I have created a JavaScript variable and when I click on the button it should increment by 1, but its not happening. Here's manifest.json. { "name":"Facebook", "version":"1.0", "description":"...
698
votes
32answers
643225 views

Getting Chrome to accept self-signed localhost certificate

I have created a self-signed SSL certificate for the localhost CN. Firefox accepts this certificate after initially complaining about it, as expected. Chrome and IE, however, refuse to accept it, even...
172
votes
18answers
210042 views

Force DOM redraw/refresh on Chrome/Mac

Every once in a while, Chrome will render perfectly valid HTML/CSS incorrectly or not at all. Digging in through the DOM inspector is often enough to get it to realize the error of its ways and redr...
88
votes
7answers
198718 views

How to launch html using Chrome at "--allow-file-access-from-files" mode?

I have the same situation with HERE And to solve this problem I have to launch html file using Chrome at "--allow-file-access-from-files" mode. I tried next steps many times, but it doesn't work. s...
232
votes
36answers
153814 views

Chrome Browser Ignoring AutoComplete=Off

I've created a web application which uses a tagbox drop down, this works great in all browsers except my preferred browser Chrome (Version 21.0.1180.89). Despite both the input field AND the form fie...

Previous Next