• 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

Disabling all submit actions(i.e all submit buttons) on a jsp page

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Can anyone help me out with this.
I want to disable all the buttons on a jsp page after checking the value of a flag on the jsp page.

can i have small change on the jsp page for the same, cause i have to do it on many jsp pages.i am using the same pages for submit action in one case and i have to freeze the page(i.e. read only) in other case.

Thanks in advance.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not a JSP issue. As with all other client-side activites, this would need to be accomplished with client-side mechanisms.

Moved to the HTML forum.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vijendra,
You can create a JavaScript function to do this and call the function from all your other pages. If you put the JavaScript function in a shared js file, there isn't duplication.

This function would take a form as the parameter. It would then loop through the form fields array and disable each element.
 
reply
    Bookmark Topic Watch Topic
  • New Topic