I haven't tested it, but with one small modification it should work:
tab = Application.activeWindow.open(Utils.url(url));
tab.events.addListener("load", function() {
tab.document.frames[0].addListener("load", function() {
// do stuff
});
});
- Blair
On 9/11/2008 5:46 AM, canadaduane wrote:
> Thanks for your help on this, Blair. Do you know where I attach the
> frame's load event? Would the code look something like:
>
> tab = Application.activeWindow.open(Utils.url(url));
> tab.events.addListener("load", function() {
> tab.document.frames[0].events.addListener("load", function() {
> // do stuff
> });
> });
>
> I'll have to fiddle with things to see if that's correct. If you know
> the answer directly, that would be helpful too.
>
> Thanks again!
> Duane
>
> On Nov 7, 7:17 pm, Blair McBride<[EMAIL PROTECTED]> wrote:
>> Oh, yes, you'll need to listen for the "load" event on whichever frame
>> you wish to modify too.
>>
>> Warning: You may or may not have problems relating to cross-domain
>> scripting. Check the error console's messages.
>>
>> - Blair
>>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ubiquity-firefox" 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/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---