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 Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

disable submit button help

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
I need disable the submit button and enable this if the result is true.
i have tryed self but i cant do it this:
something like this :
var xmlMessage=xmlHttpRequest.responseXML;
As an alternative to processing an XML response, you could use xmlHttpRequest.responseText if you just are receiving �true�...
The responseXML object is an XML DOM object. Obtain the value of the & lt;valid& lt; element using getElementsByTagName(String) method.
var valid=xmlMessage.getElementsByTagName("valid")[0].firstChild.nodeValue;
If the & lt;valid& lt; element value is true, set the HTML of validationMessage div element in the Catalog Id field row to �Catalog Id is Valid�. Enable the submit button in the input form.




If the & lt;valid/& lt; element value is false, set the HTML of the validationMessage div element in Catalog ID field row to "Catalog Id is not Valid". Disable the submit button, and set the values of the other input fields.







PLEASE HELP...
I HAVE TRYED WITH BUT NOT WORK





HOW I CAN DOING THIS IN MY SCRIPT

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!