Hi im trying to convert the AutoSuggest Textbox to a .NET Usercontrol, but im getting the following error
A Runtime Error has occurred. Do you wish to Debug?
Line: 107
Error: Object required
The error happens when im typing something in the Textbox and comes from my AutoSuggest.
js file
while(oNode.tagName != "BODY") {
iLeft += oNode.offsetLeft;
oNode = oNode.offsetParent;
}
In the following link is the html code that my applikation generates
http://www.gulbaek.net/tmp/AutoSuggest.zip
Hope someone can help solve this problem.
And one final question, is the someway to include the .
js files in the UserControl, my current solution is to include the following code in my MasterPage
<head runat="server">
<title></title>
<script type="text/javascript" src="UserControl/AutoSuggest.
js"></script>
<script type="text/javascript" src="UserControl/Suggestions.
js"></script>
</head>