![]() |
Using onkeypress to submit ajax request
I'm new to ajax and having a bit of trouble with the 'onkeypress' event.
Here's the scenario... User enters a search value into a text box, then clicks on an image to submit the request. Image code... Code:
<img src="images/btnTownSearch.jpg" alt="Submit Search" style="margin-top:4px;" onclick="runSearch()" />Code:
function runSearch(){ Also, if it helps at all then here's a link to my page. Any help would be appreciated, Thanks in advance! |
Try
Code:
<input Code:
<img onkeypress="return runSearch()" onclick="runSearch()" style="margin-top: 4px;" alt="search!" src="images/btnTownSearch.jpg"/> |
perfect thanks! and when I get a chance I'll have a good read!
|
| All times are GMT +1. The time now is 01:38 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.