#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    19
    Rep Power
    0

    Jquery autocomplete failing


    autocomplete worked yesterday and isn't doing anything today
    i've double checked the data variable to make sure it was bringing the names in as an array and they where and I can't figure out how I broke it. any ideas?
    thanks

    Code:
    <script src="..\js\jquery-1.4.4.min.js" type="text/javascript"></script> 
    <script src="..\js\jquery-ui-1.8.7.custom.min.js" type="text/javascript"></script> 
    <script src="..\generalJava.js" type="text/javascript"></script>
    <script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.bgiframe.min.js"></script>   
    <script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.dimensions.js"></script>   
    <script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/autocomplete/jquery.autocomplete.js"></script>   
    <script>  	
    $(document).ready(function(){     
    var data = fillEmployeeList();     
    data = data.split(",");     
    var fill = $("#employeeName").autocomplete(data);     
        });  
     </script>   
    </head> 
    <body> 
    <input id="employeeName" />
    <script src="..\js\jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="..\js\jquery-ui-1.8.7.custom.min.js" type="text/javascript"></script>
    these libraries should have all jqueries UIs
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    19
    Rep Power
    0
    problem solved
    .autocomplete(data);
    became
    .autocomplete({source: data});

IMN logo majestic logo threadwatch logo seochat tools logo