Here its solved and u can find the code also
http://feelitfresh.com/web20/jquery-ui-dialog-close/ On Nov 18, 11:43 pm, manilodisan <[email protected]> wrote: > I'm loading adialogand inside it an iframe to show a form. After > posting the forum via ajax I analyze the response and want toclose > thedialog(born from the parent window) if the response is a > 'success'. Nothing works....any idea how I can make this thing work? > Here's my code: > > // post the data > $.post(url, jQuery('#frm_new_folder').serialize(), function (data){ > // if the response is success,closethedialog > that was opened from the parent window > if ( data == 'success' ) { > var d = $(window.parent.document).find > ('#dialog'); > d.dialog('close'); > } > else { > $('#file_manager_new_folder_receiver').html > (data); > } > > }); > > P.S. Sorry if it's a duplicate. I'm so lost in this napple/google > thing, --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
