View Full Version : Need some help with javascript DIV popup

11-19-2010, 08:08 PM
Ok, I'm not a javascript expert, but I'm using a Drupal module called Calendar which uses some javascript to popup links in a DIV instead of going to a new page. This appears to work by adding class="popup" to links on the calendar.

I want to use the same functionality to link to calendar events from other areas on the site, not just on the calendar. It looks like the javascript file is loaded on every page of the site, but adding class="popup" only results in an empty DIV with a close button, without actually loading the content. Can anyone please help me solve this?

A link to what I'm working on is here: The upcoming events section is a block from the Calendar view (created by the Calendar module), however it does not do popups by default like the calendar page, so I've tried adding class="popup" to these links to make it work. You can see in the main body of the page is a test link with class="popup" as a test as well. I want them to behave like the popups on the event calendar page.

I think this is the javascript file in question:

I know this is a lot, and I'm a newbie here, but I appreciate any help, thanks.

11-20-2010, 01:25 AM
That script is intended for calendar only. You have to use a different one.

Try this one - http://dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm