On Thursday, July 25, 2013 5:53:23 PM UTC+2, Jan Honza Odvarko wrote:
>
>
> > The problem comes from the jQuery(context.window.document).ready... 
> code. Is something wrong in the code? 
> Is your extension source available somewhere?
>
> Note that you are trying to run jQuery within chrome scope, i.e. where 
> Firefox extensions run.
> So, it could be potential problem apart from the fact that jQuery must be 
> properly included
> in your extension scope.
>

Could you please describe a bit more about this? I just execute a jQuery 
statement in my extension on the DOM currently loaded in FF. 
 

>
> Do you see any exceptions?
> You could try to enclose the jQuery call in try-catch and see what 
> exception could be there...
>
>
I see no exception. Seems the JavaScript engine completely ignores the 
jQuery(context.window.document).ready(function().... code line. 
 
Ebrahim

>
>
> On Thursday, July 25, 2013 4:29:33 PM UTC+2, Ebrahim wrote:
>>
>> Hi all,
>>
>> I have the following  simple code in my extension: 
>>
>> --------------------------------------------------
>>
>> Firebug.CommandLine.evaluate(commandString, Firebug.currentContext, null, 
>> null, function(res) {}, function failure() {});
>>
>> jQuery(context.window.document).ready(function(){
>>
>>     DO_SOMETHING();
>>
>> });
>>
>>
>> --------------------------------------------------
>>
>> the commandString is a JavaScript script that makes a change to the page; 
>> it may add new content to the page or change the existing content. I 
>> checked and it works.
>>
>> Then the DO_SOMETHING function extracts the newly added content from the 
>> page. The problem is that DO_SOMETHING is not executed. The problem 
>> comes from the jQuery(context.window.document).ready... code. Is 
>> something wrong in the code? 
>>
>> Thanks for any help,
>> Ebrahim
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/firebug.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/firebug/a5095e3d-d78c-4ade-8c93-b702c7c1029c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to