google-chrome

JS: document.getElementById(var).style.display - Object needed error in IE8 only

I'm iterating through an array of strings (ids) and passing each element of the array to a function which either hides that element by id or shows it. for(var tag = 0; tag < idtagArray.length; tag++){UpdateImage( idtagArray[tag], xmlhttp.responseText);} And the UpdateImage function: function UpdateImage( usediv, data ) { if( data...

Safari and Chrome adding form values to URL

Long story short: on Chrome and Safari only, values from a login form are sometimes pasted into the user's URL, even though the actual login is POSTed via AJAX. http://my-site.example/?name=user&amp;pw=xxx&amp;challenge=b1be8ad7aac242... It's been reported repeatedly and I've seen it happen myself, but have been unable to reproduce it...

Replacing page functions via userscript in Chrome?

I've created a Greasemonkey script which replaces a page function: (function() { var oldFunc = func; func = function() { oldFunc(); // other stuff }; )(); I had always intended this script to work in both Gresemonkey and Chrome and had read that Chrome doesn't support unsafeWindow, so have been injecting th...

right click event (onclick) in chrome, opera and IE (javascript)

in Firefox I used the document.onclick event and then checked if it was a right click, and If i right clicked everything went as expected. But in Chrome, Opera and IE8, if I right click the document.onclick doesn't fire. I want to have a custom context menu for img elements. How do I go about this? ...

Download plugins by javascript on Chrome, Safari

Dear all, I have implemented the plugin by NPAPI for Firefox, Chrome, Safari, but there is a issue for me is how to download the plugin by JavaScript on Chrome, Safari? I know the .xpi is a extension for Firefox, and I can write the script for downloading the xpi from server and Firefox will equip a xpi to Firefox extension folder. ...

JS: xmlhttp.status==0 in FF only.

Been stuck on this for the last hour. It was working fine a while ago and I can't tell what's causing it to abort... It works fine in IE and Chrome. Here's my code: http://pastebin.com/Su1y2TTZ Does not get past line 10 in FF, and shows no errors. The getvalue.js file starts on line 125. Need some urgent help... Any ideas? ...

Standalone version of Chrome (for development)

I use the stable version of Google Chrome as my default browser on my system. I now need to work on a project requiring the development version of Chrome, yet I do not wish to replace my system install of Chrome. Does there exist a standalone package of Chome which can be unpacked into a folder and executed entirely from there? Ie, it...

Cannot launch process from Process.Start

Hi I want to launch Google Chrome from Process.Start method. It works on Windows XP Process.Start("chrome"). But it is not working on Windows 7. One thing I noticed that I cannot run chrome from Start>Run. May be it is not registered. I tried to uninstall and install again, but did not work. I also added full path of Chrome.exe in Path ...

Access Chrome History through JDBC

Hi all, I'm trying to connect to the chrome history database (sqlite) via a java application and run some queries in read only mode. I'm using sqlite.jar but when I connect, I get the following error: org.tmatesoft.sqljet.core.SqlJetException: BUSY: error code is BUSY I know some applications can access the file without copying it first ...

jquery Uncaught SyntaxError: Unexpected token :

my post looks like this: $.post('/ajaxvalidate/1', {"nid": nid}, function(data) { I get the Uncaught SyntaxError: Unexpected token : error in google chrome. I understand that I need to set a content type or something, from this question: http://stackoverflow.com/questions/3143698/uncaught-syntaxerror-unexpected-token I don't underst...

Hide/Unhide Div JavaScript functions not working in IE, Safari, and Chrome

I am trying to cause a div (which contains a table) to hide based on a users selection from a dropdown. It works fine in FireFox and Opera, but IE, Safari, and Chrome do not work. Any suggestions? <style> .hidden { display: none; } .unhidden { display: block; } </style> <script type="text/javascript"> function hideDiv(divID)...

jQueryUI Date Picker showing on form submit in Google Chrome

Hi, I am using the jQueryUI Date Picker on one of my forms and if you select the field that I have attached the datepicker to, then select a date, then click "Submit" it should submit the form - which it does in IE but not in Chrome. In Chrome, it re-opens the date picker and I have no idea why. I've put the following on pastebin to s...

Jquery-Ui Dialog / Draggable bug with chrome

Hi I made a dialog with jquery-ui, it's draggable. Inside the title bar i created a simple input with a counter. surrended by 2 arrows (to navigate between records). Everytime I click on the title bar, it begins to drag but if I release the mouse button while in the input, it's like it does'nt consider i released the button and it keeps ...

preventDefault not working in Google Chrome 5

I want to stop a form submit button from reloading a page. This works in Firefox 3.6, Safari 5, and Opera. But Chrome 5 does not prevent the link. Here is the form. <form class="container_7" id="find-store-all" action=" "> <label for="customer-loc" class="grid_3">Find a Store Near You:</label> <input name="customer-loc" id="customer-...

Google chrome : text file auto wrap

Hi All, Google chrome seems to auto wrap the contents of a text file whn i open it. I am opening a link from my chrome extension whose response is a text file. When I open the same link in firefox, it opens with all the spacing and tab-space preserved. But that is not the case when U open it in chrome. It just auto wraps all its co...

How to tell chrome language of your web site (as a hint to the translate bar)

Hi All, I have a web app that is in queens engrish but the chrome translate bar pops up and tells me that its in Estonian. I have tried lang and xml:lang but the google translation bar seems to ignore these. Note: The web application is totally Ajax and the content that causes the bar to pop up is dynamic content that can appear long ...

Problem with JSON

var obj = { '51' : { 'name':'name1'}, '66' : { 'name':'name2'}, '58' : { 'name':'name3'} }; $(function() { s = ''; $.each(obj, function(k, v) { s += ' '+k; }); alert(s); }); In IE and Firefox it's 51 66 58, but in Opera and Chrome it's 51 58 66 Why Jquery.each() sort by key in opera, chrome? What can i...

Why Firefox wont transfer %20 to space (' ')?

I am sending to the browser a request to save a file with the file name. The file name might include spaces, so i replace all spaces with %20. Internet Explorer and Chrome transfers %20 back to spaces, but Firefox does not to that. why? Is there a way make all browsers show the space? This is my code: String codedName = new String(URLE...

Cross Browser Live Testing?

Are there any tools to allow for LIVE previews of pages in cross browser systems? I have a problem with a few links in IE and I need to test to see if I've fixed them, however pretty much every cross browser service offers screenshots of the page as opposed to live rendering? I cannot test links on a screenshot. NB I work with a Mac ...

Chrome: flash video players doesn't work properly...!!

hi, I can watch the videos but i can't control the volume,seek,play or pause just watch n leave....and that happens only on facebook ...