The moose likes HTML, CSS and JavaScript and the fly likes html:submit.... 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
Reply locked New topic

html:submit.... problem

Priyanka Chopda
Ranch Hand

Joined: Jul 22, 2003
Posts: 112
Hi, I have very simple problem.
I have this javascript which generated today's date and on "onclick" event will display this date in textbox. But when I try this I keep on getting error at <html:submit on click="today(this.form"> object doesn't support this property??Can anybody tell me what's wrong?
Thanks in advance
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

This is a JavaScript question. I suspect it's because this is interpreted as the button, not the document. Try passing document.forms[0] instead.
Moving to the JavaScript forum.

Junilu - [How to Ask Questions] [How to Answer Questions]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
This is already here....locking it/
I agree. Here's the link:
subject: html:submit.... problem
It's not a secret anymore!