View Single Post
Old 08-18-2003, 03:10 PM   PM User | #5
Graeme Hackston
Regular Coder

 
Join Date: Jun 2002
Posts: 624
Thanks: 0
Thanked 0 Times in 0 Posts
Graeme Hackston is an unknown quantity at this point
By the way Gordo, I suspect you were having problems using it because the variable d is a number. The function requires a string. When you're having problems like this the easiest way I've found to see what's going on is to use typeof.

try this
Code:
num = '22'
alert(typeof num)

num = 22
alert(typeof num)
Graeme Hackston is offline   Reply With Quote