[Reprinted] The my97datepicker cannot open the site in the frame.
Source: Internet
Author: User
Most date controls have functions such as time display, weekly display, custom format, automatic error correction, Intelligent Error Correction, start date, operation button customization, and quick date selection, multiple call modes are supported. my97datepicker is more comprehensive, user-friendly, and fast.
The above is the description on the my97 official website. This date control is also the best one I have ever used. It is very user-friendly and comprehensive, the following is the most difficult problem I encountered during the use process. When I call this control in the frame, I always find that "the site cannot be opened and the operation has been terminated?" Message box, I had no choice for a long time, and finally found the following method, also available on the official website, comprehensive:
1. When using IE6, if a base target tag exists, it must be set after the date control is loaded
That is, <script language = "JavaScript" type = "text/JavaScript" src = "../my97datepicker/wdatepicker. js"> </SCRIPT>
<Base target = "_ Self"/>
2. Add defer = "Defer" to the <SCRIPT> label"
3. Put <SCRIPT> behind the page <body>
4. Put <SCRIPT> behind the page 5. This is an absolutely effective method, but will lose the feature that spans IFRAME. Change $ crossframe in wdatepicker. js to false.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.