BTW, thanks, this is working. I think my problem was creating a SCRIPT
element with a SRC attribute instead of putting the script into the
body of the tag. I guess if 3.1 changes things a whole other approach
will be needed. Perhaps Mozilla will fix some of the sandbox bugs.

-Andrew

On Fri, Jan 30, 2009 at 10:15 AM, John J Barton
<[email protected]> wrote:
>
> That has not been my experience. Adding script tags is synchronous up
> to Firefox 3.1. They are planning to change this 'sometime'.
> jjb
>
> On Jan 30, 9:04 am, Andrew Robinson <[email protected]>
> wrote:
>> But if injectSomeCode() adds a script element to the page, and you add
>> it during the DOM ready event, the script source is not necessarily
>> downloaded and parsed until the page load, so:
>>
>> injectSomeCode();
>> doSomethingOnInjectedObjects(); // will throw object not defined errors
>>
>> right?
>>
>> -Andrew
>>
>> On Fri, Jan 30, 2009 at 9:50 AM, John J Barton
>>
>> <[email protected]> wrote:
>>
>> > On Jan 30, 8:40 am, Andrew Robinson <[email protected]>
>> > wrote:
>> > ...
>> >> The injecting a script tag into the page: how do you then time code in
>> >> your extension so that it runs after the code has been injected? Do
>> >> you use firefox events to notify the extension?
>>
>> > ? I'm missing something. In the extension you have:
>> >   injectSomeCode();
>> >   doSomethingOnInjectedObjects();
>>
>> > jjb
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to