Click here to Skip to main content
14,882,075 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
dear all,
in my (.aspx) page i have a JQueryUI autocomplete control, and a DropDownList under it.

using IE6 :
when i type in the autocomplete textbox, the suggestions list opens, but it gets rendered behind the DDL.

i tried to use bgiframe plugin to solve the issue, but it's giving an error.

i have included bgiframe.js version (3.0.1)in my master page, :

JavaScript
<script type="text/javascript" src="scripts/jquery.bgiframe.js"></script>


my Jquery version is 1.8

in a seperate .js file i have a function that creates autocomplete control:
JavaScript
function CreateAutoComplete(labelTextBox, idTextBox) {

    $("#" + labelTextBox).autocomplete({ source: arr,
        focus: function (event, ui) {
            $("#" + labelTextBox).val(ui.item.label);
            $("#" + idTextBox).val(ui.item.value);
            return false;
        },

        change: function (event, ui) {
            if (ui.item == null) {
                $("#" + labelTextBox).val("");
                $("#" + idTextBox).val("");
            }
        },

        select: function (event, ui) {
            $("#" + labelTextBox).val(ui.item.label);
            $("#" + idTextBox).val(ui.item.value);
            return false;
        } //,

    
    });

} // function


in the (aspx) page i have:

HTML
 <input id="employee" name='input' type="text" style="width: 98%; " dir="rtl" 
                lang="ar" class="text-field" />
<input id="empID" type = 'hidden'/>



in $(document).ready i have :

JavaScript
CreateAutoComplete("employee", "empID");
$("#employee").bgiframe();


when i browse the page i get an error:
htmlfile: unexpected call to method or property access

any ideas? thanks in advance
Posted
Updated 27-Nov-14 1:26am
v3
Comments
virang_21 27-Nov-14 16:40pm
   
Make sure you have included JQuery first before you include bgiframe. Your script tag should be like Jquery.js , bgiframe.js, Jquery-UI.js
nina4ever 30-Nov-14 3:55am
   
i did that. no success :( .. still the list appears behind the ddl

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900