Posted on: 12/10/2013 6:33:21 PM | Views : 690

Hi all,
I understand this has been discussed before but I am not sure maybe mine is a little bit different:
I have a main page, click on add new comment button will open another page so user can input their comment, on that page user click on save button, presumably I want the backend code be executed to add the comment into database, AND ONLY AFTER THAT, call a javascript piece to close the page and REFRESH the parent page.
My current code will run the javascript code first and won't run backend code.
What I am doing is: I enforce user to click on the close button to close the page and refresh parent page, unfortuntely user doesn't buy it.
Can anyone tell me how to achieve this very reasonable requirement?
Thank you very much.

Go to the complete details ...