google-chrome

JQuery/Greasemonkey in Google Chrome. Why won't this work? No Alert shows up.

I'm unable to get this script to work as an extension in google chrome. No alert shows up. normal javascript alerts work. // ==UserScript== // @name voip // @namespace 1 // @description voip // @include * // @require http://jquery.com/src/jquery-latest.js // ==/UserScript== $(document).ready(function() {...

HTML5 elements working in Chrome but not Safari or Firefox?

Hi, I'm using the HTML5 elements and in a project i'm working on (see it here) and the css seems to be working fine in Chrome. However, it doesn't appear to be working in Safari or Firefox (I haven't tested IE, but I'd imagine it's the same), and the page layout is all over the place. Any ideas why this may be? I know Firefox and S...

Google Chrome bug with tr background

I'm trying to set a background-image to a table row, but background is applied to all its td children. In IE7 there is the same bug but it is solve with tr { position: relative; } Any hint about it ? Thank you ...

Drag and drop between frames - chrome

I have a website http://fewbs.com. I have a shortcuts (bookmarks) section onto the left. Here I provide menus and submenus and drag and drop of shortcuts and menus. Though I have been able to do it in IE and FF but its not working for opera and chrome. In IE it works by default, in FF by using -moz-user-focus: ignore; -moz-user-select:...

Accessing and modifying tabs opened using window.open in Google Chrome

I used to be able to do this to create an exported HTML page containing some data. But the code is not working with the latest version of Google Chrome (It works all right with Chrome 5.0.307.11 beta and all other major browsers). function createExport(text) { var target = window.open(); target.title = 'Memonaut - Exported ...

when updating location.hash in Chrome the jQuery animation "freezes" for a second

I'm trying to create a sort of "virtual gallery". I'm using Coda Slider 2.0 & jQuery v1.4.2 It behaves perfectly in IE, FF & Safari, but Chrome seems to reload/hang for a second when setting location.hash. This causes the jQuery animation to freeze for a second :S Example: http://hardyernst.dk/gallery.html try clicking on the navigatio...

Crossdomain settings in Google Chrome

Hi Folks, I'm wondering, in IE & Firefox you're able to setup the browser, to allow cross-domain calls. I can't find any option in chrome for that (actually, there are in general not too much options at all...) are there any about:config like things? Kind Regards --Andy ...

Change Browser settings by script

Hi Folks, Afaik, you can change/manipulate browser settings in Mozilla/Netscape browsers. For Instance "netscape.security.PrivilegeManager.enablePrivilege('someprivilege');" Of course the user gets informed about that and needs to verify the action. My question is, do other browser have similar functionality? IE, Safari/Chrome ? Kind...

Chrome 5 problem with scroll

$(document).keydown(function (event) { if(event.keyCode==38 || event.keyCode==40) { var row; if(event.keyCode==40) row=$(row_selected).next(); if(event.keyCode==38) row=$(row_selected).prev(); if(row.length==0) { row=$(row_selected); } row_select( row ); ...

HEAD XMLHttpRequest on Chromium

I'm trying to get the HEAD response with an XMLHttpRequest in Chromium to retrive the location URL of a compressed url, but it fails: var ajax = new XMLHttpRequest(); ajax.onreadystatechange = function() { if (ajax.readyState == 4) alert(ajax.getResponseHeader("Location")) }; ajax.open('HEAD', "http://bit.ly/4Agih5", false); ajax.send()...

Detect blocked pop-up in Chrome

Ok so I am using Chromium for Ubuntu 9.10 and cannot get this working using the normal means of detecting a pop-up blocker which are... var popup = window.open(...); var blocked; if(!popup) { blocked = true; } else { blocked = false; } Also, the accepted solution in this SO post, http://stackoverflow.com/questions/668286/detec...

How to re-render a page from a Google Chrome extension?

I'm new to writing extensions for Google Chrome. I want to make an extension that only runs on a few pages (that I'll choose) and re-renders their CSS after the page has loaded (ideally I would like something similar to what you can do with GM_addStyle in greasemonkey scripts). How can I accomplish this in a Chrome extension? ...

jQuery Script works in all browsers but Chrome

This site has a script that works in all browsers I tested but Chrome, which I think is strange because it is usually IE that acts up. What should happen is that there is a dynamic tour through the store, in Chrome only the picture is seen, it seems like none of the script triggered. The error console says Uncaught TypeError: Cannot ca...

about sending messages among bg.html, popup.html and contentscript.js

Hi!:) In my extension, when a button named "mybutton1" in the popup.html is clicked, it sends a message "getvar1" to the contentscript.js, then the contentscript.js sends a message "i want var1" to the background.html to get an object named "var1".If the button named "mybutton2" is clicked, the contentscript.js gets the "var2" objec...

XMLHttpRequst return null on Chrome

I have the following code that works fine in IE: <HTML> <BODY> <script language="JavaScript"> text=""; req = new XMLHttpRequest(); if (req) { req.onreadystatechange = processStateChange; req.open("GET", "http://www.boltbait.com", true); req.send(); } function processStateChange() { // is the data ready for use? if ...

Webserver parsing chrome input from post request

I am developing a small embedded web server. I want to add parsing of post requests, but I am having a problem with input password fields from Chrome. Firefox and IE work perfectly. The HTML: <form action="start.webem" method="post"> <input value="START" type="submit" /><!--#webem start --> Password: <input type="password" name="y...

call popup.html javascript function from background page

How to call javascript function in popup.html from background page ( in chrome extensions)? ...

Chrome Extension Background Page Show Popup Page

I am making a Google Chrome extension and I would like to have my background page to cause the browser action's popup page to show after an event. Can this be done? Thanks ...

Toolbar to modify displayed html/content in IE / Firefox / Chrome.

Hi, I want to create toolbar, whose functionality would be: Whenever the toolbar is "On/Activated", all pages should be parsed by a function, and the modified html should be displayed. [Example: i) There was this skype toolbar that would recognize phone-numbers in pages and automatically add skype links ii) If you have used MacAf...

Chrome history problem

$("#table_exams tbody tr").click(function (event) { window.location.href="#" +$(this).attr("exam_ID"); window.location.href="/medilab/prototypes/exams/edit?examId=" + $(this).attr("exam_ID") +"&referer=" + referer; row_select(this); }); $(document).keypress(function (ev...