google-chrome

Inconsistent x,y coordinates with <input type="image">

I've seen varying behavior between browsers when clicking an input tag with the image type. On some browsers, it returns the x,y pixel offset of the image in question. On Chrome it returns negative value for y and seemingly nonsensical x values. Is this a Chrome bug, or is there some rhyme or reason for this behavior? EDIT: This occur...

strange blank page on google chrome

Hi, I've spent a few hours to find out the cause of this blank page: [page removed for security reasons] It's hard to understand why all the source code appears ok but the page is blank... Please note that in FF/IE it's working ok... Does anybody see the problem? Solved: The problem was the js plugin which loaded the text containin...

jScrollPane 2.0 height problem in chrome

I am using a div with class scroll-pane (height 100%) within an absolute positioned div. The scroll-pane div contains some text first, followed by an image and followed by some text again. The image height is set to 200px. Problem is! If I view the scrollpane in Chrome (latest Version) I sometimes can scroll the complete content and some...

Is it possible for XHR HEAD requests to not follow redirects (301 302)

Is it possible to send an xhr HTTP HEAD request to only get header response for the first request and not automatically follow 301, 302 like redirects? I'm only interested in getting the new location of the url. Example: var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function(data) { if (xhr.readyState == 4) { if (...

testing jQuery statements in Chrome JavaScript console

I'm trying to change a checkbox value from chrome JavaScript console. I'm aware that changes are printed to object and not on screen. I'd like to execute a jQuery statement, i.e.: ('input[name=foo]').attr('checked', true); Is there any way to enter a jQuery statement, and and see changes instantly in the page? ...

What's the advantage of Google Chrome's strange setup strategy?

Possible Duplicate: What are the advantages of installing programs in AppData like Google Chrome? It will install itself somewhere in %HOMEPATH%. Why not in %PROGRAMFILES%? ...

How do I change the page in an existing Google Chrome tab from a C# application?

I have an application which needs to change the page of the current visible tab in Chrome. My application controls what is shown in the browser. Ideas I had were an extension which would communicate with my app and as a last resort - send keys. Is there anything else I need to consider and would an extension be able to achieve this? ...

Can chrome be made to perform an xsl transform on a local file?

I was looking into xslt and started testing with the examples on w3schools. However, when I save the xml and xsl in files and try opening them locally, chrome won't perform the xsl transform. It just shows a blank page. I have added the <?xml-stylesheet type="text/xsl" href="style.xsl"> tag to the xml document, and firefox renders it a...

google chrome extension :: console.log() from background page?

If I call console.log('something'); from the popup page, or any script included off that it works fine. However as the background page is not directly run off the popup page it is not included in the console. Is there a way that I can get console.log()'s in the background page to show up in the console for the popup page? is there any...

Triggering the ":active" pseudo-class on a touchscreen

I'm currently developing a JavaScript application which will be deployed on a touchscreen kiosk running Chrome in kiosk mode. I've noticed that when I use a mouse to click the buttons on the interface, the styles applied by the ":active" pseudo class is visible when the mouse is down. My problem is that the same button triggered by touc...

JavaScript clearTimeout issue on Chrome

I have a timer going on my page at an interval of 10s. It is created using setTimeout("myWork()", 10000). It works perfectly. At some point in time based on some conditions, I clear this interval and create a new one that has to tick at 1s interval. var tenSecTimer = 0; if (myCondition) { clearTimeout(tenSecTimer); tenSecTimer = se...

jQuery .slideUp() not working in Chrome

I'm trying to make an accordion like section to a page I'm working on. I'm not using jQueries native accordion plugin because I need the ability to close all the sections. My problem is Chrome doesn't seem to be responding to .slideUp() while everything seems to work perfectly in Firefox and IE. Rather than try and copy all the relative ...

jquery google chrome

Hi, I am using the newest jqueryui and have a link on my homepage that bring a dialog with a form. Now on Firefox, IE and the others no problems. Only on chrome. it just won't work. You click and it's just quiet. Here is the simple code that gets the dialog: var diagopt = { autoOpen: true, title: 'Get a Quote Sent to yo...

In Chrome browser, Modal pop up pops up when clicking a button which is disabled

I have a page which has a modal pop up which shows on clicking a link button. I have disabled the link button but on clicking the disabled link button also the modal pop up appears. It works fine in all other browsers except Chrome. How to prevent modal pop up from being shown when the link button(target control) is disabled? The code i...

How to print debug messages in Firebug Lite (Google Chrome extension)? [solved]

Does anyone know how to log to Firebug Lite Console using a simple PHP method call to print debug messages (something like the Firephp class for Firebug, in Firefox)? Thanks ...

Google Chrome Frame (GCF) problem in IE8 with cache

Maybe it has been asked somewhere, but I am trying to find my question and I am not able to find any answer. Here's my question: I am developing a web application and because of some major JavaScript issue in IE8, I need the user to run "Google Chrome Frame" (To enhance the speed of the web page). I was impressed that my page was work...

How do I detect if the browser window is active

The code im currently using is this var focus; function focuswindow() { focus = true; } function hidewindow() { focus = false; } window.onfocus = focuswindow(); window.onblur = hidewindow(); The idea is that it can be used like this if( focus ) { //do something } However its not working. Also it only needs to work on Chrome (so no ...

XSL XML banner ok in IE/Firefox not showing in Chrome

I have a following code: <script type="text/javascript"> if (window.ActiveXObject) { var xml; xml=new ActiveXObject("Microsoft.XMLDOM"); xml.async=false; xml.load("http://www.mypage.com/some.xml"); var xsl = new ActiveXObject("Microsoft.XMLDOM") xsl.async = false xsl.load("http://www.mypage.com/some.xsl") document.write(xml.transfor...

Show all object methods in a list in Chrome console?

I really love the Chrome console because it autocompletes all the object methods for me. But it only shows one at a time and I have to press TAB to step to the next one. Is there a way to show a list of all the autocompletion object methods? ...

chrome debugger what is (program) in profiler?

What is (program) in the function column of the chrome debugger? ...