Site Unload?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Winter

    #16
    Re: Site Unload?

    On Tue, 14 Dec 2004 17:35:33 -0500, Ross M. Greenberg
    <greenber@catsk ill.net> wrote:

    [Opening a survey when leaving a site]

    Whilst it is technically possible, it won't actually serve much purpose
    for the reason I mentioned previously: user's generally don't like having
    a questionaire shoved in their face. Moreover, if you use a pop-up to
    present this survey, every pop-up blocker in existence will prevent it
    from appearing.

    [snip]
    [color=blue]
    > The survey in mind seeks to ask them directly what they liked or did not
    > like about the site. I'm seeing more than a few users leaving the site
    > from its home page. I need to find out why so I can fix what they don't
    > like.[/color]

    That might depend on your content. For example, users might be arriving
    because your site appeared in a search result whilst they're looking for
    some information. When they view your site, they may discover that you
    don't provide what they were looking for, so they leave. Alternatively,
    they may be unsure of whether your site is appropriate and for some reason
    - bad navigation or unappealing appearance, for example - they're not
    inclined to investigate further.

    The people over at alt.www.webmaster might have a few suggestions.

    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.

    Comment

    • Randy Webb

      #17
      Re: Site Unload?

      Ross M. Greenberg wrote:
      [color=blue]
      > "Michael Winter" <M.Winter@bluey onder.co.invali d> wrote in message
      > news:opsi0o0f06 x13kvk@atlantis ...
      >[color=green]
      >>On Tue, 14 Dec 2004 15:37:42 -0500, Ross M. Greenberg
      >><greenber@cat skill.net> wrote:
      >>
      >>Don't top-post and don't quote signatures!
      >>
      >>[color=darkred]
      >>>"Michael Winter" <M.Winter@bluey onder.co.invali d> wrote in message
      >>>news:opsi0kw iy0x13kvk@atlan tis...[/color]
      >>
      >>[snip]
      >>
      >>[color=darkred]
      >>>>What are you trying to achieve, and why?
      >>>
      >>>For a commercial site, I want to open a survey page when they exit from
      >>>the site from any page, but not as they transit along the site's many
      >>>pages.[/color]
      >>
      >>I'm afraid I'll have to be blunt: why on Earth should I, or anyone else,
      >>tell you how to do that?[/color]
      >
      >
      > Aside from the challenge?[/color]

      You can take this "challenge" for as long as you want, and you will
      still ultimately fail in the end. The browser has NO way to know where I
      am going, unless its from a link within the page.

      But tell us this.

      Lets say I am on page234.html on your site.
      I have page352.html bookmarked.
      I click the page352.html bookmark.

      Did I leave the site?

      The answer is no but your script will fail to know that.
      [color=blue]
      > The survey in mind seeks to ask them directly what they liked or did not
      > like about the site. I'm seeing more than a few users leaving the site from
      > its home page. I need to find out why so I can fix what they don't like.[/color]

      Then put the link on the main page. As was pointed out, if the user
      wants to fill it out, they will. <sarcasm>If they don't, then popping up
      a survey page will surely entice them to.</sarcasm>

      Thats assuming that Scripting is enabled and that you can actually open
      a survey page.

      --
      Randy
      comp.lang.javas cript FAQ - http://jibbering.com/faq
      Answer:It destroys the order of the conversation
      Question: Why?
      Answer: Top-Posting.
      Question: Whats the most annoying thing on Usenet?

      Comment

      • Evertjan.

        #18
        Re: Site Unload?

        Ross M. Greenberg wrote on 14 dec 2004 in comp.lang.javas cript:
        [color=blue][color=green]
        >> The host of what?
        >> Of a browser page?[/color]
        >
        > if I'm at http://www.foo.bar/whatever.htm, then going to
        > http://www.yahoo.com[/color]

        That is no answer to my question. You are not going from one place to
        another but your browser page is. But another pge can stay on the old
        host. The host OF WHAT?
        [color=blue][color=green]
        >>
        >> Talking IE, when you pass to another page with shift-clicking a link,
        >> you have two pages. Do you define closing one of the pages as leaving
        >> a site?[/color]
        >
        > Nope. Just going to a "new" site.[/color]

        Strange. Same objection as above. see below.
        [color=blue][color=green]
        >> Even if there is one browser page, pulling the mains plug is not
        >> "detected".[/color]
        >
        > That's why I want to detect the address of the page I'm *about* to
        > open, check the root-site.host and trigger if there's no match.[/color]

        Only by comparing domains in the code could this be accomlished.

        It would be an infringement of browser security, if the code of your page
        would be able to know the domain of the next page if typed in or
        favoritized.

        No one in his right mind would want that information to be sent back to
        the server of the old page, because all privacy would be gone.



        --
        Evertjan.
        The Netherlands.
        (Please change the x'es to dots in my emailaddress)

        Comment

        • Ross M. Greenberg

          #19
          Re: Site Unload?


          "Randy Webb" <HikksNotAtHome @aol.com> wrote in message
          news:lP2dndY5qP IK7CLcRVn-tg@comcast.com. ..[color=blue]
          > You can take this "challenge" for as long as you want, and you will
          > still ultimately fail in the end. The browser has NO way to know where I
          > am going, unless its from a link within the page.[/color]

          I thought an event was triggered when a web page is about to be accessed --
          aren't custom 404's generated locally for invalid URLs, for example?[color=blue]
          >
          > But tell us this.
          >
          > Lets say I am on page234.html on your site.
          > I have page352.html bookmarked.
          > I click the page352.html bookmark.
          >
          > Did I leave the site?[/color]

          If the http://<whatever> is the same, no. If different, yes.[color=blue]
          >
          > The answer is no but your script will fail to know that.
          >[color=green]
          > > The survey in mind seeks to ask them directly what they liked or did not
          > > like about the site. I'm seeing more than a few users leaving the site[/color][/color]
          from[color=blue][color=green]
          > > its home page. I need to find out why so I can fix what they don't like.[/color]
          >
          > Then put the link on the main page. As was pointed out, if the user
          > wants to fill it out, they will. <sarcasm>If they don't, then popping up
          > a survey page will surely entice them to.</sarcasm>[/color]

          But this was a means to get them to let me know *as* they leave, not when
          they're still at/just arrived at the site.[color=blue]
          >
          > Thats assuming that Scripting is enabled and that you can actually open
          > a survey page.[/color]

          Well, yeah, there's that, too :-)


          Comment

          • Ross M. Greenberg

            #20
            Re: Site Unload?


            "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
            news:Xns95C07ED B1D4Beejj99@194 .109.133.29...[color=blue]
            > Ross M. Greenberg wrote on 14 dec 2004 in comp.lang.javas cript:
            >[color=green][color=darkred]
            > >> The host of what?
            > >> Of a browser page?[/color]
            > >
            > > if I'm at http://www.foo.bar/whatever.htm, then going to
            > > http://www.yahoo.com[/color]
            >
            > That is no answer to my question. You are not going from one place to
            > another but your browser page is. But another pge can stay on the old
            > host. The host OF WHAT?[/color]

            The pages stay at the host, obviously. The base of the URL can be considered
            the host for these purposes, however.[color=blue]
            >
            > Only by comparing domains in the code could this be accomlished.
            >
            > It would be an infringement of browser security, if the code of your page
            > would be able to know the domain of the next page if typed in or
            > favoritized.[/color]

            I had thought the address you were *about* to go to would be available until
            the event (onunload) had finished.
            [color=blue]
            >
            > No one in his right mind would want that information to be sent back to
            > the server of the old page, because all privacy would be gone.[/color]

            Hadn't thought of that....


            Comment

            • Randy Webb

              #21
              Re: Site Unload?

              Ross M. Greenberg wrote:
              [color=blue]
              > "Randy Webb" <HikksNotAtHome @aol.com> wrote in message
              > news:lP2dndY5qP IK7CLcRVn-tg@comcast.com. ..
              >[color=green]
              >>You can take this "challenge" for as long as you want, and you will
              >>still ultimately fail in the end. The browser has NO way to know where I
              >>am going, unless its from a link within the page.[/color]
              >
              >
              > I thought an event was triggered when a web page is about to be accessed --
              > aren't custom 404's generated locally for invalid URLs, for example?[/color]

              That depends on how the server of the invalid URL is setup. But it's
              irrelevant.
              [color=blue][color=green]
              >>But tell us this.
              >>
              >>Lets say I am on page234.html on your site.
              >>I have page352.html bookmarked.
              >>I click the page352.html bookmark.
              >>
              >>Did I leave the site?[/color]
              >
              >
              > If the http://<whatever> is the same, no. If different, yes.[/color]

              The browser has no way of knowing that. It only knows that you left
              *one* page, not how you left, just that the page is unloading. The one
              exception would be if you had onclicks in all your links to internal
              pages that set a variable, onunload you check that variable. Search the
              archives on how its done.

              But that still does not cover me leaving one page of your site to
              another page of your site via a favorites or by typing in the URL.

              [color=blue][color=green]
              >>The answer is no but your script will fail to know that.
              >>
              >>[color=darkred]
              >>>The survey in mind seeks to ask them directly what they liked or did not
              >>>like about the site. I'm seeing more than a few users leaving the site[/color][/color]
              >
              > from
              >[color=green][color=darkred]
              >>>its home page. I need to find out why so I can fix what they don't like.[/color]
              >>
              >>Then put the link on the main page. As was pointed out, if the user
              >>wants to fill it out, they will. <sarcasm>If they don't, then popping up
              >>a survey page will surely entice them to.</sarcasm>[/color]
              >
              >
              > But this was a means to get them to let me know *as* they leave, not when
              > they're still at/just arrived at the site.[/color]

              Then put the link on all pages. But if people are going to fill it out,
              they will do so. Attempting to popup a survey to ask what you thought of
              a site is very anti-user oriented.

              But there is no way for you to definitively know where I am going when I
              leave one page of your site.

              --
              Randy
              comp.lang.javas cript FAQ - http://jibbering.com/faq

              Comment

              • Evertjan.

                #22
                Re: Site Unload?

                Ross M. Greenberg wrote on 15 dec 2004 in comp.lang.javas cript:
                [color=blue]
                > I thought an event was triggered when a web page is about to be
                > accessed -- aren't custom 404's generated locally for invalid URLs,
                > for example?
                >[/color]

                No, not if the domain is valid.

                --
                Evertjan.
                The Netherlands.
                (Please change the x'es to dots in my emailaddress)

                Comment

                • Ross M. Greenberg

                  #23
                  Re: Site Unload?

                  I listened to you folks, and stuck the survey via a link.

                  "Randy Webb" <HikksNotAtHome @aol.com> wrote in message
                  news:SeSdnVYIPe fOCSLcRVn-oQ@comcast.com. ..[color=blue]
                  > Ross M. Greenberg wrote:
                  >[color=green]
                  > > "Randy Webb" <HikksNotAtHome @aol.com> wrote in message
                  > > news:lP2dndY5qP IK7CLcRVn-tg@comcast.com. ..
                  > >[color=darkred]
                  > >>You can take this "challenge" for as long as you want, and you will
                  > >>still ultimately fail in the end. The browser has NO way to know where I
                  > >>am going, unless its from a link within the page.[/color]
                  > >
                  > >
                  > > I thought an event was triggered when a web page is about to be[/color][/color]
                  accessed --[color=blue][color=green]
                  > > aren't custom 404's generated locally for invalid URLs, for example?[/color]
                  >
                  > That depends on how the server of the invalid URL is setup. But it's
                  > irrelevant.
                  >[color=green][color=darkred]
                  > >>But tell us this.
                  > >>
                  > >>Lets say I am on page234.html on your site.
                  > >>I have page352.html bookmarked.
                  > >>I click the page352.html bookmark.
                  > >>
                  > >>Did I leave the site?[/color]
                  > >
                  > >
                  > > If the http://<whatever> is the same, no. If different, yes.[/color]
                  >
                  > The browser has no way of knowing that. It only knows that you left
                  > *one* page, not how you left, just that the page is unloading. The one
                  > exception would be if you had onclicks in all your links to internal
                  > pages that set a variable, onunload you check that variable. Search the
                  > archives on how its done.
                  >
                  > But that still does not cover me leaving one page of your site to
                  > another page of your site via a favorites or by typing in the URL.
                  >
                  >[color=green][color=darkred]
                  > >>The answer is no but your script will fail to know that.
                  > >>
                  > >>
                  > >>>The survey in mind seeks to ask them directly what they liked or did[/color][/color][/color]
                  not[color=blue][color=green][color=darkred]
                  > >>>like about the site. I'm seeing more than a few users leaving the site[/color]
                  > >
                  > > from
                  > >[color=darkred]
                  > >>>its home page. I need to find out why so I can fix what they don't[/color][/color][/color]
                  like.[color=blue][color=green][color=darkred]
                  > >>
                  > >>Then put the link on the main page. As was pointed out, if the user
                  > >>wants to fill it out, they will. <sarcasm>If they don't, then popping up
                  > >>a survey page will surely entice them to.</sarcasm>[/color]
                  > >
                  > >
                  > > But this was a means to get them to let me know *as* they leave, not[/color][/color]
                  when[color=blue][color=green]
                  > > they're still at/just arrived at the site.[/color]
                  >
                  > Then put the link on all pages. But if people are going to fill it out,
                  > they will do so. Attempting to popup a survey to ask what you thought of
                  > a site is very anti-user oriented.
                  >
                  > But there is no way for you to definitively know where I am going when I
                  > leave one page of your site.
                  >
                  > --
                  > Randy
                  > comp.lang.javas cript FAQ - http://jibbering.com/faq[/color]


                  Comment

                  • Ross M. Greenberg

                    #24
                    Re: Site Unload?

                    Well, I stuck the survey in via a link

                    "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
                    news:Xns95C0669 47E801eejj99@19 4.109.133.29...[color=blue]
                    > Ross M. Greenberg wrote on 15 dec 2004 in comp.lang.javas cript:
                    >[color=green]
                    > > I thought an event was triggered when a web page is about to be
                    > > accessed -- aren't custom 404's generated locally for invalid URLs,
                    > > for example?
                    > >[/color]
                    >
                    > No, not if the domain is valid.
                    >
                    > --
                    > Evertjan.
                    > The Netherlands.
                    > (Please change the x'es to dots in my emailaddress)[/color]


                    Comment

                    • Evertjan.

                      #25
                      Re: Site Unload?

                      Ross M. Greenberg wrote on 15 dec 2004 in comp.lang.javas cript:

                      [color=blue]
                      > "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
                      > news:Xns95C0669 47E801eejj99@19 4.109.133.29...[color=green]
                      >> Ross M. Greenberg wrote on 15 dec 2004 in comp.lang.javas cript:
                      >>[color=darkred]
                      >> > I thought an event was triggered when a web page is about to be
                      >> > accessed -- aren't custom 404's generated locally for invalid URLs,
                      >> > for example?
                      >> >[/color]
                      >>
                      >> No, not if the domain is valid.[/color]
                      >
                      > Well, I stuck the survey in via a link[/color]

                      [please do not toppost on usenet]

                      I don't know what you mean by this.

                      Is your survey stuck in a link?

                      ;-}


                      --
                      Evertjan.
                      The Netherlands.
                      (Please change the x'es to dots in my emailaddress)

                      Comment

                      • Laurent Bugnion

                        #26
                        Re: Site Unload?

                        Hi,

                        Evertjan. wrote:
                        [color=blue]
                        > Ross M. Greenberg wrote on 14 dec 2004 in comp.lang.javas cript:
                        >
                        >[color=green]
                        >>I want to have an onUnload that runs only when the site is left, not when
                        >>the current page is unloaded. Any ideas?
                        >>[/color]
                        >
                        >
                        > "site is left" is not defined,
                        > [unless you have a button saying "I solemnly declare to leave the site"]
                        >
                        > With serverside ASP scripting you could do something ON THE SERVER when a
                        > session ends. This is not very reliable and has no effect on clientside.[/color]

                        To be precise, the Session_End event (or similar on other platforms) is
                        very reliable. It will be called when the Session ends, but the session
                        often ends on a timeout, typically 20 minutes in ASP.NET, unless the
                        user is nice enough to press a "Log Off" button (which allows to
                        terminate the session earlier). The Session_End event *has* to be called
                        or else the Server process will explode with unroomed resources.

                        And yes, it has no effect on the client at all.

                        Laurent
                        --
                        Laurent Bugnion, GalaSoft
                        Software engineering: http://www.galasoft-LB.ch
                        Private/Malaysia: http://mypage.bluewin.ch/lbugnion
                        Support children in Calcutta: http://www.calcutta-espoir.ch

                        Comment

                        • Evertjan.

                          #27
                          Re: Site Unload?

                          Laurent Bugnion wrote on 17 dec 2004 in comp.lang.javas cript:
                          [color=blue][color=green]
                          >> With serverside ASP scripting you could do something ON THE SERVER
                          >> when a session ends. This is not very reliable and has no effect on
                          >> clientside.[/color]
                          >
                          > To be precise, the Session_End event (or similar on other platforms)
                          > is very reliable. It will be called when the Session ends, but the
                          > session often ends on a timeout, typically 20 minutes in ASP.NET,[/color]

                          I was talking ASP, not ASP.NET
                          [color=blue]
                          > unless the user is nice enough to press a "Log Off" button (which
                          > allows to terminate the session earlier). The Session_End event *has*
                          > to be called or else the Server process will explode with unroomed
                          > resources.[/color]

                          Same, not in ASP classic.
                          [color=blue]
                          > And yes, it has no effect on the client at all.[/color]

                          Paradox: some clients gets mad, because of that lack of effect.

                          --
                          Evertjan.
                          The Netherlands.
                          (Please change the x'es to dots in my emailaddress)

                          Comment

                          • Laurent Bugnion

                            #28
                            Re: Site Unload?

                            Hi,

                            Evertjan. wrote:
                            [color=blue]
                            > Laurent Bugnion wrote on 17 dec 2004 in comp.lang.javas cript:
                            >
                            >[color=green][color=darkred]
                            >>>With serverside ASP scripting you could do something ON THE SERVER
                            >>>when a session ends. This is not very reliable and has no effect on
                            >>>clientside .[/color]
                            >>
                            >>To be precise, the Session_End event (or similar on other platforms)
                            >>is very reliable. It will be called when the Session ends, but the
                            >>session often ends on a timeout, typically 20 minutes in ASP.NET,[/color]
                            >
                            >
                            > I was talking ASP, not ASP.NET
                            >
                            >[color=green]
                            >>unless the user is nice enough to press a "Log Off" button (which
                            >>allows to terminate the session earlier). The Session_End event *has*
                            >>to be called or else the Server process will explode with unroomed
                            >>resources.[/color]
                            >
                            >
                            > Same, not in ASP classic.[/color]

                            That's surprising. I believe you, of course (I am much better in ASP.NET
                            than ASP), but I find the apparent lack of reliability of this critical
                            event a huge problem for ASP servers. How do you handle this?

                            Laurent
                            --
                            Laurent Bugnion, GalaSoft
                            Software engineering: http://www.galasoft-LB.ch
                            Private/Malaysia: http://mypage.bluewin.ch/lbugnion
                            Support children in Calcutta: http://www.calcutta-espoir.ch

                            Comment

                            • Evertjan.

                              #29
                              Re: Site Unload?

                              Laurent Bugnion wrote on 19 dec 2004 in comp.lang.javas cript:
                              [color=blue][color=green][color=darkred]
                              >>>unless the user is nice enough to press a "Log Off" button (which
                              >>>allows to terminate the session earlier). The Session_End event *has*
                              >>>to be called or else the Server process will explode with unroomed
                              >>>resources.[/color]
                              >>
                              >>
                              >> Same, not in ASP classic.[/color]
                              >
                              > That's surprising. I believe you, of course (I am much better in ASP.NET
                              > than ASP), but I find the apparent lack of reliability of this critical
                              > event a huge problem for ASP servers. How do you handle this?[/color]

                              Under ASP, server process will NOT explode.
                              [Resources are automaticly ended at the end of each page rendering.]

                              That should make ASP much more reliable than ASP.NET as you describe.

                              I suppose [I never even tasted it] the problem lies with ASP.NET.

                              --
                              Evertjan.
                              The Netherlands.
                              (Please change the x'es to dots in my emailaddress)

                              Comment

                              • Laurent Bugnion

                                #30
                                Re: Site Unload?

                                Hi,

                                Evertjan. wrote:[color=blue]
                                > Laurent Bugnion wrote on 19 dec 2004 in comp.lang.javas cript:
                                >
                                >[color=green][color=darkred]
                                >>>>unless the user is nice enough to press a "Log Off" button (which
                                >>>>allows to terminate the session earlier). The Session_End event *has*
                                >>>>to be called or else the Server process will explode with unroomed
                                >>>>resources .
                                >>>
                                >>>
                                >>>Same, not in ASP classic.[/color]
                                >>
                                >>That's surprising. I believe you, of course (I am much better in ASP.NET
                                >>than ASP), but I find the apparent lack of reliability of this critical
                                >>event a huge problem for ASP servers. How do you handle this?[/color]
                                >
                                >
                                > Under ASP, server process will NOT explode.
                                > [Resources are automaticly ended at the end of each page rendering.]
                                >
                                > That should make ASP much more reliable than ASP.NET as you describe.
                                >
                                > I suppose [I never even tasted it] the problem lies with ASP.NET.[/color]

                                OK, that's the case in ASP.NET too (each Page object is deleted at the
                                end of every call, and of course its members too), but you also have
                                Session objects, for example you will save there DB connections, file
                                contents, "global" variables, etc... IIRC, ASP also have the Application
                                and Session objects, doesn't it? So my question was, how do you know
                                when to room the resources saved in the Session object if you don't know
                                when the said session has timed out?

                                Sorry, for the more and more OT post, it just made me curious ;-)

                                Laurent
                                --
                                Laurent Bugnion, GalaSoft
                                Software engineering: http://www.galasoft-LB.ch
                                Private/Malaysia: http://mypage.bluewin.ch/lbugnion
                                Support children in Calcutta: http://www.calcutta-espoir.ch

                                Comment

                                Working...