[Pro] CalendarView in windows IE

Hi, I’m having problems in IE6 and 7 and cannot select any date other than todays date in the calendarview action. The month and year selectors do not work and I can’t seem to figure it out. Also in other browsers, if I select a date and then come back to the input field to change that date, it reverts back to todays date every time??? The current date number is also highlighted on every month which seems strange.

Very frustrating and very likely my mistakes, please help


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Make sure that you have given the input field you are using a unique
name attribute. The Name field is on the third tab from the left in
the Inspector. (The title field, on the left-most tab, has nothing at
all to do with the form field itself, and that can be confusing.) This
name must be unique on the page. If that doesn’t sort things, please
write back with a URL to a failing page.

Walter

On Apr 13, 2011, at 12:45 PM, Adslock wrote:

Hi, I’m having problems in IE6 and 7 and cannot select any date
other than todays date in the calendarview action. The month and
year selectors do not work and I can’t seem to figure it out. Also
in other browsers, if I select a date and then come back to the
input field to change that date, it reverts back to todays date
every time??? The current date number is also highlighted on every
month which seems strange.

Very frustrating and very likely my mistakes, please help


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter, and thank you for the response.

http://norfolkrentalcottages.co.uk/contactus.html

I had allocated the fields with unique ID and I have noted another problem I’m having. Say I select a date in May and then go back to that date to change it, the original date I input cannot be changed unless I delete the content and reselect. Then it picks the current date number from that Month (May)

What am I doing Wrong?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi again,

OK, I have reapplied the action and the only problem I’m having now is in Internet Explorer, explained in the original thread.

thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

For starts, you may not use spaces in form field names or in any ID
ever. Spaces are bad. So that could be part of the problem. Remember,
the label that is visible on screen has little or nothing to do with
the “machine name” of the form field.

Second, I can’t see the JavaScript in your page to set up the
calendar. Did you move that somewhere? There should be a line that
looks like this – in the page:

document.observe('dom:loaded', function(evt){
	Calendar.setup({dateField: 'item1',dateFormat: '%Y-%m- 

%d’,triggerEvent: ‘onclick’});
});

Walter

On Apr 14, 2011, at 4:10 AM, Adslock wrote:

Hi Walter, and thank you for the response.

http://norfolkrentalcottages.co.uk/contactus.html

I had allocated the fields with unique ID and I have noted another
problem I’m having. Say I select a date in May and then go back to
that date to change it, the original date I input cannot be changed
unless I delete the content and reselect. Then it picks the current
date number from that Month (May)

What am I doing Wrong?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks for the advice on spacing, should of known better but has no effect on the date fields.

I haven’t moved the code.

document.observe(‘dom:loaded’, function(evt){
Calendar.setup({dateField: ‘ArrivalDate’,dateFormat: ‘%A-%d-%m-%Y’,triggerEvent: ‘onfocus’});
});
document.observe(‘dom:loaded’, function(evt){
Calendar.setup({dateField: ‘DepartureDate’,dateFormat: ‘%A-%d-%m-%Y’,triggerEvent: ‘onfocus’});
});

I can now cycle through the months and years in IE (don’t know why it was frozen in the first place) but my only problem now is selecting a date. It still picks todays date (e.g. 14th) of every month I select and can’t be changed. Todays date (14th) is also highlighted in every month so I’m assuming todays date is selected by default. CalendarView works fine in every other browser I’ve tried except IE.

By the way, thank you for the Action which will be very useful.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Could you please try removing the field validation from this form –
make a duplicate of the page and do it there so you don’t have to go
through all of this again – and see if poor dear IE can deal with it
then? I am not sure why this wouldn’t be working.

Another thing to try would be to change the field format back to the
default YYYY-MM-DD format (ISO) and see if that makes a difference. If
that works (in isolation, with all of the JavaScript validation still
in place) but removing the validation doesn’t help, then that tells me
where to start looking.

Walter

On Apr 14, 2011, at 1:34 PM, Adslock wrote:

Thanks for the advice on spacing, should of known better but has no
effect on the date fields.

I haven’t moved the code.

document.observe(‘dom:loaded’, function(evt){
Calendar.setup({dateField: ‘ArrivalDate’,dateFormat: ‘%A-%d-%m-
%Y’,triggerEvent: ‘onfocus’});
});
document.observe(‘dom:loaded’, function(evt){
Calendar.setup({dateField: ‘DepartureDate’,dateFormat: ‘%A-%d-%m-
%Y’,triggerEvent: ‘onfocus’});
});

I can now cycle through the months and years in IE (don’t know why
it was frozen in the first place) but my only problem now is
selecting a date. It still picks todays date (e.g. 14th) of every
month I select and can’t be changed. Todays date (14th) is also
highlighted in every month so I’m assuming todays date is selected
by default. CalendarView works fine in every other browser I’ve
tried except IE.

By the way, thank you for the Action which will be very useful.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You cracked it! Validation is fine, it was the (ISO) I was using. In default it works fine in IE and across all browsers. Thank you very much for your time Walter and pointing me in the right direction :slight_smile:

Regards

Adam


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Okay, now I know where to start looking at this. The system is
supposed to make a good date out of anything you can dream up, and
your non-standard formatting of the date shouldn’t have had any impact
on the result, but clearly did.

Walter

On Apr 14, 2011, at 3:17 PM, Adslock wrote:

You cracked it! Validation is fine, it was the (ISO) I was using. In
default it works fine in IE and across all browsers. Thank you very
much for your time Walter and pointing me in the right direction :slight_smile:

Regards

Adam


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Another thing that you might want to change is your Check Boxes into Radio Buttons - assuming that you dont want a customer to pay by CC and Cheque and PP at the same time.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Very valid point, I will probably change them. As you can see I’m a novice at this and the site needs a bit more tweaking here and there.

Thanks David.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options