On Mon, May 18, 2009 at 12:35 PM, Alaa <ala...@gmail.com> wrote:

> look, it is like:
> Var s= 10;
> alert(s.toColorPart()); // it works and prints 0a
> var a = $('valuesList').value;
> alert (a); //  prints 10 as in the textbox
> alert(a.toColorPart()); // does not work

Try `window.alert(typeof a)' -, I bet you won't get `number'.

Now try window.alert((a + 0).toColorPart());

Gabriel Gilini


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 
For more options, visit this group at 

Reply via email to