javascript - Simple HTML POST without any server scripting, can be done using JS -


i want pass textbox value strictly using post 1 html page another... how can done without using server side language asp.net or php

can done using javascript??

thnx

you can't read post data in way on javascript not doable.

here can find similar questions:

http://forums.devshed.com/javascript-development-115/read-post-data-in-javascript-1172.html

http://www.sitepoint.com/forums/showthread.php?454963-getting-get-or-post-variables-using-javascript

this reading can interesting: http://en.wikipedia.org/wiki/post_%28http%29

this expecially suggests why answer (wikipedia source):

get requests representation of specified resource. requests using should retrieve data , should have no other effect. (this true of other http methods.)[1] w3c has published guidance principles on distinction, saying, "web application design should informed above principles, relevant limitations."[10] see safe methods below.

post submits data processed (e.g., html form) identified resource. data included in body of request. may result in creation of new resource or updates of existing resources or both.

post data added request. when request data added url, , that's why can access through javascript (and that's why it's not parsed , have manually). instead, post send data directly http requests, not seen in way html page (which part of sent through http request).

that said, server side language receive full http request, , can' access javascript.

i'm sorry real answer


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -