context.commandLineText = "MY_SCRIPT_COMES_HERE";
Thanks Honza for your reply.I am not sure I am right, but I use the following code to set value in the editor.-----------------------------------------------------------------------context.commandLineText = "MY_SCRIPT_COMES_HERE";
-----------------------------------------------------------------------
My another question is that how can I trigger the "Run" button from my extension?
targetClickableElement.setAttribute('data-id','1'); //targetClickableElement is a radio button element
var str = "var element = jQuery('[data-id=1]',document).get(0);"+"\n";
str = str + "jQuery(element).trigger('click');";
Firebug.CommandLine.evaluate(str, Firebug.currentContext, null, null, function(res) {}, function failure() { /* won't happen */ });
It works for some Websites (e.g., http://www.dressbydesign.com/dress/design) but not for all (e.g., http://www.mydogtag.com/#).
Ebrahim
--To view this discussion on the web visit https://groups.google.com/d/msgid/firebug/62edb571-f9c5-43a8-b7f0-e2fd8a223729%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Firebug" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebug/DDCxlrXsC-c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebug+u...@googlegroups.com.
To post to this group, send email to fir...@googlegroups.com.
Visit this group at http://groups.google.com/group/firebug.