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. Hi..

Hi..

Scheduled Pinned Locked Moved ASP.NET
helpquestion
6 Posts 5 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.
  • V Offline
    V Offline
    vinay_K
    wrote on last edited by
    #1

    i have given a search option in my web page, i'm opening new window to display the calender control.. My problem is When i close the Main window the calender control window is still opened.. how can i close the child window, when the parent is closing... this im using to check the closing of browser var requireConfirm = true; window.onbeforeunload = function() { if(requireConfirm) { } } if the calender window is opened i need to close that window before exiting the browser.. please help me asap.. thanks in advance skvs

    P A K 3 Replies Last reply
    0
    • V vinay_K

      i have given a search option in my web page, i'm opening new window to display the calender control.. My problem is When i close the Main window the calender control window is still opened.. how can i close the child window, when the parent is closing... this im using to check the closing of browser var requireConfirm = true; window.onbeforeunload = function() { if(requireConfirm) { } } if the calender window is opened i need to close that window before exiting the browser.. please help me asap.. thanks in advance skvs

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      Open it in a modal fashion?

      V 1 Reply Last reply
      0
      • P Paddy Boyd

        Open it in a modal fashion?

        V Offline
        V Offline
        vinay_K
        wrote on last edited by
        #3

        hi Paddy Boyd..thanks for reply. :-) this is how im opening it... window.open('Calendar.aspx','calendarPopup','titlebar=0,left=470,top=100,width=300,height=225,resizable=0, toolbar=0,menubar=0,location=0, directories=0'); Can u suggest me how to open it in a modal fashion.. so that when parent window is closed, the Calender.aspx window should also be closed..

        V 1 Reply Last reply
        0
        • V vinay_K

          hi Paddy Boyd..thanks for reply. :-) this is how im opening it... window.open('Calendar.aspx','calendarPopup','titlebar=0,left=470,top=100,width=300,height=225,resizable=0, toolbar=0,menubar=0,location=0, directories=0'); Can u suggest me how to open it in a modal fashion.. so that when parent window is closed, the Calender.aspx window should also be closed..

          V Offline
          V Offline
          Venkat Eswaran
          wrote on last edited by
          #4

          http://javascript.about.com/library/blmodal.htm[^]

          function modalWin() {
          if (window.showModalDialog) {
          window.showModalDialog("xpopupex.htm","name",
          "dialogWidth:255px;dialogHeight:250px");
          } else {
          window.open('xpopupex.htm','name',
          'height=255,width=250,toolbar=no,directories=no,status=no,
          menubar=no,scrollbars=no,resizable=no ,modal=yes');
          }
          }

          Venky

          1 Reply Last reply
          0
          • V vinay_K

            i have given a search option in my web page, i'm opening new window to display the calender control.. My problem is When i close the Main window the calender control window is still opened.. how can i close the child window, when the parent is closing... this im using to check the closing of browser var requireConfirm = true; window.onbeforeunload = function() { if(requireConfirm) { } } if the calender window is opened i need to close that window before exiting the browser.. please help me asap.. thanks in advance skvs

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #5

            skvs wrote:

            Subject:Hi..

            That is not the proper subject of your question.

            cheers, Abhijit Think Sharp | Code Sharp | C Sharp

            1 Reply Last reply
            0
            • V vinay_K

              i have given a search option in my web page, i'm opening new window to display the calender control.. My problem is When i close the Main window the calender control window is still opened.. how can i close the child window, when the parent is closing... this im using to check the closing of browser var requireConfirm = true; window.onbeforeunload = function() { if(requireConfirm) { } } if the calender window is opened i need to close that window before exiting the browser.. please help me asap.. thanks in advance skvs

              K Offline
              K Offline
              Kaushikkavi
              wrote on last edited by
              #6

              window.opener='self'; window.close(); or use. function closeAllchildren() { for(var n=0;n<children.length;n++)> {children[n].close(); } //Oh, and close self! window.close(); }

              Kaushik Rabadiya

              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