Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

'Object expected' error

 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I have a small problem.
My Javascript keeps on throwing a 'Object expected' error, with line numbers etc.. I have no idea what the problem is.

My code is (it's a html page)


The error shows the 'culprit' line code is


Any ideas what the problem could be??
Thanks in advance for your thoughs
Zein
 
Zein Nunna
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have deliberatly put the '*' after the 'onClick' as JavaRanch forums wouldn't allow me to post otherwise - so ignore that

Thanks.
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're missing a closing "}" in the function. Try it with Firefox - it will give you a very descriptive error message that points accurately to the problem.
 
Zein Nunna
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf,
Thank you for your input - I shall install FireFox now, you're a knight in shinning armour.
Zain
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Install firebug extension for Firefox...even better!

http://www.getFirebug.com

Eric
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!