Hello, i want to access a dv via //alert(''daysum[''+datum+'']''); $(''daysum[''+datum+'']'').innerHTML = response.toFixed(2); but nothing happens, no error and the script stops:( The alert wors fine Why this dosent run? ____________ Virus checked by G DATA AntiVirusKit Version: AVK 18.483 from 10.11.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 -~----------~----~----~----~------~----~------~--~---
without seeing anything more I can only assume that you are using an Ajax.Request... read http://www.prototypejs.org/api/ajax/request it should be pretty helpful On Nov 10, 2007 7:27 AM, retacom-Mmb7MZpHnFY@public.gmane.org <retacom-Mmb7MZpHnFY@public.gmane.org> wrote:> > Hello, > > i want to access a dv via > > //alert(''daysum[''+datum+'']''); > $(''daysum[''+datum+'']'').innerHTML = response.toFixed(2); > > but nothing happens, no error and the script stops:( The alert wors fine > > Why this dosent run? > > ____________ > Virus checked by G DATA AntiVirusKit > Version: AVK 18.483 from 10.11.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 -~----------~----~----~----~------~----~------~--~---
On Nov 10, 10:27 pm, "reta...-Mmb7MZpHnFY@public.gmane.org" <reta...-Mmb7MZpHnFY@public.gmane.org> wrote:> Hello, > > i want to access a dv via > > //alert(''daysum[''+datum+'']''); > $(''daysum[''+datum+'']'').innerHTML = response.toFixed(2);toFixed is a method of javascript''s Number.prototype. Presumably response is a string, which doesn''t have a toFixed method, so you need to convert it to a number first. Also, there are known issues with the JScript (IE) implementation of toFixed, so you might want to investigate other ways of doing what you are doing (converting the number to 2 decimal places on the server would be a good idea). If you want to use javascript, then: <URL: http://www.jibbering.com/faq/#FAQ4_6 > -- Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---