Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

html:submit.... problem

 
Priyanka Chopda
Ranch Hand
Posts: 112
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
-PC
 
Junilu Lacar
Bartender
Pie
Posts: 6529
21
Java Linux Mac Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is already here....locking it/
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic