google-chrome

Why doesn't onkeydown working properly on IE?

function checkEnter(event) { var charcode; if (event && event.which) { charcode = event.which; alert("Case 1. event.which is " + charcode); } else if (event && !event.which) { charcode = event.keyCode; alert("Case 2. event.keyCode is " + charcode); } document.getElementById("text1...

Javascript working in chrome but not in explorer

Hello, I am writing this code in html: <!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> <script language="javascript" type="text/javascript"> function setVisibility(id, visibility) { document.getElement...

Does Chrome always adds an XLS extension on a vnd.ms-excel mime type?

It seems that a simple download of a PHP generated CSV file (with a vnd.ms-excel mime type for the sake of opening it with (Open)Office readly upon the "Save as..." dialog, when present) always gets the unwanted .xls extension when the UA is Google Chrome. The file would then be named as myfile.csv.xls. Firefox behaves correctly. I wonde...

Chrome extension:Cannot call method 'getElementsByTagName' of null

Hi,i am beginner with chrome extension.There is simple problem. There is the code in my extension,but it do not work.I don't know how to figure it out. In my extension, i used a xml file to stroe some data.There is the code in my background.html,but it do not work <!DOCTYPE html> <html> <head> </head> <body> <script> function loadX...

Chrome + jQuery hide/show inline

Hello I have these things <ul class="ul_std" style="float:right"> <li class="action_buttons" ><a id="button_deleteNormal" class="button_small button_small_red" >Διαγραφή</a></li> <li class="action_buttons"><a id="button_editCancel" class="button_small" >Ακύρωση Τροποποίησης</a></li> <li cl...

Open a chrome tab from delayed javascript window.open

When I window.open("http://blarg") in chrome, I get a new tab. If I delay the open, say using a jquery $(hrm).animate({},5e3,function(){window.open(url)); it opens the url in a new window with no status bar, etc — if I give it permission to pop-up that is. I'm looking for a way to get the instant behavior, that is, I wish to open a URL...

How to get the URL of the current firefox tab

I am creating a firefox extension. I want to get the URL of the current "top" firefox tab. How can I access this information? ...

CSS: Chrome and Safari seem to 'add' border to width, while IE, Firefox & Opera don't

Hey guys, I'm trying to achieve cross-browser consistency for my website, but I have been trying all day now and its driving me nuts (0.38 am here in Europe now..). It's about this page: http://www[insert-dot-here]geld[insert-dash-here]surfen[insert-dot-here]nl/uitbetalingen.html (please note that I prefer this URL not to be made crawlab...

a simple problem about chrome extension. : )

Hi,everyone! I am a beginner with chrome extension. In my content_script.js, how can a get an array in Javascript from background.html? ...

JQuery modal dialog load not working in Chrome OS X

Hi guys, I'm trying to create a simple JQuery UI modal dialog populated with a loaded URL. I have it working on IE (it even works on IE6!!), FF, Safari AND Chrome for Windows (version 4.1.249.1042 (42199)). For some reason is just doesn't work in Chrome OS X. I'm using Chrome version 5.0.342.7 beta. The modal dialog pops up just as ...

How can I launch a system command via Javascript in Google Chrome?

I want to execute a local program on my computer via Javascript in Chrome. In Firefox, it can be done as follows (after setting 'signed.applets.codebase_principal_support' to true in about:config): function run_cmd(cmd, args) { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); var file = Components.class...

Netbeans debugger session: open in the same tab

Running PHP debug session in Netbeans always opens as a new tab in browser (I use Chrome and Firefox). How to force browser (or Netbeans) to run the session in the same browser tab, so I do not have n open tabs with the same url for debug? ...

how to export google chrome passwords?

I want to export chrome passwords in xml or text file, is there a way out ? ...

Problems with jQuery getJSON using local files in Chrome

I have a very simple test page that uses XHR requests with jQuery's $.getJSON and $.ajax methods. The same page works in some situations and not in others. Specificially, it doesn't work in Chrome on Ubuntu. I'm testing on Ubuntu 9.10 with Chrome 5.0.342.7 beta and Mac OSX 10.6.2 with Chrome 5.0.307.9 beta. It works correctly when fi...

chrome cookie size limit

Hi, I'm writing into a session cookie from my plugin in chrome. The browser seems to have a strict limit of 4kb for cookie size. It doesnt seem the case in firefox. Is there anyway i can increase the cookie size limit in chrome? Thanks ...

Is there a problem with scrollTop in Chrome?

I am setting scrollTop and scrollLeft for a div that I am working with. The code looks like this: div.scrollLeft = content.cx*scalar - parseInt(div.style.width)/2; div.scrollTop = content.cy*scalar - parseInt(div.style.height)/2; This works just fine in FF, but only scrollLeft works in chrome. As you can see, the two use almost ident...

Firefox Sprite Sheet Image Not Showing Up

I'm trying to create a chat room with emoticons. When a user types an emoticon such as :) in the chatroom, the CSS takes the proper image off the sprite sheet. But my code only seems to work in Opera and IE (odd combination). It doesn't show in Firefox or Chrome (if you manage to hone in exactly where the image should be, you can find th...

How to call parent window function in chrome browser?

HI, I've surprisingly found problems, in Chrome browser, in calling window parent javascript functions. If I have a window with a javascript function defined in it <script type="text/javascript"> function dolink() { . . . } </script> and I have an iframe inside that window that makes this call using jquery <script type="text/j...

retrieving google chrome booksmarks after uninstall

Hello, I had recently (and unfortunately) uninstalled the google chrome browser from my computer -while completely forgetting about the dozens of bookmarks I had stored on it. Is there a method/directory to retrieve these chrome bookmarks after having already uninstalled??? Please do help! would be a lifesaver! ...

Help building a website using punched cards?

My punched card looks like this: * * * * * * * * * * * * * * * * * * * * * * * * * My website looks OK on explorer, but on Chrome it's terrible. ideas? ...