google-chrome

Randomly Losing Session Variables Only In Google Chrome & URL Rewriting

Using Google Chrome, I'm seemingly losing/corrupting session data when navigating between pages (PHP 5.0.4, Apache 2.0.54). The website works perfectly fine in IE7/8, Firefox, Safari & Opera. The issue is only with Google Chrome. I narrowed down the problem. I'm using search friendly URL's, and hiding my front controller (index.php) ...

CSS: Size of buttons in Chrome is different than Firefox

I have the following HTML code: <style type="text/css"> .submitbutton{margin-left:-2px;padding:1px} </style> ... <form> ... <input class=submitbutton type=submit value="Create Listings" /> </form> In Firefox, the input button has more padding than in Chrome. Any ideas why? UPDATE: If you're wondering why I have the negative margi...

Image not showing in Chrome

I am attempting to set the source of an image. The image shows up correctly in IE and Firefox, but it doesn't show in Chrome. The error message that shows up in the console is: "Resource interpreted as image but transferred with MIME type text/html." ColdFusion.Window.show('loading'); image = <cfoutput>#randrange(1,numImages)#</cfoutput...

3D in HTML5 vs Silverlight

I'm wondering about the 3D capabilities of HTML5 versus those of Silverlight. Someone was telling me that Internet Explorer 9 and the next version of Chrome will both feature GPU acceleration. How will this compare to say, the capabilities of Silverlight? I know Unity is a great 3D engine, but would it be possible to render reasonably c...

Is there a method I can override on a JavaScript object to control what is displayed by console.log?

I'm thinking in particular of Chrome, though Firebug would be interesting to. I've tried toString() and valueOf(), but neither of those seem to be used. Interestingly, if I take a function it'll display the function definition - but then if I add a toString() method it will show null! var a = function(){}; console.log(a); // output: f...

Is there any way to use imagegrabwindow() with Firefox or Chrome?

I'm trying to generate website thumbnails programatically in PHP. To do this, I'm using imagegrabwindow() with a COM object: $browser = new COM("InternetExplorer.Application"); $handle = $browser->HWND; $browser->Visible = true; $browser->Navigate($pre.$URL); while ($browser->Busy) { com_message_pump(4000); } $img = imagegrabwindow($h...

CSSRules is empty

I have this very simple HTML page, and I'm trying to get the CSSRules of #poulet, but when I'm accessing the documents.styleSheets[0].cssRules I get this error in Chrome v5.0.375.55: Uncaught TypeError: Cannot read property 'length' of null Here is what my code looks like: HTML FILE <!DOCTYPE html> <html lang="en"> <head> <link re...

How do I auto-reload a Chrome extension I'm developing?

I'd like for my chrome extension to reload every time I save a file in the extension folder, without having to explicitly click "reload" in chrome://extensions/. Is this possible? Edit: I'm aware I can update the interval at which Chrome reloads extensions, which is a half-way solution, but I'd rather either making my editor (emacs or t...

Can I prevent an alert() with a Google Chrome Extension

Can I create a Google chrome extension to prevent the page from doing an alert() ? ...

Why does the Chrome spacing work in one JS file and not the other?

Update: Bug Resolved. Answer points go to whoever explains why the fix works. If you highlight and copy the text in the first paragraph on this page, then paste it into a rich text editor (dreamweaver or gmail in rich text mode), you will see that some of the text is automagically linked. Basically, it works: http://seox.org/link-build...

How do I route watir through a proxy pragmatically?

I'm trying to route watir through a proxy pragmatically -- this means within the script I'd like to change my proxy dynamically before launching the browser. Here's what I've tried so far (and so far am failing): I'm running chrome and lucid lynx ubuntu. I chose TREX cause I thought watir might be making use of PROXY or something. I re...

Chrome: On pressing Enter on a Textbox of a <form> Submits page without calling onClick of submit button on that form

Hi Folks, I have a scenario in which I have 2 Submit Buttons in a form for going back and forward. Both the buttons have different JavaScript associated with it. It is working great if we press these buttons to navigate. But when in Google Chrome, when someone press enter on any of the text box within the Form it does not calls the on...

Ajax not returning values to chrome but is to FF

Hi All, I am new to Ajax and have been following a tutorial from JQuery.com. I have set up a script that is very simple, when an h2 element is clicked a php script is called that returns some xml which JQuery the uses to replace the current h2 contents. Below is the javascript content: $(document).ready(function () { $('h2').click(fu...

Chrome says Cannot read property 'nodeName' of undefined, IE6 is fine, using Google Map API

I have an XML file in the following structure. <NewDataSet> <markers> <name>name text</name> <desc>desc text</desc> <Lat>57.149328033771</Lat> <Long>-2.12561060173764</Long> <cost>9985</cost> </markers> </NewDataSet> I'm using Google Map API to parse and map these, using the following Javascript. function load() { if (...

VB.Net 2008 Chrome or Firefox control

I'm trying to figure out a way to have multiple sessions at the same website at the same time. I've been using the SHDocVw.InternetExplorer control in Visual Studio 2008 to open a web browser and log in, but at times we need to use a separate login. I haven't found a way to do this using just internet explorer (it just uses the credent...

Is it possible to interact with a local application in a Google Chrome extension?

I have begun using Google Chrome as a primary browser, but I miss my Evernote extension, which can clip a web page directly to the local Evernote application. Is it possible for me to write an extension in Chrome that can do this? ...

Google Visualization in JQuery Tabs not Displaying in Firefox 3.6.3

Hey Everyone, I seem to have a strange problem. I am working on a simple dashboard that is using JQuery tabs to organize and display Google Visualization graphs. I am using a modified PHP wrapper to generate the JavaScript for the Google Vis side of things. The Google Visualization graph renders correctly in Chrome, Safari, and Safari f...

Prepend 0 to a number in Javascript

I'm unsure how to prepend the number 0 to a number in javascript. Example input would be 1234, and this would wind up as 01234. Everything I try keeps adding the number zero, as opposed to prepending (obviously). Is there some way to escape the character, or some specific syntax for this? This is for chrome. ...

How do I run a script right after the head is loaded, but before the DOM?

Making a Google Chrome extension and need to run a script after the head is loaded, because there are scripts in the head and I need them to run. And before the DOM is loaded, because there's an inlined script in there that I need to beat. How would I do this? How do I detect when head loads? ...

How to specify your webpage's language so Google Chrome doesn't offer to translate it.

I have a page that Google Chrome insists on thinking is in French. Here's a snapshot of it: http://yootles.com/outbox/overcleverchrome.html Note that I'm including a meta http-equiv tag to tell it that it's in fact in English: <meta http-equiv="Content-language" content="en"> But it doesn't help. Is there anything else I can do to p...