Jquery close function

I want to update the parent site when I close the jquery dialog. I look at the jQuery site and the close event, but I'm not sure if I get it. so i would appriciate litle help along the way.

from what i draw sofar i have to do like this. this is my code for the dialog you are using.

$("#dialog").dialog({ height: 700, width: 600, closeOnEscape: true, title: 'View', close: function(event, ui) }).dialog("open");

now what I am not getting is a tight function there, should it be there first? what happens in the event and ui (close function directly from jquery site)?

where should i go

Thanks for any help I could get from this.

+3
source share
1 answer
$("#dialog").dialog({ height: 700, width: 600, closeOnEscape: true, title: 'View', 
   close: function(event, ui){ doThings(); }}).dialog("open");

What you need to do is either use a specific function or define it on the fly.

+3
source

Source: https://habr.com/ru/post/1726788/


All Articles