Note:
- In this demo, we created 3 small functions in plugins.js to deal with
the 3 separated arrival fields, as well as the dynamic range constraints
-
- If you opt to arrive on Jun 6, 2001, then your departure timezone
is from Jun 10, 2001 to Jul 20, 2001 except Jun 13, 2001;
- If you opt to depart on Jun 20, 2001, then your arrival timezone
is from May 2, 2001 to Jun 10, 2001.
- We also used a hidden input field to consolidate the separated date
data. This demo is a bit complex, but it can help you understand how
to take advantage of the power of PopCalendarXP.
- You may wonder why we need to separate a date into 3 fields? The answer
is to make your page working even in old outdated browsers, which we
call backward compatibility. Therefore, you may simply use some browser
detecting scripts to hide the "..." button on those ancient browsers and
let the user type in the date instead.
- If you have any questions, please refer to the tutorials first. You'll
find a lot more helpful tips there.
|