Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing two strings ('Object expected' error)

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am going crazy trying to figure something so straightforward. I compare the value from a radio button to a value stored in a cookie. They both have the value of '69', yet the browser (IE 5.0) throws back an error, 'Object Expected'. I then tried to convert both values to integers using the parseInt() function. This did not work. I have been trying various toString() functions, but still can't seem to execute what would seem a very simle if statement If ( x == y) What am I doing wrong??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top