I dont have the undefined callback error, but same issue let me in and gives me javascript error, its doing same problem as Erick suggestions, the return 0 is not stopping the code from running.. and that why let me go all the way...
beside using your return like you suggested give me this in I log the response function (event) { var args = options.arguments; args = args != undefined ? $splat(args) : Array.slice(arguments, options.event ? 1 : 0); if (options.event) { args = [event || window.event].extend(args); } var returns = function () {return self.apply(options.bind || null, args);}; if (options.delay) { return setTimeout(returns, options.delay); } if (options.periodical) { return setInterval(returns, options.periodical); } if (options.attempt) { return $try(returns); } return returns(); } ;( On Jan 23, 12:52 pm, Pablo Tejada <ptejad...@gmail.com> wrote: > One more try :) > > Try it with an empty callback function like > > return request.getContent(function(){}) > On Jan 23, 2012 3:49 PM, "utan" <vcomputado...@gmail.com> wrote: > > > > > > > > > Pablo, > > > your last suggestion was to return request.getContent(); > > after your code fix this is what I've got Http.js:185:TypeError: > > callback is unde fined > > ;( > > > On Jan 23, 12:10 pm, Pablo Tejada <ptejad...@gmail.com> wrote: > > > So edited a few lines and attach the file. If it does what I think it > > will > > > do my last solution should work. What i think it will do now is that > > > besides the getContent method passing the result to the given callback it > > > will also return it so you could have the result value outside the > > callback > > > scope. > > > > Remember to backup your existing Http.js file. > > > > If still doesn't work I'll keep working on this to make it work as is > > > something I could use In a future project I have in mind. > > > > Http.js > > > 6KViewDownload > > > -- > > 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/