javascript - Retrieve post parameters -
newbie question.
found of tutorials in internet focused how pass parameters / post. of them pointed retrieval data , using php (jquery docs) / asp.net etc.
how retrieve ajax posted data using pure javascript?
exactly:
post:
function detailoperator(_recordid, _title) { $.mobile.changepage('#operator-view', { dataurl: '?id=' + _recordid + '&title=' + _title}); }
post changing page successfully.
how retrieve id , title in operator-view page?
post data cannot obtained client side scripts, unless server side script handing post request sends client response. in short, there no built-in way of doing this.
however, server side script can choose pass post data client via cookies or hidden variables , client side javascript can access values therein.
Comments
Post a Comment