View Single Post
Old 02-23-2013, 02:29 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
This line
Code:
document.getElementById('searchResults').innerHTML = http.responseText;
Found near the end of the liveSearch() function tells you where to put the http.responseText( what is echoed back from the php).

You need to make a div where you want the text to go, place it's id where you see searchResults. Maybe change
Code:
document.getElementById('searchResults').innerHTML='<li>Loading...</li>';
to just
Code:
document.getElementById('searchResults').innerHTML='Loading...';
Then go to the php and change this line
PHP Code:
$output .= '<li><img src='.$region .'> <a href="'$editlink .'">' $displayName '</a></li>'
To:
PHP Code:
$output .= '<img src='.$region .'> <a href="'$editlink .'">' $displayName '</a>'
sunfighter is offline   Reply With Quote