View Full Version : I found a way to slove DateField problem on IE 8.0, but ...

Apr 08, 2009, 10:22 AM
 The code can slove the dateField problem on IE 8.0,but can't get position where
the window should show .<ext:scriptmanager id="ScriptManager1" runat="server">

Apr 08, 2009, 10:24 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server" /> 
    <div style="height: 89px">

    <form id="form1" runat="server">
    <div  style="position :relative">
       <ext:TextField ID="txtDate"  runat="server">
                        <Focus Handler=" var tf = #{txtDate};var ele = tf.getEl();#{Window1}.y=89;#{Window1}.x=158; #{Window1}.show(ele);" />
     <ext:Window ID="Window1" runat="server" MinWidth="200" MinHeight="225" Resizable="false" Closable="false"
        Title="DatePicker" Show&#111;nload="false" Icon="Clock" Center&#111;nload="false" >
            <ext:ContainerLayout ID="ContainerLayout1" runat="server">
               <ext:DatePicker ID="date" runat ="server" >
                <Select Handler="#{txtDate}.setValue(el.getValue().format('d-m-Y'));#{Window1}.hide();" />


Apr 08, 2009, 10:32 AM
I used  
  #{Window1}.y = #{txtDate}.y; #{Window1}.x = #{txtDate}.x but it doesn't work .