View Single Post
Old July 3rd, 2006, 09:37 AM
gulbaek gulbaek is offline
Registered User
Join Date: Jul 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Converting AutoSuggest textbox to .NET UserControl

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

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">
    <script type="text/javascript" src="UserControl/AutoSuggest.js"></script>
    <script type="text/javascript" src="UserControl/Suggestions.js"></script>