Hello, i have this function function updatePeriodical(TARGETID,m,c,frequency,decay) { objMeineUngeleseneEintraege = new Ajax.PeriodicalUpdater(TARGETID,"index.php?m="+m+"&c="+c, { method:''post'', frequency: 1000, decay: "+decay+", onSuccess: function(transport) { var response = transport.responseText || "no response text"; //alert("Success! \n\n" + response); } , onFailure: function(){ alert(''Die Verbindung zum Server ist unterbrochen!'') } }); } but the decacy is always empty. How can i give this value to the ajax function? ____________ Virus checked by G DATA AntiVirusKit Version: AVK 17.7684 from 13.09.2007 Virus news: www.antiviruslab.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Doesn''t it work if you leave out the +"? decay: decay, On Sep 13, 12:29 pm, "reta...-Mmb7MZpHnFY@public.gmane.org" <reta...-Mmb7MZpHnFY@public.gmane.org> wrote:> Hello, > > i have this function > > function updatePeriodical(TARGETID,m,c,frequency,decay) { > > objMeineUngeleseneEintraege = new > Ajax.PeriodicalUpdater(TARGETID,"index.php?m="+m+"&c="+c, > { > method:''post'', > frequency: 1000, > decay: "+decay+", > onSuccess: function(transport) > { > var response = transport.responseText || "no response text"; > //alert("Success! \n\n" + response); > } , > onFailure: function(){ alert(''Die Verbindung zum Server ist > unterbrochen!'') } > }); > } > > but the decacy is always empty. How can i give this value to the ajax > function? > > ____________ > Virus checked by G DATA AntiVirusKit > Version: AVK 17.7684 from 13.09.2007 > Virus news:www.antiviruslab.com--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
The decay option expects a number, not an eval-able string. http://prototypejs.org/api/ajax/periodicalUpdater TAG On Sep 13, 2007, at 5:17 AM, Mickster wrote:> > Doesn''t it work if you leave out the +"? > decay: decay, > > On Sep 13, 12:29 pm, "reta...-Mmb7MZpHnFY@public.gmane.org" <reta...-Mmb7MZpHnFY@public.gmane.org> wrote: >> Hello, >> >> i have this function >> >> function updatePeriodical(TARGETID,m,c,frequency,decay) { >> >> objMeineUngeleseneEintraege = new >> Ajax.PeriodicalUpdater(TARGETID,"index.php?m="+m+"&c="+c, >> { >> method:''post'', >> frequency: 1000, >> decay: "+decay+", >> onSuccess: function(transport) >> { >> var response = transport.responseText || >> "no response text"; >> //alert("Success! \n\n" + response); >> } , >> onFailure: function(){ alert(''Die Verbindung zum >> Server ist >> unterbrochen!'') } >> }); >> } >> >> but the decacy is always empty. How can i give this value to the >> ajax >> function? >> >> ____________ >> Virus checked by G DATA AntiVirusKit >> Version: AVK 17.7684 from 13.09.2007 >> Virus news:www.antiviruslab.com > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---