Jump to content

help


westminster86

Recommended Posts

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?

   

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.