• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

disabling the html:image

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

I have a form. To submit the form I am using <html:image> tag of struts.
All the form elements are validated on the client side using a separate javascript file (check like mandatory fields etc) when we click on the submit button (which is an image).

So everything works fine so far.

Now the client has asked us to disable this button (i.e. html:image) once the user clicks on it. This also implies that we have to first finish the client side validation which is in the javascript file on click of the button (i.e. html:image) & then disable the same (i.e. html:image) .

But I dont think we can access the struts taglib in javascript to actually disable the above from the javascript file. Correct me if i am wrong.


Has any one encountered this sceanrio or if you know about a possible solution do post your thoughts


Thanks
Hari
 
And then the flying monkeys attacked. My only defense was this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic