• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Script Error in IE

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the servlet code below I'm displaying the results of a select on a DB2 table where you can the click on 2 different areas in each row retrieved and run other programs using the values from that row. It works in netscape and IE but IE gives a "object expected" error for the 2nd onclick but then goes ahead and runs anyway?? Can anyone tell me what this is expecting??
<FORM name='queryForm' ACTION=program1...
<input type='button' value='?'onClick='SubmitForm2(this.form)'>
Db2 table displayed here something like
? 03855045 T010319A 20010319 11:52:32 ?
<input type='submit' value='?' onClick='SubmitForm()'>
--
The submitForm2 is a JS function that uses a different "action" to run the other program and that part works fine.
Thanks
[This message has been edited by Tom Caldwell (edited March 20, 2001).]
[This message has been edited by Tom Caldwell (edited March 20, 2001).]
 
Tom Caldwell
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nevermind I see it ...
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't hold out on us, what was the problem?
 
Tom Caldwell
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I didn't post all the code but I only have 1 Javascript funtion - SubmitForm2. So I believe the 2nd onclick is just in the way??. Even though!!! it works fine this way in both netscape and IE but if you have the "notify script error" checked in IE 5 then it gives you the warning message but then it runs anyway.
So removeing the 2nd onclick makes everybody happy.
?
 
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic