• 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
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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

 
reply
    Bookmark Topic Watch Topic
  • New Topic