Use AJAX to load webpage content into DIV
- by arik-so
Hello.
I have a text field. When I type something into than text field, I want to load stuff into the DIV below. That's my code equivalent:
<input type="text" onkeyup="/* I am not sure, how it's done, but I'll just write: */ document.getElementById('search_results').innerHTML = getContents('search.php?query='+this.value);" /><br/>
<div id="search_results"></div>
Hope you can help. Thanks in advance!
EDIT: I would appreciate it if the solution did not involve using jQuery - as long as it's possible.