PDA

View Full Version : Calendar Events as Popup


PennylessZ28
04-16-2003, 08:22 PM
Not sure if this is a hack, but since I am only changing templates, I'm guessing its a template mod!

I'm trying to make it so that when a user selects an event on the calendar a window with the event information pop's up.

Seems easy enough

I've changed calendar_publicevent to:
<li><a href="javascript:openpopup()"><smallfont color="#008800">$eventsubject</smallfont></a></li>

Then I inserted the following code into the headinclude.

<script>

function openpopup(){
var popurl="calendar.php?s=$session[sessionhash]&action=getinfo&eventid=$eventid"
winpops=window.open(popurl,"","width=400,height=338,")
}

</script>


So, that seemed about right at the time. Went clicked on an event, and wow, a popup window. But no event :(

Ok, so I think I have the right idea here, but I think I've boarded the wrong train. Anyone want to help me get on the right track. :confused: