drawing datepicker until button click?
Say I have a datepicker called:
- <input type="text" size="10" maxlength="10" id="from" name="from" style="width:65px;" value="03112010" />
- $("#date").datepicker({dateFormat:'ddmmyy',showOn:'button'});
In IE6, I found that whenever I change input (which would trigger keyup event) while still in onfocus, something load in background. I have tried to turn off background by CSS
- table.ui-datepicker td a {background-image:none}
or use execCommand
- try{document.execCommand("BackgroundImageCache", false, true)}catch(ex){}
but the situation remain the same. So I guess upon keyup, the datepicker is doing some DOM change (e.g. generating html) that will cause reflow in IE6. Is there anything I can do to delay the drawing until the triggering button is clicked?