Javascript does not function properly on base page

Dec 19, 2010 at 6:20 PM

Hi

Javascript on dropdownlist functions well in the child window form, but it does not function if the form is opened as the base form.

 

 

function

searchSel(searchtextboxid,dropdownid) {

 

if (window.event && (window.event.keyCode < 65 || window.event.keycode > 120)) {

 

 

//window.event.returnValue = true; 

 

return true;

}

 

 

var input=document.getElementById(searchtextboxid).value.toLowerCase();

 

var output=document.getElementById(dropdownid).options;

 

 

for(var i=0;i<output.length;i++) {

 

if(output[i].text.indexOf(input)==0){

output[i].selected=

true;

 

break;

}

 

if(input==''){

output[0].selected=

true;

}

}

}