google-chrome

Is there a way to disable IPv6 in Google's Chrome?

I'm developing websites in a Windows 7 machine. When I've installed Firefox I've found some performance issue specially on connecting to the localhost, googling around I've discovered that it's related to the use of IPv6 by the browser to resolve urls. Using about: config and setting network.dns.disableIPv6 to true the problem is gone...

Get page selection including HTML?

I'm writing a Chrome Extension, and I was wondering if it was possible to get the selected text of a particular tab, including the underlying HTML? So if I select a link, it should also return the <a> tag. I tried looking at the context menu event objects (yes, I'm using a context menu for this), and this is all that comes with the call...

window.open height isn't the same in Google Chrome as other browsers

I am using javascript's window.open to open a browser window on a user click at a specified width and height (760x581), and this works correctly on Internet Explorer, Safari, and Firefox, but Google Chrome is giving me issues. In the other browsers, the height is correctly used as the height of the content, but in Google Chrome it is ma...

Export Javascript Console log from Google Chrome

Is there any way to export messages logged to the javascript console in Google Chrome? If not, can anyone suggest a good way to diagnose javascript problems on a client's machine? I have not been able to replicate the problems locally, despite setting up an identical environment. ...

Google Chrome issue with flash wmode: "transparent" cant catch click event

It works on IE7 and mozilla, but on Chrome when u set param wmode: "transparent" it doesn't react to mouse event... Any solutions? ...

Chrome says "Resource interpreted as script but transferred with MIME type text/plain.", what gives?

Hi All In FF and all, my javascript works fine. But in Chrome it gives this message: "Resource interpreted as script but transferred with MIME type text/plain." I have checked all the script tags and they all have the MIME type="text/javascript". It even says so with jquery and jquery ui. What's up with Chrome? What's the problem and ...

Language identification (Opera, Safari, Chrome) in PHP

I'm using $_SERVER["HTTP_ACCEPT_LANGUAGE"]to detect the browser language, which works fine for Firefox and IE: Firefox: de,en-us;q=0.9,en;q=0.7,ru;q=0.6,ro;q=0.4,hu;q=0.3,zh;q=0.1 Internet Explorer: de Unfortunately, it doesn't work for the following browsers: Opera: en,en-US;q=0.9,ja;q=0.8,fr;q=0.7,de;q=0.6,es;q=0.5,it;q=0.4,pt;q=0...

What exactly am I embedding when using WebKit in C#?

As I understand it, both Safari and Chrome use WebKit. There are many projects that allow you to embed WebKit, but want I actually want is to embed Chrome (for Windows) in a C# app so that my application renders identically to Chrome on Windows. So when I embed, say, AwesomiumDotNet, will the rendering, CSS support, Javascript engine, f...

Layout differences between Firefox and Chrome

I'm laying out a tabbed UI on the side of a webpage, and I've done the whole thing using percentage values for height/width of tables, divs, and trs. In Chrome the page looks correct, but in firefox, a certain table seems unaffected by the setting for its height and extends off of the page. What could be happening here? Update: I ...

Strange behavior of Chromium browser after apache configuration

I have tried mod_fcgid from this source then before finishing steps I changed it back to mod_php by reversing what I did aptitude purge apache2-suexec libapache2-mod-fcgid php5-cgi then enabled php5 a2enmod php5 then diseabled following modules a2dismod suexec a2dismod include a2dismod fcgid After than when ever I pointed out Chromi...

Chrome Extension Development : Message passing Problem

Hi All, Having a problem while passing messages using content scripts in Google chrome extension dev My Code structure looks like this: popup.html: var oList; function getHTML() { chrome.tabs.getSelected(null, function(tab) { chrome.tabs.sendRequest(tab.id, {action:"getHTML"}, function handler(response) { oList = respons...

SQLITE + CHROME/SAFARI: "not authorized" ERROR

I am trying to do a bulk transaction using SQLITE on CHROME (and SAFARI). I'm doing this with javascript so this is what I have: ============================================================= query = "BEGIN TRANSACTION; " query += "INSERT INTO schools (name) VALUES('School 1');" query += "COMMIT TRANSACTION;" db.executeSql(query); ...

Aware of img tags with empty src in Chrome

Hello, As I figured out, Chrome do not ignore empty src, but loading currently viewed file into it. I had statistics counting error because of this "feature". Create file.php with this code... <? $fp = fopen("log", "a+"); fwrite($fp, time()."\"); fclose($fp); ?> <h1>Here is my page...</h1> <img src="" /> <img src="" /> ..and t...

JavaScript: using Flattr API. how to wait until API is loaded?

Hi, I'm trying to use the Flattr JavaScript API. I included the loading code as described. But FlattrLoader.setup() does not work. I am getting the exception ReferenceError: FlattrLoader is not defined. I tried both <script type="text/javascript"> FlattrLoader.setup(); </script> and <script type="text/javascript"> window.onlo...

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 works fine with the latest versions of FF, Opera and IE, but fails on the latest versions of Chrome and Safari. It affects two descendants,...

Javascript array named status not working in google chrome

I'm tryig to create a array named status in my javascript, but it is not working in Google Chrome. <html> <body> <script> var array = [1, 2, 3]; document.write("Type of [" + array + "] : " + (typeof array) + "<br />"); document.write("Value of array.length : " + array.length + "<br />"); ...

jQuery UI working in Firefox, but not in Chrome & Safari?

I'm using jQuery UI, specifically Datepicker and Autocomplete, as follows: <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"&gt;&lt;/script&gt; <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> $("#note_date").datepicker({ maxDa...

Greasemonkey: setting form values is not working in Firefox

This works flawlessly under Chrome, but in Firefox the fields don't populate until the SECOND time I hit submit on the page (after it comes back from the first time telling me invalid user/pass). What am I missing? This is my code for the Greasemonkey script: document.getElementById('loginBtn').addEventListener('click', function (even...

how to write a chrome suggestion service

Hey guys, When I type something in the address, the google suggestion service is offering an autocomplete. I would like to write my own autocomplete... I tend to use yubnub and I need my own commands with autocomplete. How can I do that? Please advise, Thanks, -hbt ...

What is the maximum size of local storage available for Firefox add-ons and/or Chrome extensions?

Designing some extensions that will continuously update a dataset that is used to render additional information on webpages. ...