• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript problem

 
Harish Maridi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

Error is: Object doesn't support this property or method.

I am trying to submit form by using javascript.


Can anybody tell me what migth be the problem.
Thanks In advance
-Mark
[ August 29, 2008: Message edited by: Bear Bibeault ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34074
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,
Can you show the html:form tag that surrounds the button? Also, if you do "view source" in your browser, you can see the source code generated from struts. Can you show the <form> tag from that?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a very old-fashioned way of addressing the form. It'd be much better to give it an id and locate it that way.
 
Angel J Gama
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try:



I don't see anything wrong in your code. If you're using firefox check the error console and provide us some feedback.
 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here you haven't mention onclick attribute ......
try with using onClick.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Naresh Talluri:
here you haven't mention onclick attribute ......
try with using onClick.
That has nothing to do with anything. They are equivalent in HTML, and the latter is an error in XHTML.
[ August 29, 2008: Message edited by: Bear Bibeault ]
 
Harish Maridi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for all help.. The problem is with button, I specified the property so it generated the error.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which button property does this "getcllistring()" refer to??

You need to add e.g. 'onclick, onblur, etc' to the '<html:button'
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic