David, The problem is being caused by the data you are trying to place in the modal. You can fix it by wrapping the data in a div before using it in the modal:
$(document).ready(function() { [snip] $.get("form.cfm", function(data){ // create a modal dialog with the data var d = $("<div></div>").append(data); $(d).modal({ [snip] }); -Eric On Sep 9, 11:17 am, David Garthe <davidgar...@gmail.com> wrote: > 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'); > }); > }); > } > > }); > }); > }); > });