Hi Andy

Thanks for your answer. The code is inside document ready function already
like this:

jqcc(document).ready(function () {
        var client = new APE.Client;
        client.load({
            'domain': APE.Config.domain,
            'server': APE.Config.server,
             'complete': function(ape){
                apeServer = ape;
                ape.start({'name': String((new
Date()).getTime()).replace(/\D/gi,'')});
            },
            'scripts': APE.Config.scripts
        });

        client.addEvent('ready', function(args) {
            cometready();
        });

        client.onError('004', function(args) {
            client.core.clearSession();
            // client.core.initialize(client.core.options);
        });

});

Thanks,
Jake


2011/12/23 AndyW <wysocki...@gmail.com>

> If you are also using jQuery, you can move your code inside of a $
> (document).ready( function () { ... start APE here ... ]);
>
> that way you know you have the page loaded.
>
> On Dec 23, 5:43 am, Kuba Zalewski <kuba.in...@gmail.com> wrote:
> > Hi all,
> >
> > I have the following problem. When running scripts with ape
> > asynchronously as described here:
> http://www.tutkiun.com/2010/07/load-javascript-after-pageload.html
> > the following code doesn't seem to work in IE7 and IE8:
> >
> > client.addEvent('ready', function(args) {
> > cometready();
> >
> > });
> >
> > Full code is the following:
> >
> > var client = new APE.Client;
> > client.load({
> > 'domain': APE.Config.domain,
> > 'server': APE.Config.server,
> > 'complete': function(ape){
> > apeServer = ape;
> > ape.start({'name': String((new Date()).getTime()).replace(/\D/
> > gi,'')});},
> >
> > 'scripts': APE.Config.scripts
> >
> > });
> >
> > client.addEvent('ready', function(args) {
> > cometready();
> >
> > });
> >
> > Thanks for any help.
> > Kuba
>
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to ape-project@googlegroups.com
> To unsubscribe from this group, send email to
> ape-project+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/
>

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-project@googlegroups.com
To unsubscribe from this group, send email to
ape-project+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to