[Proto-Scripty] Re: toColorPart

2009-05-18 Thread Alaa

Thanks for reply,
But I also tried it and it is also not working

On May 15, 6:02 pm, Tobie Langel tobie.lan...@gmail.com wrote:
 try:
 var s = 10;
 s.toColorPart();

 On May 15, 1:39 pm, Alaa ala...@gmail.com wrote:

  Hi,

  I am trying to use toColorPart function, but

  (10).toColorPart()    it works
  s=10;
  (s).toColorPart()//  Doesnot work !!!

  Help please
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: toColorPart

2009-05-18 Thread ColinFine



On May 15, 12:39 pm, Alaa ala...@gmail.com wrote:
 Hi,

 I am trying to use toColorPart function, but

 (10).toColorPart()    it works
 s=10;
 (s).toColorPart()//  Doesnot work !!!

 Help please

What do you mean by 'works' and 'doesn't work'? What result are you
getting?

Colin

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: toColorPart

2009-05-18 Thread Alaa

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


 What do you mean by 'works' and 'doesn't work'? What result are you
 getting?

 Colin
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: toColorPart

2009-05-18 Thread Walter Lee Davis

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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: toColorPart

2009-05-18 Thread Alaa

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


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: toColorPart

2009-05-18 Thread T.J. Crowder

Hi,

Reiterating Colin's point, does not work is not useful.  HOW does it
not work?  Do you get an error?  Do you get the wrong result?  Help
people to help you.

In this case I'm guessing it doesn't work because s is a String, not a
Number.  But it's a guess.
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On May 18, 4: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
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: toColorPart

2009-05-18 Thread Gabriel Gilini
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

www.usosim.com.br
gabr...@usosim.com.br

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: toColorPart

2009-05-15 Thread Tobie Langel

try:
var s = 10;
s.toColorPart();

On May 15, 1:39 pm, Alaa ala...@gmail.com wrote:
 Hi,

 I am trying to use toColorPart function, but

 (10).toColorPart()    it works
 s=10;
 (s).toColorPart()//  Doesnot work !!!

 Help please
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---