westminster86 Posted March 13, 2008 Share Posted March 13, 2008 Im using Ajax to fetch a list of manufacturer names from a server. Im fetching the text from a database. At the moment, the user clicks the button, and the text is displayed in between the tags, <div id="targetDiv"> </div>. My question is how would i display the results in a text box without page refresh? Quote Link to comment Share on other sites More sharing options...
XoSilenceoX Posted March 14, 2008 Share Posted March 14, 2008 would need to actually see your ajax script. however, it would be something like this. within your ajax script http.onreadystatechange=function() {if(http.readyState == 4) { document.FORMNAME.FORMFIELD.value = http.responseText; } hope that helps just change the capital words to your settings. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.