firefox3.6

Useless setTimeout call (missing quotes around argument?)

╄→гoц情女王★ 提交于 2019-12-09 07:56:53
问题 I have this sniplet of code in jQuery $element.parent().children().last().hide().show('slide', {direction : 'left'}, 700, function () { $element.delay(2000, function() { $element.parent().children().last().hide('slide', {direction: 'left'}, 700); reload_table(question_number); //delay ends here }); }); delay is declared as: jQuery.fn.delay = function(time,func){ return this.each(function(){ setTimeout(func,time); }); }; Now I get the error: useless setTimeout call (missing quotes around

How to register my own firefox extension?

被刻印的时光 ゝ 提交于 2019-12-06 09:35:34
问题 I am trying to learn how to write firefox extensions. I download an HelloWorld example from here but I can't figure out how to register it. I found my profiles extension folder (Easy since I use the latest Firefox version) but couldn't really understand what is this "Pointer file" that I need to create (tried a shortcut but it didn't work). What is this "Pointer File"? How can I register it correctly? I am using Win 7 if matters. Thank You. 回答1: You have to create a file in the extensions

How to register my own firefox extension?

社会主义新天地 提交于 2019-12-04 12:34:31
I am trying to learn how to write firefox extensions. I download an HelloWorld example from here but I can't figure out how to register it. I found my profiles extension folder (Easy since I use the latest Firefox version) but couldn't really understand what is this "Pointer file" that I need to create (tried a shortcut but it didn't work). What is this "Pointer File"? How can I register it correctly? I am using Win 7 if matters. Thank You. You have to create a file in the extensions folder with the ID of the add-on as name (e.g. helloworld@mozilla.doslash.org ). This file should contain only

Useless setTimeout call (missing quotes around argument?)

让人想犯罪 __ 提交于 2019-12-03 10:57:35
I have this sniplet of code in jQuery $element.parent().children().last().hide().show('slide', {direction : 'left'}, 700, function () { $element.delay(2000, function() { $element.parent().children().last().hide('slide', {direction: 'left'}, 700); reload_table(question_number); //delay ends here }); }); delay is declared as: jQuery.fn.delay = function(time,func){ return this.each(function(){ setTimeout(func,time); }); }; Now I get the error: useless setTimeout call (missing quotes around argument?) FF3.x, Firefox 6+ is ok. Any ideas on that? Why could this be happening? There already exists a

Calling $().focus on a textarea in Firefox doesn't work as expected

折月煮酒 提交于 2019-12-01 14:55:29
I've reproduced the problem here: http://jsfiddle.net/Rc52x/5/ If you click on Click here! while using Chrome, the textarea gains focus and you can start typing as expected. If you click on it while using Firefox (I'm using 3.6.15 right now), the textarea does NOT gain focus and typing does nothing. What the heck? You need to prevent the default action of the link: http://jsfiddle.net/JAAulde/Rc52x/7/ Firefox is following it causing the textarea to lose focus after gaining. This works: $(document).ready(function () { $("a#focus").click(function(e) { $("#Body").focus(); return false; }); });

Calling $().focus on a textarea in Firefox doesn't work as expected

坚强是说给别人听的谎言 提交于 2019-12-01 12:36:20
问题 I've reproduced the problem here: http://jsfiddle.net/Rc52x/5/ If you click on Click here! while using Chrome, the textarea gains focus and you can start typing as expected. If you click on it while using Firefox (I'm using 3.6.15 right now), the textarea does NOT gain focus and typing does nothing. What the heck? 回答1: You need to prevent the default action of the link: http://jsfiddle.net/JAAulde/Rc52x/7/ Firefox is following it causing the textarea to lose focus after gaining. 回答2: This

Firefox won't submit a form created by JavaScript

泪湿孤枕 提交于 2019-11-30 22:26:31
问题 I need to create a form with a few inputs when an event happens. My code is below. Chrome submits fine - the alert box shows and the page changes. Firefox does not work - the alert box shows but the page stays the same. How can I get Firefox to submit the form? var idsInput = document.createElement('input'); idsInput.name = 'itemIds'; idsInput.value = ids; var quantityInput = document.createElement('input');; quantityInput.name = 'quantity'; quantityInput.value = 1; var authTokenInput =

Scriptable NPAPI plugin doesn't work with Firefox

拟墨画扇 提交于 2019-11-29 16:47:16
I'm developing FF extension and plugin that work in tandem. My Extension injects npapi plugin into the html and calls some method of the plugin after an event occures. Here is the code I use for injection: if (window.content.document.getElementById("rondyoHookMessageElement") == null) { var element = window.content.document.createElement("object"); element.type = "application/x-hook-msg"; element.id = "rondyoHookMessageElement"; element.width = 0; element.height = 0; window.content.document.body.appendChild(element); } And when I need to use a method of the plugin I do the following: var

Scriptable NPAPI plugin doesn't work with Firefox

萝らか妹 提交于 2019-11-28 11:08:13
问题 I'm developing FF extension and plugin that work in tandem. My Extension injects npapi plugin into the html and calls some method of the plugin after an event occures. Here is the code I use for injection: if (window.content.document.getElementById("rondyoHookMessageElement") == null) { var element = window.content.document.createElement("object"); element.type = "application/x-hook-msg"; element.id = "rondyoHookMessageElement"; element.width = 0; element.height = 0; window.content.document

What browsers currently support JavaScript's 'let' keyword?

折月煮酒 提交于 2019-11-26 22:17:47
I'm developing an app and don't have to ever worry about Internet Explorer and was looking into some of the features present in A+ grade browsers that aren't in Internet Explorer1. One of these features I wanted to play around with is JavaScript's let keyword I can't seem to get any of their 'let' examples to work in Firefox 3.6 ( User-Agent string: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)). I get SyntaxError: missing ; before statement when executing let foo = "bar" . So, what browsers support the let keyword? (Or am I doing