Can't Get Dialog to Work
Permalink
I am working on a custom event calendar block, and when an event in the calendar is clicked, I want to display a popup window (dialog) with the event details. This works perfectly if I'm logged into the site, but not if I'm not. Here's a sample of the code I'm trying to execute:
When invoking this function while not logged in, I get a javascript error stating that 'dialog' is null or doesn't exist. None of the solutions I've found in the forums have worked so far. Does anyone know what I need to do to get this to work? Thanks!
function showCalEventDialog() { jQuery.fn.dialog.open({ title: 'Event Details', element: '#fs_calendar_event_detail', width: 550, modal: false, height: 400 }); }
When invoking this function while not logged in, I get a javascript error stating that 'dialog' is null or doesn't exist. None of the solutions I've found in the forums have worked so far. Does anyone know what I need to do to get this to work? Thanks!
When you are logged in, jquery.ui and ccm.app are both already loaded for you.