
Originally Posted by
oddz
Are these happening after the DOM has fully loaded?
the list of results is populated through the use of SQL commands managed by a PHP file (searchtest.php), and dynamically displayed using ajax so I guess the answer to you're question is no.
the text input is constructed like this:
Code HTML4Strict:
<input onkeyup="getName(this.value)" type="text" />
here is the code for generating the list of results:
Code JavaScript:
function getName(value) {
$.post("searchtest.php",{partialName:value},function(data) { $("#results").html(data);
})
}
in turn, searchtest.php spits out results:
PHP Code:
echo "<a class=\"cross-link\" href=\"javascript:ajaxpage('result.php?id=$ID', 'results2');\">".$name."</a><div id=\"contentarea\"></div>";
Bookmarks