google-chrome

How does Chrome know my geolocation?

Chrome seems to be very accurate in detecting my location. How does it do it? Can you point me to the source code? ...

Google Chrome HTTP monitor (like HttpFox)

I am looking for an HTTP traffic monitor/sniffer (something like Firefox's HttpFox) for Google Chrome, for debugging/development purposes. It is the only thing preventing me from switching entirely to Chrome for web development. Is there one? ...

How to compare height of nested divs?

I got 2 divs, one inside another. <div id="ads_content" class="ads_contents"> <div id="ads_text" class="ads_text"> ... text contents ... </div> </div> ads_content div has max-height of 230px, and it has overflow: hidden. So there will be shown a definite amount lines of text from ads_text div. I need to compare their ...

jquery CSS properties not set properly in Chrome

The following line of code doesnt seem to be doing anything in chrome but works perfectly fine in other browsers $('#slides').stop().animate({marginLeft:-positions[pos]+'px'},450); Can anyone tell me a fix? The actual site can be viewed here http://eyantra.akshar.frihost.net/ci/ ...

A simple HTML page with content, but get White Page in Chrome 6.0.472.53

I am developing a ASP.Net web site and my page works normally in IE/Firefox/Opera This is the page source code. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head><title> Content Navigation </title><meta ht...

Using JQuery mousemove to track mouse, Scrolling with wheel is fooling me

I'm noticing something very strange with Chrome/Ubuntu, seen also on the JQuery mousemove page here. When I use the wheel to scroll vertically, I get new coordinates in pageX, pageY, but the pageY seems to be about 50px-60px off. I can see this because as soon as I move the mouse a little to the side, the Y coordinate suddenly jumps a...

Using panels in chrome extensions

I was wondering, normally chrome extensions appear in their little area below their icon, but how would I make one that has it's own little space on a side of the browser, like FireBug lite does for chrome? Where it pushes the page up and docks at the bottom. I have seen the sidebar in the 'experimental.sidebar' chrome api, but I don't w...

Javascript: Delaying display of the context menu (Chrome)

I'm trying to dynamically create context menu items in a Chrome extension; this involves sending a request to the main extension process to modify the menu, and blocking the menu from being displayed until a response is sent. I've been experimenting with different solutions all day, and I have yet to come up with one that works. For ex...

jquery margin problem with chrome 6

I have a problem with jquery (1.4.2) and chrome 6 margin-left:auto margin-right:auto $(id).css('margin-left'); $(id).css('margin-right'); both return a px value(ex: 327px) ...

IE and Chrome jquery and css support problem

I developed little site that use: -webkit-box-shadow: 0px 0px 20px #000; -moz-box-shadow: 0px 0px 20px #000; box-shadow: 0px 0px 20px #000; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; for making shadow and radius on boxes. And $(".mainpage").show() Jquery function to show new content qhen user clic...

JavaScript innerHTML causing css to disappear on <button>

I have a button tag with two spans inside; <button><span><span id="buttonText">Save</span></span></button> I'm trying to make it so that when you click the button the text changes so I have; onclick="document.getElementById('buttonText').innerHTML = 'Saving...'; this.style.className" Now funnily enough it works fine in IE8, but te...

xsl:include and xsl:param at Google Chrome, with jQuery transform plugin

I've been trying to use XSL with Google Chrome, but with no success. I read that Chrome have some bugs with XSLT, and one of them is that it doesn't support xsl:include. Bug can be checked here: http://code.google.com/p/chromium/issues/detail?id=8441. After some research I found a new version of the transform plugin by Daer System, and i...

create javascript code in a php file - SAFARI/CHROME doesn't work

Hello, I've created a .php file that write out js code like that: <? //my_js.php // javascript header header('Content-type: text/javascript'); // Date in the past header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // always modified header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); // HTTP/1.1 header('Cache-Control: no-stor...

Why don't my Greasemonkey scripts work in Chrome?

My Greasemonkey scripts all work in Firefox 3.6, but in Chrome 6 nothing special happens when I load a page that is supposed to trigger them. Here's an example script (pasted below) that highlights top comments on Hacker News. Can anyone identify what I'm doing wrong? When I click on the user.js file and install it in Chrome, the install...

copy paste table to chrome, textarea.value no new lines

try this in chrome (ff,ie works ok): in msword or writer make a 3 row table. In each row put something, select all rows and copy paste to chrome textarea. Each row is now in new line but when you check textarea.value there is no new lines ..strange even spliting by \n or \r not working textarea.value always return one line output any id...

CSS problem only in IE

Hi, I've created a web site www.qwik-facts.com which is being seen as I want it in chrome, firefox and safari. However, in IE it gets messed up. I know I should be more specific, but I just can't figure out what the problem is. Can someone take a look and point me in the right directon? Thanks! ...

Injecting JS in Google Chrome's page with variables from the userscript?

Hello, I am having a script that used unsafeWindow in FireFox, since that did not work, I have searched for another option, and found it, I am only wondering: How can I use a variable from my userscript into the unsafeWindow workaround? My code is: // ==UserScript== // @name Test // @description Test // @include http://www.google*...

add url to html extention Chrome

Hello, I am starting to write a extention for chrome. For this extention I like to add automatically the url on the bar to an text field of my extention. When I click on my extention u popup shows a form with a field. The value must be set to the URL of the page i Visit. I work normaly with Jquery, and maybe the answer can fit in the...

chrome browserAction to pageAction

this works fine in browserAction.. but when i switch it pageAction.. even the icon doesnot show up background.html <html> <head> <script> // Called when the user clicks on the browser action. chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.create({'url':'http://google.com/search?q=si...

Any differences between refresh a page and enter a page in webkit browser ?(tricky)

When I start a webkit browser instance and enter http://localhost, the result of $this.innerWidth() is right (I used jQuery). But if I tried to refresh the page, the result of $this.innerWidth() will change, which is wrong. It seems no sense, as I think refresh is the same to start a new page loading. And this only happens in webkit br...