locked
How to Refresh the Master Page from Button Click RRS feed

  • Question

  • User1944504294 posted

    Hi friends,

    I want to Thank you All :-)

    My Doubt is,

    How to refresh the master page(that contain many pages within) when a button click happen in the one of the page it has.

    Actually When I'm doing login in another page it working but the login information are not updated in the another page.

    Please help me

    Thank you!

    Renuka.V

    Thursday, November 20, 2014 8:33 AM

Answers

  • User1918509225 posted

    Hi Renuka,

    When you use windows.location.reload(),it will refresh your page, you will lost the popup.

    I am not quite sure  the sentence below mean:

    need to refresh on the other page that has login panel

    If you want to refresh the other page  in your popup, it seems not a good idea.

    Best Regards,

    Kevin Shen.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 24, 2014 3:55 AM

All replies

  • User1577371250 posted

    where do you have the login code?

    Master page or contentpage and how are you storing the user login data (session,cookies or ??)

    Thursday, November 20, 2014 8:43 AM
  • User-484054684 posted

    I believe, you can use Session variable and store the object in the session on Button_Click, which can then be used in next subsequent pages.

    Note: If user has already opened all the pages in the tabs, then it will not reflect and the user needs to refresh (F5) the other pages manually if already opened.

     

    Thursday, November 20, 2014 9:15 AM
  • User1944504294 posted

    Hi,

    Login page comes in the pop up window by clicking on the button

    I need to display the logged in user name in the label that placed in the another panel .. now it works when I do the page refresh manually

    so I think I  want to do the page refresh from the code

    How to do the page refresh by the code without manually

    Best regards,
    Renuka.V

    Thursday, November 20, 2014 9:38 AM
  • User1577371250 posted

    I think if you have maintained the Session no need to refresh the page.

    Thursday, November 20, 2014 9:46 AM
  • User-484054684 posted

    window.location.reload(); can be used to reload the page from javascript. Note: You can also send true or false depending on caching feature required or not for your page.

    Reference: https://www.udemy.com/blog/javascript-page-refresh/

    1. After the popUp is closed, you may have some javascript code in the main page - there, use window.location.reload();

    2. From the child window, to access parent window, you can use window.parent.location.reload();

    Note: similar to window.parent, you can also use window.opener or window.top based on your choice http://stackoverflow.com/questions/1318006/reload-parent-window-from-child-window

    Thursday, November 20, 2014 10:00 AM
  • User1944504294 posted

    Hi,

    window.location.reload();  refreshes entire page and I'm losing the popup

    I want to do next set of actions in the pop up (without losing popup) ,need to refresh on the other page that has login panel.

    Best regards,
    Renuka.V

    Friday, November 21, 2014 3:05 AM
  • User1918509225 posted

    Hi Renuka,

    When you use windows.location.reload(),it will refresh your page, you will lost the popup.

    I am not quite sure  the sentence below mean:

    need to refresh on the other page that has login panel

    If you want to refresh the other page  in your popup, it seems not a good idea.

    Best Regards,

    Kevin Shen.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 24, 2014 3:55 AM