Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
HTML Pages with CSS and JavaScript
Unable to set the value Inside the TextFiled using java script
Ravi Kiran Va
Ranch Hand
Posts: 2234
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello ,
I am trying to set the Value inside the Textfiled using Javascript , but i am unable to set the value .
There is no Javascript error , but the value is not being updated
Please suggest
if (xmlhttp.readyState == 4) { if(xmlhttp.status == 200) { document.ajaxform.Display.value=xmlhttp.responseText; } }
<form name="ajaxform"> <input type="text" id='Display' name="Display"/ > </form>
I have also tried
document.getElementById('Display').value=xmlhttp.responseText;
,
but not working , please suggest . Thanks
Save India From Corruption - Anna Hazare.
Ravi Kiran Va
Ranch Hand
Posts: 2234
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I realized the problem is somehow XmlhttpRequest.responseText is being null .
Could anybody please tell me why the XMLHttpRequest.responseText is returning null ??
Save India From Corruption - Anna Hazare.
Eric Pascarello
author
Posts: 15385
6
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Show more code...
Eric
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
getting the text filed value in the servlet page
Unable to display image in Login html form in Spring Web MCV
Display div's based upon selection of radio Buttons.
Struts 2: how to set response for ajax function call?
send SOAP Request without Response
More...