it''s probably the iPhone. I mean, would you *really* want your phone to be connected to the internet all the time? On 8/28/07, richieright-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <richieright-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hi, > > I met a strange problems with PeriodicalUpdater in iPhone. This timer > event will last only four or five times. > > Code: > start :function(){ > ... > var soptions = {} > soptions.postBody = "RequestBody=" + > pars.toAjaxRequest().Body; > soptions.onSuccess = this.getMeetingDetail.bind(this); > soptions.frequency = 10; > this.callStatus = new Ajax.PeriodicalUpdater("", > this.eng._uri, soptions) > }, > > getMeetingDetail : function(strResponse) > { > alert("getReturnMsg"); > } > > After call start function, I can get the "getReturnMsg" for only get > four or five times in iPhone, but it is right on ie/firefox/safari2.0 > for MAC and Safari3.0. > > What is wrong? > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
richieright-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-30 02:59 UTC
Re: using Ajax.PeriodicalUpdater in iPhone
Sure, it is a web application. By the way, I have found something about this issue. I saw a meesgae of "An JavaScript script is limited to running for five seconds on the iPhone" on http://www.tomw.net.au/technology/it/iphone.shtml. So I guess maybe it was caused by net speed, after 5s, iPhone will kill this request and lost related response which is need to active next event by updateOnComplete(). But there are still a question, will iPhone limit a asynchronous js code with 5s? On 8月30日, 上午1时28分, "Brian Williams" <brianw1...@gmail.com> wrote:> it''s probably the iPhone. > > I mean, would you *really* want your phone to be connected to the internet > all the time? > > On 8/28/07, richieri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <richieri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi, > > > I met a strange problems with PeriodicalUpdater in iPhone. This timer > > event will last only four or five times. > > > Code: > > start :function(){ > > ... > > var soptions = {} > > soptions.postBody = "RequestBody=" + > > pars.toAjaxRequest().Body; > > soptions.onSuccess = this.getMeetingDetail.bind(this); > > soptions.frequency = 10; > > this.callStatus = new Ajax.PeriodicalUpdater("", > > this.eng._uri, soptions) > > }, > > > getMeetingDetail : function(strResponse) > > { > > alert("getReturnMsg"); > > } > > > After call start function, I can get the "getReturnMsg" for only get > > four or five times in iPhone, but it is right on ie/firefox/safari2.0 > > for MAC and Safari3.0. > > > What is wrong?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---