I'm trying to get a start in programming by writing a Chrome extension similar to the Smart Bookmarks Bar extension for Firefox. Java seems straightforward enough, and I can probably figure out the specifics of building an extension but I can't find out what commands I need to change the rendering of the bookmarks.
1)Does anyone know wh...
I'm going to implement an extension, which is kind of similar to GreaseMonkey. Just wondering which browser I should pick: Firefox or Chrome? Which one has better technique supports?
...
Hey there,
My JSF web application uses PrimeFaces Captcha. It works properly under Firefox and IE, but it does not show under Chrome. I don't get any errors at page generation, but if I try to post the data with the invisible Captcha, the following error message is shown:
j_idt25:j_idt32: Validation Error: Value is not valid.
There i...
Hi all,
I am trying to open a location in new window(tab) using window.open. It is not working in chrome. First I tried with window.open(url,name), this did not work, however this works in every other browser. Then I used something like this,
var w = window.open("about:blank");
w.opener = null;
w.document.location = url;
This opens th...
if i have an image element where i'm not set height and width, like this
<img id="img" src="image.jpg" />
and then when i try to get
img_height = $("#img").attr("height");
it returns 0.
how can i get the size of image in google chrome.
Thanks
Update:
height = $("#img").height(); doesn't work too...
...
Hi,
I have a web app that has one window, sized small to the left, open a number of windows to the right. There are buttons on the small window, each associated with the other open windows. The point is that when you click a button, it's associated window comes to the top of the pile of windows on the right. This works fine with using ....
I've searched now for almost half a day... but I couldn't find out why chrome6/7 seems to be the only browser in comparison to IE8/FF3.6/Opera that does not add the padding to the specified width of an table cell.
Of course this becomes crucial if you're working with table-layout:fixed,
due to the fact that all of a sudden they have to...
i am on a pc using javascript and chrome. the issue is the following
<a href="#" onClick="classClick(event,1)"This is not working in chrome, but is working perfeclty in FF. I tried "onChange" as was recommended by some results on a search, but still no luck. Any hints?
...
I work for a company that writes software which client sites embed with < script language="JavaScript" src=..... etc. etc. We depend quite a bit on document.write to write elements out to the page. One of our clients for some reason has opted to use the content-type "application/xhtml+xml", which makes document.write() unusable in chrome...
I'm writing a Chrome extension, and would like to be able to clean up given urls, so that I get their security origin. Using location.host seems to do the job, but it's not always usable - if I'd like to get the origin of an IFrame element, for instance, the call will be blocked.
Looking at WebKit's source, this seems like a far from tr...
Possible Duplicate:
How do you disable browser Autocomplete on web form field / input tag?
I have implemented my own autocomplete via jQuery but the browser covers up the first option with its own autocomplete info? Is there a way to turn off this field's autocomplete from the server side?
...
In my extension, I'm trying to determine whether a new tab was created as a popup by another tab and if so, which tab.
I thought I would be able to use window.opener from a content script to help figure this out. But it looks like window.opener doesn't work correctly in content scripts.
When I create a tab manually, it's window.opener ...
contenescript.js
var someText = 'some text to show1';
chrome.extension.sendRequest({'action' : 'openMyTab','text': someText});
background.html
function onRequest(request, sender, callback) {
if (request.action == 'openMyTab') {
alert(" Inside onRequest with " + request.text);
}
};
chrome.extension.onReque...
Hi,
I'm stuck on a very strange problem, and I can't figure out what exactly is happening...
Unfortunately, I cannot link to the page in question, as it is under internal development, but the problem is as follows:
I have page with 3 links - A, B and C.
Each of these links to dynamically generated files, and it can easily take several...
I'm trying to position several text elements using position:absolute. However, it seems that both on Firefox and on Chrome, the bounding box of the text elements is of a different size in Windows and in Linux.
I've extracted a simple test case which is available here:
http://share.shmichael.com/html/event.html
I've tried all kinds o...
I am using the eBay JavaScript Finding API. The currency id member of the findItemsAdvancedResponse object is defined as @currencyId. So I am retrieving this value as:
function _cb_findItemsAdvanced(root) {
var items = root.findItemsAdvancedResponse[0].searchResult[0].item || [];
var html = [];
if (items.length == 0) {
...
I am using Jquery to apply some top and left positioning.
When doing so, in IE it works perfectly. Unfortunately, it doesn't work in Firefox or Chrome.
In IE, when inspecting the code it shows inline styles on the div for the left and top. When looking at chrome and firefox, there are no inline styles for the divs's.
Here is some co...
Is there a way to access the "media keys" with Javascript from within a browser tab/window?
I am mainly interested in a google chrome solution.
Using the following code, there doesn't seem to be an event generated for the media keys:
<html>
<body onKeyDown="showKeyCode(event)">
<script type="text/javascript">
function sho...
We want to allow a user to download a picture via a button from our website. We've got the basic download working ok (it saves it to the disk) but we do it by opening up a new window...
window.open('mypicture', '_blank');
Unfortunately this creates a new tab in Chrome which does not go away. We don't have the most sophisticated users ...
Hi Everyone!
I am trying to change the background-image of a div by altering it's CSS via Jquery and I got it to work in FireFox but for some reason its not doing anything in chrome, I tried clearing the cache but still no luck, there's no errors in the console either, Here's my code:
$(document).ready(function() {
var bg = 1;
$(...