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:

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!

 
JohntheFish replied on at Permalink Reply
JohntheFish
You need to load jQuery.ui.

When you are logged in, jquery.ui and ccm.app are both already loaded for you.
flaresys replied on at Permalink Reply
I tried that at first, and wasn't having any luck. There must have been a conflict somewhere because when I started over (and used a different jQuery ui file), it now works. Thanks.