google-chrome

Sorting an array of objects in Chrome

I just got a report that some code I wrote is breaking on Chrome. I've tracked it down to a custom method I'm using to sort an array of objects. I am really tempted to call this a bug, but I'm not sure it is. In all other browsers when you sort an array of objects, if two objects resolve to the same value their order in the updated arra...

Issues with dynamic google maps integration

I have ran into a very strange issue with Google Maps in Chrome 5.0.375.99: if you dynamically create more than one Maps instance, the second and on have a strange bug where it does not display properly, is only shows in a fraction of the map space. Some Example Pages: one default - When you click addOne, the new object has the problem...

How to create chrome crx file programatically (preferrably in java) ?

Hi All, I want to create chrome extension crx file programatically (not using chrome.exe, because it opens new chrome window). So what are the alternatives for same ? My preference is java, but if its possible in other language then also I am okay. Thanks, Ankur Shah ...

View AJAX response content in Chrome developer tools?

Traditionally I use FireBug to debug my AJAX requests. It lets you examine both the contents of your request as well as the response that was sent back from the server. (it also notifies you in the console when these occur, which is a useful feature that Chrome seems to lack). In Chrome, I only seem to be able to view the requests, not ...

Why this strange behavior in google chrome and IE?

I am using fpdf library and generating pdfs... What happens when i click ExportToPdf button in firefox it opens the Save as dialogbox but google chrome and IE just opens the pdf file in browser, the save as doesn't seem to open it... Why this strange behavior? ...

How does this JavaScript statement calculate the date?

So I was looking at how I could display a Desktop Notification using a Google Chrome extensions when I came across these lines of code: var time = /(..)(:..)/(Date()); // The prettyprinted time. var hour = time[1] % 12 || 12; // The prettyprinted hour. var period = time[1] < 12 ? 'a.m.' : 'p.m.'; // The period...

mailto link not working in chrome extension popup

This issue drove me nuts for 2 days. I made a simple chrome extension which calls a server-side program that returns HTML that I then stuff into a div in the popup. It was all fine, except for the simple anchor link containing a "mailto:[email protected]" href. An email message composition window would not pop up. Workaround: Add target="...

CSS problem with Chrome

I am having a problem with margins / line-height in one of our websites. You can take a look here: http://c5.abatec.es/sobre-esferalia I am using a Jquery script to create a Drop Cap effect in the first letter of each sections, that adds a class to them. There are two types of dropcaps, as you can see. Google Chrome is not rendering th...

In chrome my drag and drop Java applet doesn't get the drop events, does chrome not support that on Mac?

I have an applet that accepts files via drag and drop from the OS which works in every browser but Chrome. In chrome if you drag and drop a file from the OS chrome shows you the file in the browser, if you drop a .jpg for instance. Does Chrome not support drag and drop for Java in OS X? Thanks ...

Strange issue in Safari: Cannot select text from an input field

I have a web application where users can edit their profile information. This is presented as a normal web form with input fields containing the existing values: <form action="<snipped>" method="post" accept-charset="UTF-8" id="frmEditUser"> <fieldset> <p> <label for="username">Username</label> <input type="text" name="username" id="u...

Method keys error in Google Chrome

Here is the line of code that I think is the problem and the error that google chrome gives me a.sort(function(a,b){return a-b}); has no method 'keys' In firebug on firefox there is no error. This may be a simple error but I am not at all used to chrome's error console. ...

jquery html() not working on positioned element in Chrome

I have a paragraphed named dialog I am trying to add content to via ajax. The element is positioned like so: <div id="modal" style="height:100%; width:100%; position:fixed; z-index:1; left:0; top:0; display:none;"> <div style="position:fixed; top:50%; left:0; width:100%;"> <div style="height:150px; width:300px; margin:auto;"> ...

CSS for Disabled Textbox (Prevent "graying out" in Firefox/Chrome)

Is it possible to set CSS for disabled textboxes? I don't want the automatic gray-out in Firefox/Chrome. The reason is that I'm sometimes disabling textboxes right before submitting a form so they don't get unnecessarily transmitted (and clutter the URL), and that gray-out behavior is degrading the user experience by creating flicker. ...

Add to favourites link for Google Chrome

The "add to favorites" link code that I use, works for firefox but not for Google chrome extensions. What should i use to create a link that adds to Chrome favorites/bookmarks ...

Indexeddb - can I start coding for it today?

Hi all, I have the latest version of Firefox (4 beta) and Chrome. I would like to start hacking up some ideas for what I could do with indexedDb. So far, it looks like it is not yet available in either browser. Any ideas on when it will be available? Thanks, Walter ...

Window resize event problem for Chrome

I'm trying to handle stuff on my site when the window is resized and I have ran into an issue with Chrome that I can't figure out. Here is the code, very simplified: <script language="javascript" type="text/javascript"> window.onresize = function() { alert(1); alert(2); alert(3); ...

jQuery $.post() and full URL's

Hello, I am working on a site and have 3 different branches. Typical dev->stage->production situation. All 3 run on 3 different urls: prod: http://www.domain.com stage: http://www.domain.com/stage dev: http://www.domain.com/dev So i am trying to have universal code that runs on all 3 without any modification to file p...

VB.Net Get name of chrome textbox

Hello, I am trying to fetch the name of the textbox my cursor is currently in or over in a Google chrome browser window. Is this possible? And if so, how would I go about doing it. Thanks! ...

chrome does not respect display property

Is there any particular reason why chrome does not respect "display:inline" when it's used on "<table>" and is there a known workaround? Everything works fine in firefox but for some reason chrome refuses to do the right thing when I type <table style="display:inline;"> table stuff </table> firefox alignment: chrome alignment: ...

MIME type warning in chrome for png images

Just ran my site in chrome and suprisingly it comes up with this warning for each of my .png images: Resource interpreted as image but transferred with MIME type application/octet-stream. Anyone seen this before? Regards ...