English 中文(简体)
j Querydatepicker 继续在IEC重新开放
原标题:jQuery datepicker keeps reopening in IE

j Query sdaypicker在E 8号日点击之后,甚至在白页上继续重新开放:

http://jqueryui.com/demos/datepicker/

是否有任何人知道如何解决这一问题? 我不知道白页,但我与 j1.6.2和 j1.8.15有着同样的问题。

Also, setting the minDate and maxDate options does not seem to have any effect in IE 8. The above seems to also be true with IE 7.

最佳回答
问题回答

The following resolved this issue for me (using jQuery 1.7.2 / jQueryUI 1.8.20)

var $input = $( #date );

$input.datepicker({
  /* 
   * your other settings here 
   */
  onSelect : function() { $input.blur(); },
  onClose  : function() { $input.change(); }
});

$input.on( change paste , function(evt) {
  // process new date input here
});

我与IE8和Jquery UI 1.8.16(所有选定的选择)有同样的问题。 当我使用1.8.16全文发布版本时,问题就消失了。

我们面临同样的 j食1.1.2问题。 以下几句ni子解决了我们的问题:

var input = $( <input> );

input.datepicker({
  onSelect: function() {
    this.lastShown = new Date().getTime();
  },
  beforeShow: function() {
    var time = new Date().getTime();
    return this.lastShown === undefined || time - this.lastShown > 500;
  }
});




相关问题
Image rendered with wrong colors in IE8

I have a gradient image as a PNG (no transparency) in a web-page. By taking a screenshot of Chrome showing the page and cropping the image from the page, I see the exact same colors are drawn as the ...

Determine Mobile Internet Explorer version

I need to determine the version of Mobile Internet Explorer on a Windows Mobile 6.1 device. So that I can report the same user-agent string as is being used by Mobile Internet Explorer. The user-...

CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

Internet Explorer only part loading JavaScript/CSS

I m having trouble with my local development environment where IE (6 through to 8) is only part loading JavaScript/CSS files. It throws random errors at random places in jquery.min.js every time I ...

IE doesn t run Javascript when you click back button

I ve built a shop with tons of JS running. One of the pieces of the cart, is a zip code field which is required to calculate shipping cost. This works fine going through the cart. Now clicking ...

热门标签