Functions added to selectors using .live() are not working consistently in Google chrome extensions. For example, I have a simple function that looks like this:
$("#sampleSelectID").live('click', function() {
alert("CLICKED!");
});
and the alert does not fire. If I debug the extension there are no javaScript errors. Strangely, ...
I've started writing a greasemonkey script, and am facing problems performing localstorage in the Greasemonkey script. The only way I could figure out localstorage in GM is by creating another instance of Javascript in the newElement.innerHTML DOM property, but there the rest of my variables are inaccessible.
Any ideas ? Here's the Grea...
Hi,
When I add text to a div in a chrome extension popup, the text appears for a fraction of a second and then immediately dissappears again.
This is a small example:
<html>
<head>
<script>
function show() {
var newName = document.showMe.textToShow.value;
var txt = document.createTextNode(newName);
...
I'm aware of chrome.extension.getURL(), which resolves a file to a url. Is there any way to get the current working directory (i.e. a pwd) in a similar fashion?
...