Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. urgent

urgent

Scheduled Pinned Locked Moved ASP.NET
javascripthelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jamesmani2k5
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • J jamesmani2k5

      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

      S Offline
      S Offline
      Sherin Iranimose
      wrote on last edited by
      #2

      Hi, Try, window.opener


      To succeed, we must first believe that we can. Sherin Iranimose


      K 1 Reply Last reply
      0
      • S Sherin Iranimose

        Hi, Try, window.opener


        To succeed, we must first believe that we can. Sherin Iranimose


        K Offline
        K Offline
        kapiljadhav
        wrote on last edited by
        #3

        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

        S 1 Reply Last reply
        0
        • K kapiljadhav

          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

          S Offline
          S Offline
          Sherin Iranimose
          wrote on last edited by
          #4

          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


          J 1 Reply Last reply
          0
          • S 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


            J Offline
            J Offline
            jamesmani2k5
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups