• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

onClick invalid

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic