Did you try alert ( s.toColorPart() );

Not sure, but I think you needed the parentheses around the number 10  
to disambiguate how you wanted to treat it (as an object of the class  
Number).

Walter

On May 18, 2009, at 10:36 AM, Alaa wrote:

>
> it works means
> alert ((10).toColorPart() );// gives a message with text "0a"
>
> but
> var s=10;
> alert ((s).toColorPart() );// gives even no message, because it is
> wrong


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to