I came across an interesting bug feature tonight when writing a handler for window.onresize in Chrome (the latest version 6.0.472.55). First open two tabs, then in the first tab open this jsFiddle.
Resize the window at will and the dialog box works as expected. Now, try switching to the 2nd tab -_-. Why is resize firing when the tab is ...
Hi,
I'm trying to add the user's Google StreetView as the background in a php page after he is authenticated, but in Chrome(Windows) it is not considering the z-index of the div (it is in), and also the value of wmode parameter is being "" (empty), I'm trying to update the wmode parameter value to "transparent" then sometimes it works f...
On this page I am getting an error in Google Chrome but only when incognito mode. It works fine in regular mode. Is there a reason why JavaScript would throw in error only in incognito mode?
The error is in the jquery-ui.min.js file. Its an
Uncaught SyntaxError: Unexpected token ILLEGAL
...
From page Javascript, is there any way to know when a Webkit-based browser (particularly interested in recent Chrome, but a generic solution would be nice) has finished drawing the page, and/or has finished resolving all styles? Mozilla browsers have the MozAfterPaint event that's quite handy for this sort of thing.
...
Let's say I have a JSON file stored within my extension called settings.json. I can get the URL of the file using
chrome.extension.getURL("settings.json");
But now that I have the URL, how do I actually load the contents of that file so I can JSON.parse it and use it? The reason I'm doing this is that there is a server component,...
Often a user will misuse a Rich Internet Application, and attempt to use the browser's Back Button. Such mistakes can be disruptive to changed but unsaved information, as in a Flash or Flex application.
It is a simple matter to alert the user for confirmation before leaving the page (see below). However, I have a client who strongly...
I currently have an internal website that is running Apache. It is serving some cgi script webpages (perl code). Recently in Firefox and Chrome it is starting to show plain text version of the HTML code. In Internet Explorer it renders the cgi files as HTML, but in Chrome and Firefox it is rendered as plain text.
In the perl code I h...
Hi
I am using jquery to slidetoggle some divs inside an iframe.
In IE, Firefox it is working perfectly. The divs are sliding open and closed and i am using the following code inside the slidetoggle callback to get the height of the iframe content and then shrink it back to where it should be
I am calling from within the slidetoggle c...
For instance, if I input:
http://www.google.com/
It would return:
http://www.google.com/images/logos/ps_logo2.png
Using javascript/jquery. These sites would all be external. Thank you!
...
How does Internet Explorer go about rendering HTML Tables versus the way Firefox or Chrome may render tables on a page?
One thing I've noticed is that using a table with in a jQuery Accordion doesn't play well in IE, but works great in Firefox/Chrome. And since it is not an issue of the javascript being written incorrectly I was wonderi...
In the chrome console, I can't run any loops. Why is this?
For example, the following will give a syntax error of "Expected '('"
for each (var item in [1, 2, 3]) alert(item)
...
The css part is totally not reflected in the output (for webkit only, others ok), it is as if no css was defined, javascript works tho...
Ajax call
$("#output_area").load("abc.html");
abc.html sourcecode: (Angle brackets are omitted)
!DOCTYPE HTML
html
head
style type="text/css"
css..
css..
...
It's a Struts application.
I have to show some dynamic date in the left hand panel retrieving from DB or any session object e.g Notes.
If there is space between words then its working fine.
But while testing if I am entering some characters without space, then while showing the data in Left hand panel is crossing the table and coming on ...
I've been tasked with setting up a Google Analytics account for a potential client on their site, which unfortunately is powered by some Site Builder software.
I eventually found where the template tags are located in the jumble of pages, and pasted my GA code in as you would normally.
I then go to Google and check trackings been inst...
Could anyone help me with this problem?
Code zip is here: (link taken down)
I have made everything valid but Chrome still calculates the height of the elements completely wrong (9 in every 10 times...)...
Well, technically it does.
$(document).ready(function() {
function resizeIt() {
var extDiv = $('#exte...
Hi!
For reference so that you know what I'm talking about:
http://www.webbuddies.co.za/Pages/Portfolio.aspx
In Google Chrome, the <iframe> doesn't take it's background color from the site linked in it's src attribute, but instead from the parent page's background.
It works 100% perfectly in IE and FF, but how do I get it to display ri...
Hi all,
I've been coding a bit of Javascript to place a ducky randomly on this page.
I wanted to make it hide on the side of objects (like the posts), but I ended up having to hardcode quite a bit of it, since I couldn't get a way to properly retrieve the real position of relative objects with Chrome. I read quite a few things about it...
Hi,
I try to make a chrome extension. For this project I need to have a function that when I activate my popup by clicking on a icon it will not close when I am by instant select a text in a webpage. Normally the popup will hide automatically.
I there a way to block the auto hide function in the google chrome extension.
Thank you,
Wo...
I'm using HTML5 reset as the basis for writing an HTML5/CSS3 website.
For some reason though, basic anchor tags are no longer clickable in anything other than IE!
<a href="http://www.google.com">google</a> renders in the correct colour text for A tags, but no hover effect is being applied, the pointer doesn't change and I cant ...
I have a chrome extension that very simply injects CSS before a page loads. (I know this could be done by javascript once the page has loaded, but this causes the page to flash as it changes/renders the new CSS.)
The CSS is injected as a content script using code like:
"css": ["mystyles.css"],
"run_at": "document_start",
I would ...