0
votes

I have a modal dialog and I want to refresh the parent form when I close the dialog.

I have used this javascript code:

self.close();
window.dialogArguments.location.reload(true);

The problem is that it doesnt always refreshes the parent form. Sometimes it refreshes and sometimes it doesnt and I can't figure out why it doesn't refreshes always?

1

1 Answers

1
votes

I suspect that it's intermittent because sometimes your self.close(); completes before reaching the next line.

Basically, swap those two statements over and I expect you will see consistent performance.