Have you considered attaching the onload function to win *before* changing
the location? - it might be a timing-problem...

On Mon, Dec 1, 2008 at 1:14 PM, Aurimas <[EMAIL PROTECTED]> wrote:

>
> I want to login automatically to specific services each time Firefox
> starts. Yes, I know how to invoke a script on startup. But I use
> CmdUtils.getHiddenWindow() for different thing: I want to load login
> page in the background and auto submit login form when it's ready. But
> when I add load event on CmdUtils.getHiddenWindow() it never fires.
>
> On Dec 1, 4:08 am, "Blair McBride" <[EMAIL PROTECTED]> wrote:
> > By the time any commands are parsed, any chrome window has probably
> > already finished loading. Not that you should be checking for that on
> > the hidden window, anyway. I assume what you want to do is wait for
> > Firefox etc to finish loading/starting up, in which case, just use a
> > function with a prefix "startup_" like this:
> >
> > function startup_DoStuff() {
> >   // do stuff
> >
> > }
> >
> > - Blair
> >
> > On Sun, Nov 30, 2008 at 9:37 PM, Aurimas <[EMAIL PROTECTED]>
> wrote:
> >
> > > Sorry, this is what I try to do, but load event never fires:
> >
> > > var win = CmdUtils.getHiddenWindow();
> > > win.location = 'http://www.google.com';
> > > jQuery(win).load( function(){ window.alert('loaded'; } )
> >
> > > On Nov 28, 7:11 pm, Aurimas <[EMAIL PROTECTED]> wrote:
> > >> Isn't it possible to add onLoad event to CmdUtils.getHiddenWindow() ?
> > >> This doesn't work:
> > >> jQuery(CmdUtils.getHiddenWindow()).load( function(){ window.alert
> > >> (1); } )
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to