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 CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)Help with mouse over event to show detail
Pages: [1]   Go Down
Print
Author Topic: Help with mouse over event to show detail  (Read 539 times)
0 Members and 1 Guest are viewing this topic.
cp
Guest
« on: January 13, 2005, 09:10:00 PM »

Hi, I am in the eval stage of caledarscript for my church's website.  I am the music minister not a web dev, but voted most likely to standup the website.  So I have made great strides in two weeks.

Problem: I need the school lunch calendar to show the detail of the menu choices as the mouse scrolls over the Daily Menu link.  See attached url: http://www.saintbarths.org/cal/calendar.pl?calendar=SchoolLunchCal

I read and tried a couple of the plugins etc. for this, but had no success (Partly because I am not a web dev).  Any suggestions would be greatly appreciated.

Thanks
CP

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: January 14, 2005, 02:23:00 PM »

You shouldn't need any plug-ins to accomplish it but it will require the template being used to be modified. You can see instructions for such a display on one template at the following link:

LINK > ToolTip Template (small calendar with DHTML 'tooltips')

It may be difficult for a complete novice to transfer the modifications needed to a different template.

PS. It will also only work when displayed in newer 4.0+ browsers and ones with JavaScript turned on.

JFYI

Dan O.


[This message has been edited by DanO (edited January 14, 2005).]

Logged
cp
Guest
« Reply #2 on: January 14, 2005, 11:55:00 PM »

Dan,
What about this reference in the support forum?
http://www.calendarscript.com/support/forum/Forum6/HTML/000122.html

Which href is the author referring (Grid view) to inserting the code below?

title="<%=$EVENT>{'details'}>{'description'} %>"

Where would this line fall within the href syntax?

I did locate in the Default.html list section, a line where I switched the code from 'title' to 'description'.  I can now see the menu items in list view for the month.

Thanks
CP

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: January 15, 2005, 01:57:00 PM »

** Which href is the author referring (Grid view) to inserting the code below? **

Wherever you want that particular display to occur. If you want it in Day View, you'll need to put it in the links in the <%-- DAY VIEW --%> section, if you want it in Month, Week, Two-Week, etc. you'll need to put it in the <%-- MONTHLY OR WEEKLY VIEW --%> section.

** Where would this line fall within the href syntax? **

Anywhere at all before the first > character as long as it is separated by a space from any of the other tag attributes. Eg.

<a href=... Your_Code_Here ...>Link Text here</a>

Dan O.

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

Logged
cp
Guest
« Reply #4 on: January 16, 2005, 11:02:00 PM »

Sorry, I must be doing something wrong still.  When I insert the code, the calendar no longer displays and I receive an error dump list.  Below is the actual code from the <% Monthly or Weekly View %> default.html unchanged.

<A HREF="<%=$CGI_URL_QUERYSTRING%>view=Event&event_id=<%= EVENT FIELD(id) %>" CLASS="gridtext"><%= EVENT FIELD(title) %></A><BR>

**Here is the code that a previous post had listed for the mouseover tooltip.**

title="<%=$EVENT>{'details'}>{'description'}%>"

I have tried inserting it based on the instructions from your above response.  Also I have tried placing in various positions within the href and still receive the error.  Can you paste it into the code line as it should be, so I can see what I am doing incorrectly?

Thanks,
CP

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: January 17, 2005, 02:01:00 PM »

<A HREF="<%=$CGI_URL_QUERYSTRING%>view=Event&event_id=<%= EVENT FIELD(id) %>" CLASS="gridtext" title="<%=$EVENT>{'details'}>{'description'}%>"><%= EVENT FIELD(title) %></A><BR>

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

Logged
cp
Guest
« Reply #6 on: January 17, 2005, 06:17:00 PM »

DanO,
I just tried the above code and still receive an error listing just as before, rather than a calendar display.

Error is:
ERROR PROCESSING TEMPLATE
There was an error in your template file. Below is the template file and also the perl code generated from it to help you with debugging.

syntax error at (eval 1) line 183, near "}>" syntax error at (eval 1) line 223, near ";}"
CP

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 17, 2005, 08:13:00 PM »

I see whnere the problem is. The line is suppose to be:

<%=$EVENT->{'details'}->{'description'}%>

Note the two "->"

not

<%=$EVENT>{'details'}>{'description'}%>

like you posted.

You could also probably use <%= EVENT FIELD(description) %> in place of the above too.

Dan O.

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

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