Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5530

fort123 on "instant ajax search not sending post variable"

$
0
0

On other websites this code is working, but wordpress is messing it up,

The idea is to give constant posts to search.php but everything arives blank/empty

What must be changed to get this to work in wordpress

<form id="searchform" method="post" onsubmit="return false;">
<input type="textbox" id="searchbox" onkeyup="sendRequest()" name="name" autocomplete="off" />
</form>
<div id="show_results"></div>
<script type="text/javascript" src="prototype.js"></script>
<script>
function sendRequest() {
new Ajax.Updater('show_results', 'search.php', {
method: 'post', parameters: $('searchform').serialize()
});
}
</script>

Viewing all articles
Browse latest Browse all 5530

Trending Articles