PDA

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



allen.zhao
Apr 08, 2009, 11: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">
</ext:scriptmanager>

allen.zhao
Apr 08, 2009, 11: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">
    <title></title>
</head>
<body>
<ext:ScriptManager ID="ScriptManager1" runat="server" /> 
    <div style="height: 89px">

    <form id="form1" runat="server">
    <table>
    <tr>
    <td>
    date
    </td>
    <td>
    <div  style="position :relative">
       <ext:TextField ID="txtDate"  runat="server">
                    <Listeners>
                        <Focus Handler=" var tf = #{txtDate};var ele = tf.getEl();#{Window1}.y=89;#{Window1}.x=158; #{Window1}.show(ele);" />
                    </Listeners>
                </ext:TextField>
     <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" >
        <Body>
            <ext:ContainerLayout ID="ContainerLayout1" runat="server">
               <ext:DatePicker ID="date" runat ="server" >
               <Listeners>
                <Select Handler="#{txtDate}.setValue(el.getValue().format('d-m-Y'));#{Window1}.hide();" />
               </Listeners>
               </ext:DatePicker>
            </ext:ContainerLayout>
        </Body>
    </ext:Window>
    

    </td>
    </tr>
    </table>
    
    </form>
</body>
</html>

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