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