Hi,

I hope someone is familiar with simpleModal.  I'm trying to add some
effects to the popup, but keep getting errors when I add my "onOpen"
parameter.  Here's my code.  Thank!


        $(document).ready(function() {
            $('#create-user').click(function(e) {
                        e.preventDefault();
                        // load the contact form using ajax
                        $.get("form.cfm", function(data){
                                // create a modal dialog with the data
                                $(data).modal({
                                        overlay:80,
                                        overlayCss: {backgroundColor:"#cccccc"},
                                        overlayClose: true,
                                        position: [e.pageY,e.pageX],

                                        onOpen: function(dialog) {
                                                dialog.overlay.fadeIn('fast', 
function() {
                                                        dialog.data.hide();
                                                        
dialog.container.fadeIn('fast', function() {
                                                                
dialog.data.slideDown('fast');
                                                        });
                                                });
                                        }

                                });
                        });
                });
        });

Reply via email to