javascript - jquery $.post post data -


this post method :(code per tutorial )

 $.post('test.htm',{name:test_name"}, function (data) {         $('#feedback').html(data);         }); 

i want append'name' parameter on test.html .and retrieve complete data on index.html page

test.html

<body>    <div> welcome + //how append name here ?? </div> </body> 

i can on php "$_post" command .... whats alternative of on html page ..

final data display in index.htm

<body>     <input id="button" type="submit" value="go" />     <div id="feedback">    </div>  </body> 

similar posts:

how post data http server?
jquery post not returning data
jquery post data
jquery - redirect post data

$.post accepts object passed server, so

$.post('test.htm', {name: "test_name"}, function (data) {     $('#feedback').html(data); }); 

of course, in .htm page there nothing catch request, you'll need serverside language of sort.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -