calendar date-picker works fine in my IE

Discuss here how to configure hoteldruid and better use its features.

Moderator: marco

Post Reply
martin
Posts: 2
Joined: Sat Aug 19, 2006 7:31 pm
Location: UK

calendar date-picker works fine in my IE

Post by martin »

hi Marco,
I`ve tested the javascript date picker in the availability form and it works fine for me!
tested on WinXP sp2 IE version 6.0.2900.2180
also tested on IE 5.5 and 5.01 from
http://www.quirksmode.org/browsers/multipleie.html
and no problems there!
I had to play with $var_calendar_box_style options (added width: 140px; height: 140px;) to get it to look right but thats all.
btw this is on a localhost but that shouldnt matter should it?
anyone else had problems?

keep up the good work :D
Martin
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

Hello Martin,
the problem only appears when the calendar box overlaps a select drop-down menu, like in the page for inserting prices. You can have problems in the internet template if you permit to add more types.

Marco
martin
Posts: 2
Joined: Sat Aug 19, 2006 7:31 pm
Location: UK

Post by martin »

I see what you mean, after a bit of googling, I found this:
http://www.aplus.co.yu/wch/intro/

if you put this in the header,
<!--[if IE]>
<script type="text/javascript" src="WCH.js"></script>
<![endif]-->
change $var_calendar_box_style z-index to 10,
put class=\"WCHhider\" in all the <input> fields,
put WCH.Apply('cal'+ncal); in function crea_cal_mese
and WCH.Discard('cal'+ncal); in function nasc_cal
it displays the calendar correctly
even when IE7 comes out it'll be years before everyone has updated from IE6, luckily this hack is released under a creative commons license, so as long as Aleksandar Vacić is attributed he's happy!
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

Ok, I'll take a look to it the next week.

Marco
Post Reply