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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] 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/
