Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send and receive data using Javascript

Status
Not open for further replies.

SalemLeonheart

Programmer
Jun 7, 2011
2
BR
Hello there y'all.
So,this is a basic question,i admit,but i'm starting with javascript
now and i don't know that much.
See,i have a form,and i want to send data typed into this form fields to another page,using javascript.And i wanted to know how i can receive and work with that data on another page.Showing the content typed on the field username,for example
Can anyone answer me,or recommend any material for me to read?
Thanks :)
 
Short answer: You can't. Javascript cannot by itself send and receive values like that.


Long Answer:

To submit values to another page you can either use a form and have it submit to another page where you can then manipulate those values in many ways,

Or you can use an Ajax call to send the values to a server side script to process and then retrieve results of the processing and hand them over to JS in the same page.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
Ajax calls eh?
Well,can't say i know about that either,but i'll look into it and give it a try
Thanks for the quick answer vacunita :)
Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top