Autocomplete not working - appendChild in IE

Autocomplete not working - appendChild in IE

Hi,

I developed JSP page in BEA Weblogic to test the autcomplete functionality, here's basically the code:

  1. <netui:form action="doSave" method="post"  tagId="app">
  2.       <netui:textBox tagId="Zipcode" dataSource="actionForm.Zipcode">            
  3. </netui:textBox>
  4. </netui:form>
  5. <script type="text/javascript" language="JavaScript">    
  6.       var ac = $("#Zipcode").autocomplete({
  7.             serviceUrl:"<servletAddress>",
  8.             minChars:4,
  9.             width: 200,
  10.             delimiter: ','
  11.  });
  12.       
  13. </script>

I've also tried it with simple HTML controls like "<input type="textbox">", but it still doesn't work..

Weblogic has an option that enables ajax in its pages.

I'm getting the following error:

"Object Expected", on the following line:

  1. scriptContainer.appendChild(newScripts[i]);
where,

  1. var scriptContainer = document.getElementById(containerId + "_script");
  2. var scripts = container.getElementsByTagName("script");
  3. var newScripts = new Array(scripts.length);
  4. <loads up the newScripts variable with all the pages scripts>

That code is generated by Weblogic... Anyway, regardless if it's autogenerated or not, something in my javascript autocomplete's code is "missing", because whenever it tries to append it to the rest of scripts it throws the "Object Expected" error.

Thanks in advance!