wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Javascript problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript problem" Watch "Javascript problem" New topic
Author

Javascript problem

Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

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?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Angel J Gama
Ranch Hand

Joined: Jun 28, 2007
Posts: 36
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

Joined: Oct 12, 2007
Posts: 115
here you haven't mention onclick attribute ......
try with using onClick.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

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

Joined: May 20, 2008
Posts: 60
Thanks for all help.. The problem is with button, I specified the property so it generated the error.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Which button property does this "getcllistring()" refer to??

You need to add e.g. 'onclick, onblur, etc' to the '<html:button'


Regards, Rene Larsen
Dropbox Invite
 
jQuery in Action, 2nd edition
 
subject: Javascript problem
 
Similar Threads
html - el tags
For a single submission on a jsp , two instances are generated in baseaction class
Problem with duplicated execution of action class
Problem with &lt;html:button .....
Usage of Struts tags