Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

 
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic