urgent
-
i have to refresh a mainpage from a popup window whose parent is another popup which is opened from the main page..... i have to do this using javascript... can any one help me....
thank u
-
i have to refresh a mainpage from a popup window whose parent is another popup which is opened from the main page..... i have to do this using javascript... can any one help me....
thank u
Hi, Try, window.opener
To succeed, we must first believe that we can. Sherin Iranimose
-
Hi, Try, window.opener
To succeed, we must first believe that we can. Sherin Iranimose
Hi, you have to add a attribute to that button during the page load event of the form that would call the popup .the code for that is like: ********************************************** loginButton.Attributes.Add("onclick", "window.showModalDialog('/MyWebsite/login.aspx', null, 'status:no; dialogWidth:360px; dialogHeight:229px; help:no; scroll:no; menubar:no; resizable:no')"); *********************************************** This code is for modalDialog or for popup button.Attributes.Add ("onclick", "javascript: functiontoopenpopup();"); this will open the popup window. In the popupwindow code....on the Page_unload you have to write this code. ***************************************** window.close(); window.opener.location.reload(); ***************************************** This will close the popup and refresh the parent window. Regards, Kaps
-
Hi, you have to add a attribute to that button during the page load event of the form that would call the popup .the code for that is like: ********************************************** loginButton.Attributes.Add("onclick", "window.showModalDialog('/MyWebsite/login.aspx', null, 'status:no; dialogWidth:360px; dialogHeight:229px; help:no; scroll:no; menubar:no; resizable:no')"); *********************************************** This code is for modalDialog or for popup button.Attributes.Add ("onclick", "javascript: functiontoopenpopup();"); this will open the popup window. In the popupwindow code....on the Page_unload you have to write this code. ***************************************** window.close(); window.opener.location.reload(); ***************************************** This will close the popup and refresh the parent window. Regards, Kaps
Hi, Please reply to the correct message, Then only the poster will get a notification mail.
To succeed, we must first believe that we can. Sherin Iranimose
-
Hi, Please reply to the correct message, Then only the poster will get a notification mail.
To succeed, we must first believe that we can. Sherin Iranimose
Hi, i need to refresh the mainpage from a popup as shown below Main Page ---> Popup1(opened from main page) ----> Popup2(opened from Popup2) i have to refresh the mainpage when popup2 gets closed.... how can i do this....
thank u