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. Browser close issue

Browser close issue

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

    can we stop window.open on page refresh event... because if i refresh then also this code is executing... Sorry I am repeating my question.. Thanks in advance Yrishi

    C 1 Reply Last reply
    0
    • Y yrishi

      can we stop window.open on page refresh event... because if i refresh then also this code is executing... Sorry I am repeating my question.. Thanks in advance Yrishi

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      yrishi wrote:

      Sorry I am repeating my question..

      Yes, you are. And the answers are not going to change. 1 - window.open is not a solution 2 - an AJAX call is more reliable 3 - even that is not going to work 100% of the time 4 - therefore, most of the pages on the web find other ways to deal with this. Asking the same question and expecting a different answer, is not really terribly bright.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      Y 1 Reply Last reply
      0
      • C Christian Graus

        yrishi wrote:

        Sorry I am repeating my question..

        Yes, you are. And the answers are not going to change. 1 - window.open is not a solution 2 - an AJAX call is more reliable 3 - even that is not going to work 100% of the time 4 - therefore, most of the pages on the web find other ways to deal with this. Asking the same question and expecting a different answer, is not really terribly bright.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        Y Offline
        Y Offline
        yrishi
        wrote on last edited by
        #3

        Thanks for quick reply.. you mean to say that AJAX call is also not 100% sure solution(as your point no 2 and 3) Please update me

        C 1 Reply Last reply
        0
        • Y yrishi

          Thanks for quick reply.. you mean to say that AJAX call is also not 100% sure solution(as your point no 2 and 3) Please update me

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Yes, I told you that last time. If someone closes the browser, rather than goes to another page, I'm not sure if the event fires. Either way, you can't be sure someone's computer didn't just crash, right ? Like I said last time, your solution is to fix your code, not to look for something that does not reliably exist.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          Y 1 Reply Last reply
          0
          • C Christian Graus

            Yes, I told you that last time. If someone closes the browser, rather than goes to another page, I'm not sure if the event fires. Either way, you can't be sure someone's computer didn't just crash, right ? Like I said last time, your solution is to fix your code, not to look for something that does not reliably exist.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            Y Offline
            Y Offline
            yrishi
            wrote on last edited by
            #5

            Thanks CG....

            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