charlieopp
asked on
javascript - send data to server without page reload
Hi,
I'm new to javascript and need some guidance. I have a page with a form and a text input box. I want to send or I should say "submit" the data in the text box to the server but I don't want that page to be reloaded.
Here's the challenge though: The server I'm using is an embedded server that is very limited in functionality. The only way I can send data to it is in a "get" format (i.e. "ip addr/?c=xxx"). What is some javascript code that allows me to effectively do a submit without reloading the page?
Alternatively, what would the HTML / javascript code look like to put my text box into a frame, submit the text from that frame and just reload that frame?
Thanks,
Charlie
I'm new to javascript and need some guidance. I have a page with a form and a text input box. I want to send or I should say "submit" the data in the text box to the server but I don't want that page to be reloaded.
Here's the challenge though: The server I'm using is an embedded server that is very limited in functionality. The only way I can send data to it is in a "get" format (i.e. "ip addr/?c=xxx"). What is some javascript code that allows me to effectively do a submit without reloading the page?
Alternatively, what would the HTML / javascript code look like to put my text box into a frame, submit the text from that frame and just reload that frame?
Thanks,
Charlie
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I would use jQuery. Nice, easy and simple.
You can check out an example and all the information on this page: http://api.jquery.com/jQuery.get/
You can check out an example and all the information on this page: http://api.jquery.com/jQuery.get/
http://net.tutsplus.com/tutorials/javascript-ajax/submit-a-form-without-page-refresh-using-jquery/