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
Pages: [1]   Go Down
Print
Author Topic: Two SSI Calendar problem  (Read 282 times)
0 Members and 1 Guest are viewing this topic.
Shaun
Guest
« on: October 07, 2004, 02:03:00 PM »

I went to add a second mini-calendar on my homepage this morning for another calendar and had a problem with both calendars pulling event links for the newly added ssi calendar, instead of separetly for each specific one.

The two calendars are:
http://www.ironfans.net/cgi-bin/schedule/calendar.cgi

and
http://www.ironfans.net/cgi-bin/schedule/calendar.cgi?calendar=canada

Currently, on the homepage at http://www.ironfans.net  , I have:

<!--#include virtual="/cgi-bin/schedule/calendar.cgi?template=ssi.html"-->

and it works great for the USA calendar (the default).  Events are shown when clicked.

so I tried adding this then:

<!--#include virtual="/cgi-bin/schedule/calendar.cgi?template=ssi.html&calendar=canada"-->

to add a mini-calendar for the Canada calendar. I though it worked. It shows the calendar (test event on 10/1), but when you click on the top USA calendar, you get a Canada Calendar window, but an empty event.

You can see an example here and it'll make more sense.
http://www.ironfans.net/index-test.shtml

I even tried duplicating the ssi.html to ssica.html but the same problem occured.  Is it possible to get two ssi calls on the same page from the calendar script?

thanks,
shaun


Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #1 on: October 07, 2004, 08:07:00 PM »

It's something to do with the JavaScript code you're using to 'popup up' the details. This a a regular link from a calendar event on the USA calendar:

http://www.ironfans.net/cgi-bin/schedule/calendar.cgi?t emplate=ssi.html&popup=0&template=event_detail.html&event_id=896

And this is the URL of the page popping up for the very same link:
http://www.ironfans.net/cgi-bin/sched ule/calendar.cgi?template=ssica.html&calendar=canada&popup=1&template=event_detail.html&event_id=896

Note the "&calendar=canada".

Dan O.

[This message has been edited by DanO (edited October 07, 2004).]

Logged
shaun
Guest
« Reply #2 on: October 08, 2004, 03:42:00 PM »

Yup.  In the ssi.html page the USA calenar calls, if I remove:

onClick="showDetails('<%=$EVENT->{'details'}->{'id'}%>');return false;"

and click on a link, it'll open the correct event in the whole window.  So I just removed the above code and placed in a different pop-up window script I already for other links on the page and it works fine.

Thanks for the assistance.

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: October 08, 2004, 09:52:00 PM »

Glad to hear it.

Dan O.

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

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