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. Sending message to parent from a popup

Sending message to parent from a popup

Scheduled Pinned Locked Moved ASP.NET
questionjavascripthtmlsysadmin
6 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.
  • E Offline
    E Offline
    Ekjon
    wrote on last edited by
    #1

    I have a page that uses a master page. I have a button that when clicked, should display a popup message like a confirm message, then process (add or remove data to the table). If processing is chosen, then I want to send some message back to the parent to refresh or do something else. With javascript and html controls like input type=submit etc, sending messages back and forth is simple. But how do I do it when I have server side processing to do? I am sure there are ways. Thanks.

    N 1 Reply Last reply
    0
    • E Ekjon

      I have a page that uses a master page. I have a button that when clicked, should display a popup message like a confirm message, then process (add or remove data to the table). If processing is chosen, then I want to send some message back to the parent to refresh or do something else. With javascript and html controls like input type=submit etc, sending messages back and forth is simple. But how do I do it when I have server side processing to do? I am sure there are ways. Thanks.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      There is this new thing people have been talking about, maybe you've heard of it; Ajax?


      only two letters away from being an asset

      E 1 Reply Last reply
      0
      • N Not Active

        There is this new thing people have been talking about, maybe you've heard of it; Ajax?


        only two letters away from being an asset

        E Offline
        E Offline
        Ekjon
        wrote on last edited by
        #3

        Yes, sure I did. I am using some basic AJAX on my pages to prevent refreshing of the whole page. But I don't know how to solve this problem I mentioned. Can you please direct me to the right way? Thanks.

        N 1 Reply Last reply
        0
        • E Ekjon

          Yes, sure I did. I am using some basic AJAX on my pages to prevent refreshing of the whole page. But I don't know how to solve this problem I mentioned. Can you please direct me to the right way? Thanks.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          You are using an Ajax enabled control, most likely the UpdatePanel. However, Ajax is more than jest a set of controls and can be used for client-server communication. Start here[^]


          only two letters away from being an asset

          E 1 Reply Last reply
          0
          • N Not Active

            You are using an Ajax enabled control, most likely the UpdatePanel. However, Ajax is more than jest a set of controls and can be used for client-server communication. Start here[^]


            only two letters away from being an asset

            E Offline
            E Offline
            Ekjon
            wrote on last edited by
            #5

            Should I visit the town of Ajax as well? In the google search I found that too. Just kidding - thanks.

            M 1 Reply Last reply
            0
            • E Ekjon

              Should I visit the town of Ajax as well? In the google search I found that too. Just kidding - thanks.

              M Offline
              M Offline
              mr_muskurahat
              wrote on last edited by
              #6

              window.opener.parentfunction(parametors to send) i think it will help you where parent function is written in javascript of parent page from where popup is open.

              umerumerumer

              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