Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
passing value to same page- ajax?
Hi, I am new to ajax . I just want to pass ajax return value to same page. without going another page
i found some code like this
xmlhttp.open("POST","getuser.php?q="+str,true)
but it is pass value to getuser.php file and after that original page take the process value from getuser.php
i need to do same thing with in one page.
Thx
2 Answers
- just "JR"Lv 78 years agoFavorite Answer
Experiment with the basic lessons from http://web2coders.com/ (php scripts).
Many use AJAX.
- Anonymous4 years ago
one way: <enter identity="in1" ... /> <enter identity="in2" ... /> once you click a button/link, you call a javascript function: function foo() { var in1 = checklist.getElementById("in1").fee; var in2 = checklist.getElementById("in2").fee; window.area = "myphpfile.very own residing house page?a=" + in1 + "b=" + in2; }