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. AutoClose of DivisionTag Window .......

AutoClose of DivisionTag Window .......

Scheduled Pinned Locked Moved ASP.NET
comadobesysadmintoolsquestion
3 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.
  • P Offline
    P Offline
    priyareguri
    wrote on last edited by
    #1

    HI , the following code if am using.. i want autoclose to "dwindow" division tag after displaying for specific seconds.. <script> var dragapproved = false var minrestore = 0 var initialwidth, initialheight var ie5 = document.all && document.getElementById var ns6 = document.getElementById && !document.all function iecompattest() { return (!window.opera && document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body } function loadwindow(width, height) { if (!ie5 && !ns6) window.open("width=width,height=height,scrollbars=1") else { document.getElementById("dwindow").style.display = '' document.getElementById("dwindow").style.width = initialwidth = width + "px" document.getElementById("dwindow").style.height = initialheight = height + "px" document.getElementById("dwindow").style.left = "30px" document.getElementById("dwindow").style.top = ns6 ? window.pageYOffset * 1 + 30 + "px" : iecompattest().scrollTop * 1 + 30 + "px" document.getElementById("cframe").src = url } } function closeit() { document.getElementById("dwindow").style.display = "none" } </script> <script> var howLong = 10000; t = null; function closeMe() { t = setTimeout("dwindow.close()", howLong); } </script> <script> function closeHelpDiv() { document.getElementById("dwindow").style.display = "none"; } </script> </head> <body> <form id="form1" runat="server"> <div id="dwindow" style="position: absolute; cursor: hand; left: 0px; top: 0px; display: none" onselectstart="return false" > <div align="right" style="background-color: #FFFF99;"> <a onclick="closeit()" style="color: Red; font-weight: bold; cursor: pointer;">Close</a> </div> <div id="dwindowcontent"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="400"> <param name="m

    S A 2 Replies Last reply
    0
    • P priyareguri

      HI , the following code if am using.. i want autoclose to "dwindow" division tag after displaying for specific seconds.. <script> var dragapproved = false var minrestore = 0 var initialwidth, initialheight var ie5 = document.all && document.getElementById var ns6 = document.getElementById && !document.all function iecompattest() { return (!window.opera && document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body } function loadwindow(width, height) { if (!ie5 && !ns6) window.open("width=width,height=height,scrollbars=1") else { document.getElementById("dwindow").style.display = '' document.getElementById("dwindow").style.width = initialwidth = width + "px" document.getElementById("dwindow").style.height = initialheight = height + "px" document.getElementById("dwindow").style.left = "30px" document.getElementById("dwindow").style.top = ns6 ? window.pageYOffset * 1 + 30 + "px" : iecompattest().scrollTop * 1 + 30 + "px" document.getElementById("cframe").src = url } } function closeit() { document.getElementById("dwindow").style.display = "none" } </script> <script> var howLong = 10000; t = null; function closeMe() { t = setTimeout("dwindow.close()", howLong); } </script> <script> function closeHelpDiv() { document.getElementById("dwindow").style.display = "none"; } </script> </head> <body> <form id="form1" runat="server"> <div id="dwindow" style="position: absolute; cursor: hand; left: 0px; top: 0px; display: none" onselectstart="return false" > <div align="right" style="background-color: #FFFF99;"> <a onclick="closeit()" style="color: Red; font-weight: bold; cursor: pointer;">Close</a> </div> <div id="dwindowcontent"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="400"> <param name="m

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      Whats the problem? Just call closeMe() at the end of your loadwindow method. If you need anything else or an issue, do tell

      1 Reply Last reply
      0
      • P priyareguri

        HI , the following code if am using.. i want autoclose to "dwindow" division tag after displaying for specific seconds.. <script> var dragapproved = false var minrestore = 0 var initialwidth, initialheight var ie5 = document.all && document.getElementById var ns6 = document.getElementById && !document.all function iecompattest() { return (!window.opera && document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body } function loadwindow(width, height) { if (!ie5 && !ns6) window.open("width=width,height=height,scrollbars=1") else { document.getElementById("dwindow").style.display = '' document.getElementById("dwindow").style.width = initialwidth = width + "px" document.getElementById("dwindow").style.height = initialheight = height + "px" document.getElementById("dwindow").style.left = "30px" document.getElementById("dwindow").style.top = ns6 ? window.pageYOffset * 1 + 30 + "px" : iecompattest().scrollTop * 1 + 30 + "px" document.getElementById("cframe").src = url } } function closeit() { document.getElementById("dwindow").style.display = "none" } </script> <script> var howLong = 10000; t = null; function closeMe() { t = setTimeout("dwindow.close()", howLong); } </script> <script> function closeHelpDiv() { document.getElementById("dwindow").style.display = "none"; } </script> </head> <body> <form id="form1" runat="server"> <div id="dwindow" style="position: absolute; cursor: hand; left: 0px; top: 0px; display: none" onselectstart="return false" > <div align="right" style="background-color: #FFFF99;"> <a onclick="closeit()" style="color: Red; font-weight: bold; cursor: pointer;">Close</a> </div> <div id="dwindowcontent"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="400"> <param name="m

        A Offline
        A Offline
        Arindam Tewary
        wrote on last edited by
        #3

        This code looks like a copy paste code and do you expect people to get it working for you?. Did you notice where the problem is ? Check in the following line ....

        document.getElementById("cframe").src = url

        The function have neither "url" nor "cframe" control. How this should work ?? Before posting such query why dont you put little effort to get priliminary work done?:mad:

        Thanks, Arindam D Tewary

        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