fauthsisplits
New Member
I have a javascript function that makes a popup and loads an .aspx page inside the popup.Here is my code:\[code\]function moveEvent(doTheMove) { var selectedNotesList = getSelectedNoteIDs(); if (doTheMove) { $.fancybox({ 'autoScale': false, 'type': 'iframe', 'height': 225, 'width': 800, 'href': 'Utilities/MoveFileTemplate.aspx?eventID=' + selectedNotesList + '&oldEventCaseFile=' + $('#hidCaseFile').val(), onComplete: function () { $('#fancybox-overlay').unbind(); }, onClosed: function () { $("#viewNotesGrid").flexReload(); } }); } else showMessage("No expenses are selected."); }\[/code\]In my .aspx page I have 3 radio buttons, a DropDownList and 2 buttons. What I am trying to do is close the popup when the user clicks on the "cancel" button instead of having to press the "X" button in the top corner. (When the cancel button is pressed it has to mimic the "X" button so that the "onClosed:" can fire and reload my flexigrid) Any suggestions?