On Nov 10, 10:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---