I'm adding sqlite support to a my Google Chrome extension, to store historical data.
When creating the database, it is required to set the maximum size (I used 5MB, as suggested in many examples)
I'd like to know how much memory I'm really using (for example after adding 1000 records), to have an idea of when the 5MB limit will be reac...
Hello all.
I have this small function that allows me to fade background image on hover on my menu .
$('.menu li').append('<span class="hover" />').each(function() {
var $span = $('> span.hover', this).css('opacity', 0);
$(this).hover(function() {
$span.stop().fadeTo(300, 1);
}, function() {
$span.stop().fade...
If I disable javascript on a site using Chrome's javascript settings, does this prevent extensions from running content scripts on it?
...
I'm trying to implement key-press functionality which will remove a div when the user hits Esc. This works for Firefox & IE with the following code:
$("body").keypress(function(e) {
alert("any key pressed");
if (e.keyCode == 27) {
alert("escape pressed");
}
});
If I hit any key, the first alert is displayed, and if...
Hey,
I'm currently developing a chrome extension, I need to access some http-auth protected resources (webdav). The HTTP auth is using (in the best case) a digest authentication.
I'm able to do the auth directly in the ajax request using the https://login:[email protected]/path/to/ressource form.
The issue is : if the login/password...
I have a contenteditable div which needs to be focussed at pageload (place cursor at the first line).
document.getElementById("editor").focus() works well in Firefox and IE, but in Chrome/Safari it just selects the entire content!
Is there a way to make this work properly?
Thanks in advance,
Shesh
...
I have a Chrome extension that relies heavily on a server back end to function. In a few weeks I'm going to need to do some changes on the server for about an hour. Is there any public API that can be used to get the time from a server (probably someone who's made one on appspot or something), all I need is to have everyone getting the s...
In my web app, I use Ctrl + Arrow keys to navigate from cell to cell in a table.
All cells contain a visible <span>, and a hidden <input> element -- their values are kept in sync.
When a cell is activated, the <span> is hidden, while the input is shown.
Everything works just fine in Firefox, IE, Opera, etc. Yet, when I load up Chrome,...
There was no problem some months ago but suddenly "Paste" stop working in CodeMirror in Google Chrome. Both "Ctrl+V", "Shift+Insert" and right-click -> "Paste" do nothing.
It's not a bug in my code because even at demo page at
http://codemirror.net/jstest.html
it doesn't work.
...
Hello, everybody!
I am developing GWT application and I use
com.google.gwt.user.client.Window.open(pageUrl, "_blank", "");
to open new page. And it opens in a new tab when called, for example, directly after button click.
But I decided to do some validations on server before opening new page and placed the call to the mentioned abov...
Hi again , today i have a simple an understable problem for me . Next code:
alphavar = $('#frontcolour').css('opacity');
console.debug(alphavar+' '+parseFloat(alphavar));
It runs ok width Firefox and width Opera ( now all perfect :) ) , but chrome i dont know why it doesnt parse it ok : here the answer of the debug send for me (the se...
Hi,
I am new to the world of creating Chrome extensions. My extension will not require any type of UI. I would like the extension to run in the background and take note whenever a new tab is created and when a tab is closed. Later on I'd like the extension to do other things but I'll be happy with just receiving tab "close" and tab "...
Hi,
I am using Colorbox to load some content from an external (but local) file.
The content appears in everything except Google Chrome.
The linke with the event handler attached:
<div id="content">
<p><a id="modal" href="popup.html" target="_blank">link to popup</a></p>
</div>
This is the jQuery:
$(document).ready...
Hi all,
sIFR is used on a site developed by us for replacing some headers and links. The links are not working on Chrome, on everything else it's ok. With right-click on the sIFR link Chrome displays the right Flash-internal menu with 'Follow link' option and it leads to url we wanted. Just the normal single-click doesn't work.
Demo: h...
Hello!
I am working on a school-project with two classmates. Our task is to make a dynamic gallery for web.
So we got the whole gallery up and running perfect, except chrome is acting mighty weird about it.
We have our pictures uploaded in blob, as well as our thumbnails. We load them from the database through php.
<div id="content_righ...
Have a plugin that I'm working on and I've hit a wall in Chrome. The script works perfectly in FF, but Chrome is not correctly displaying the fadeIn and fadeOut effects. It looks like Chrome is just defaulting to show and hide. Any suggestions?
You can see it in action here: http://heartpublications.com
Here is the code:
$(documen...
Is there some means of specifying the default media type for a browser (let's say chrome), so that I can test css @media styles?
@screen
{
div { background-color:red; }
}
@handheld
{
div { background-color:lime; }
}
<div style="width:100px;height:100px"></div>
Such that I could (without touching my code) test...
In Firefox, I view my site and get no warnings about insecure mixed content.
Using FireBug, I can see that every request is https.
In Chrome, I get the https crossed out in the address bar.
I viewed source in Chrome and then ran this regex /http(?!s)/ but the only things it found were the href attributes for some external links an...
I wrote a user script for the latest Chrome browser. It seems the script can't get the changed content of the page after loaded (for example, after the page loaded, I clicked ¿sth? and an embedded window popped up).
Even if I used window.setTimeout(), I still can't the get updated content in the timer callback through document.getEleme...
This is weird.
http://elektrikhost.com
On page load, or the index page the search bar shrinks. Click about-us and it grows back. How can I fix this?
...