Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityEverything ElseGeneral Use (Moderators: scott, DanO, Marty)Multi Calendars, Feb 2004 reverts to main default cal.
Pages: [1]   Go Down
Print
Author Topic: Multi Calendars, Feb 2004 reverts to main default cal.  (Read 475 times)
0 Members and 1 Guest are viewing this topic.
Appletech
Guest
« on: December 31, 2003, 09:20:00 AM »

I ran into this while adding events.
http://www.ironfans.com/cgi-bin/schedule/calendar.cgi

I have three calendars; USA, Australia, Canada

The USA one works fine, well they all do really.  But here's what I noticed this morning.  If you're in the Australia or Canada calendar and select February 2004 or higher, it'll change to that month/year but revert back to Default (USA) calendar.

I only noticed this now cause I'm adding events in those months and when to view them, but saw it keep jumping back to the USA one.  So I couldn't say if it was something entered in an event that might of caused it or what?

I'm currently running V3.2 on Linux server using the latest IE on a winXP box to view.

Look forward to hearing any advice.

Thanks,
Shaun

Logged
appletech
Guest
« Reply #1 on: December 31, 2003, 09:51:00 AM »

Hmm.  Might be cache problem or something.  If I close all the browser windows, go back to the Canada schedule and select Feb. '04, it'll work.  But then select Jan. '04 it'll bounce back to the USA schedule in Jan. '04.

Lemme try on the mac and see if does the same.

Logged
appletech
Guest
« Reply #2 on: December 31, 2003, 10:02:00 AM »

Yup, same thing on the mac.  10.3 using Safari.
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: December 31, 2003, 12:22:00 PM »

It doesn't look like your form is passing the calendar key variable. If you can't find out why you could add a hidden form field to your form with the information.

BTW. If you change the form method attribute to "GET" from "POST", you can see exactly what data is being sent to the calendar to help with troubleshooting.

Dan O.

------------------

Logged
appletech
Guest
« Reply #4 on: December 31, 2003, 01:18:00 PM »

I switch POST to GET and I see how the URL is changing, and not including the 2nd or 3rd Calendar name in the string.  Here's the URL when I select Feb 04, it works:
http://www.ironfans.com/cgi-bin/schedule/calendar.cgi?QUERY_STRING=calendar%3Dcanada&month=2&year=2004&calendar_view=Month&calendar_style=Grid&calendar_command=

Then I switch to Jan '04, and it bounces back to the default:
http://www.ironfans.com/cgi-bin/schedule/calendar.cgi?QUERY_STRING=calendar_view%3DMonth%26calendar_command%3D%26year%3D2004%26month%3D2%26calendar_style%3DGrid&month=1&year=2004&c  alendar_view=Month&calendar_style=Grid&calendar_command=

This one doesn't even mention Canada in it, probably why it's bouncing to the default one.  The first date change always works when you go the other calendars straight (using the flag links), but afterwards always goes like above, back to the default.

What type of hidden form line can I enter to make it pass the calendar name all the time? So when you change the date it maintains the current calendar?

Thanks for the help, btw.

Shaun

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #5 on: December 31, 2003, 07:05:00 PM »

Something (but not necessarily exactly) like:

<INPUT TYPE="hidden" NAME="calendar" VALUE="<%=$in{'calendar'}%>">

Dan O.

------------------

Logged
Appletech
Guest
« Reply #6 on: January 01, 2004, 09:16:00 AM »

I love you, lol.  

That did the trick. Thanks SOOOOO much!!

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #7 on: January 01, 2004, 12:38:00 PM »

Glad to hear it solved the problem.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: