<asp:TextBox ID="txtHireDateBk" runat="server" Font-Names="Verdana" Font-Size="8pt" Height="13px" Width="166px" onclick='popUpCalendar(this,this,"mm/dd/yyyy")'></asp:TextBox>点击这个Textbox,应该弹出日期控件,此功能在IE中正常,但是在FireFox中,点击无任何反应。
请问应该如何解决啊?最后是能有在页面中处理的方法!
谢谢啦!急啊!
请问应该如何解决啊?最后是能有在页面中处理的方法!
谢谢啦!急啊!
http://www.my97.net/dp/demo/
My97DatePicker
这个不错
http://www.cnblogs.com/vagerent/archive/2007/06/18/788062.html
<script language="javascript" src="<%=ResolveUrl("~/js/Lopster.js") %>">" type="text/javascript"> </script>
<script language="javascript" src="<%=ResolveUrl("~/js/showdiv.js") %>">" type="text/javascript"> </script>
<link href="Styles/MainStyle.css" type="text/css" rel="Stylesheet" />
<link href="Styles/ViewStyle.css" type="text/css" rel="Stylesheet" />
<link href="Styles/TabControl.css" type="text/css" rel="Stylesheet" />
<script type="text/javascript">
function makeRequest() {
var guid = rnd(); //alert(guid); //记住给个随机数,不然的话有缓存
var url = "../GetSession.aspx?id=" + guid;
createXMLHttpRequest();
xmlHttp.onreadystatechange = handleRefresh;
xmlHttp.open("GET", url, true);
xmlHttp.send(null);
//禁止IE缓存
//http_request.setRequestHeader("If-Modified-Since","0");
//每60秒刷新一次页面
//setTimeout("makeRequest()", 60000);
} var xmlHttp;
function createXMLHttpRequest() {
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
}
function handleRefresh() {
if (xmlHttp.readyState == 4) {
if (xmlHttp.status == 200) {
//每60*5秒刷新一次页面
setTimeout("makeRequest()", 60000);
}
}
} rnd.today = new Date();
rnd.seed = rnd.today.getTime(); function rnd() {
rnd.seed = (rnd.seed * 9301 + 49297) % 233280;
return rnd.seed / (233280.0);
} function rand(number) {
return Math.ceil(rnd() * number);
}
</script></head>
<body leftmargin="5" topmargin="5" bottommargin="5" rightmargin="5" onload="makeRequest()">
有什么办法,可以使body中的onload="makeRequest()"和onClick='popUpCalendar(this, this, "mm/dd/yyyy")' 不冲突啊?
请指点,谢谢啦!
<body leftmargin="5" topmargin="5" bottommargin="5" rightmargin="5" onload="makeRequest()">不好意思,刚才回帖时弄错了!
http://www.my97.net/dp/demo/