Problem with a dropdownlist
-
Hello, Dropdownlist is always on the top of the page. due to which when I try to display calendar on it's top then it's not working. I tried style:z-index on both controls but not working. thanks, Suds Some dudes gotta know how to develop a prg. and some dudes just never get it at all.
-
Hello, Dropdownlist is always on the top of the page. due to which when I try to display calendar on it's top then it's not working. I tried style:z-index on both controls but not working. thanks, Suds Some dudes gotta know how to develop a prg. and some dudes just never get it at all.
Hi, Yes it's a pain isn't it! And I'm afraid there is no cure. I had the same problem, in the end I had to put the calendar into a popup window.. e.g.
function onGetDate(id){
// calendar control button has been clicked,
// take this as dirty(ing) the form
dirtyForm();window.event.returnValue = false; // don't allow click to fall thro' to the form handler... var elDate = document.getElementById(id); if (elDate) { x = event.screenX - event.offsetX; y = event.screenY - event.offsetY; if (g\_wndCalendar) g\_wndCalendar.close(); // close any existing window... g\_wndCalendar = window.open("calendar.aspx", "Calendar", "titlebar=0,left="+x+",top="+y+",toolbar=0,location=0,status=0,width=210,height=200,resizable=1", true); }
}
Cheers, Andy
-
Hi, Yes it's a pain isn't it! And I'm afraid there is no cure. I had the same problem, in the end I had to put the calendar into a popup window.. e.g.
function onGetDate(id){
// calendar control button has been clicked,
// take this as dirty(ing) the form
dirtyForm();window.event.returnValue = false; // don't allow click to fall thro' to the form handler... var elDate = document.getElementById(id); if (elDate) { x = event.screenX - event.offsetX; y = event.screenY - event.offsetY; if (g\_wndCalendar) g\_wndCalendar.close(); // close any existing window... g\_wndCalendar = window.open("calendar.aspx", "Calendar", "titlebar=0,left="+x+",top="+y+",toolbar=0,location=0,status=0,width=210,height=200,resizable=1", true); }
}
Cheers, Andy