• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

onClick invalid

 
AnilPrakash Raju
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was not sure where to post the topic, here or in the HTML & javascript section.

It has to do HTML:submit tags.

I wanted the user to confirm whether they wanted to delete or not.

< html:submit property="submit" value="Delete" onClick&="return confirm('Are you sure you want to delete this Notice?\rIf you press OK, the Notice will be removed from the system.');" /<

Could not compile the page. got the following error
Attribute onClick invalid according to the specified TLD



Thanks

Anil
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For some reason, the "onClick" attribute is "onclick" for struts html tags. The "c" must be lower case. Also, I'm not sure if this is a typo, but you have an unwanted"&" before the equal sign.
 
AnilPrakash Raju
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Merrill

It was my mistake, i just copied and pasted it without realising about the 'C'. '&' was a typo.

Thanks

Anil
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic