help in detecting aol popup blocker

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dave yan

    help in detecting aol popup blocker

    hi,

    i have some forms which use javascript for data validation, e.g.,
    checking to make sure all required fields are completed, checking that
    data falls within valid ranges for certain fields, etc.

    if an error occurs, i'm sending the user a message via the alert
    window. the form is then not submitted until the errors are corrected.

    however, i've discovered that some users using the aol browser are
    able to submit the form without correcting all the errors. upon
    investigating further, i suspect that it has to do with the aol
    browser settings automatically blocking any popup windows.

    my question is: is there a way to detect if the user's browser agent
    has popup blocking enabled so that i can redirect the user to a
    different page with a message that their form will be submitted
    unvalidated?

    or if anyone has better ideas on how to handle this, i'd greatly
    appreciate any assistance.

    tia.


    -----
    -dy
  • HikksNotAtHome

    #2
    Re: help in detecting aol popup blocker

    In article <6qv1nvsu5lcs3h 84efm37u3cqdoug 4iq9m@4ax.com>, dave yan
    <jintsfanNODAMN ZPAM@pacbell.ne t> writes:
    [color=blue]
    >i have some forms which use javascript for data validation, e.g.,
    >checking to make sure all required fields are completed, checking that
    >data falls within valid ranges for certain fields, etc.
    >
    >if an error occurs, i'm sending the user a message via the alert
    >window. the form is then not submitted until the errors are corrected.[/color]

    An alert window, or an alert message? I assume you mean a popup window that
    alerts the user?
    [color=blue]
    >however, i've discovered that some users using the aol browser are
    >able to submit the form without correcting all the errors. upon
    >investigatin g further, i suspect that it has to do with the aol
    >browser settings automatically blocking any popup windows.[/color]

    Its not unique to AOL's popup blocker. Any popup blocker will cause your page
    to fail if you rely on popups.
    [color=blue]
    >my question is: is there a way to detect if the user's browser agent
    >has popup blocking enabled so that i can redirect the user to a
    >different page with a message that their form will be submitted
    >unvalidated?[/color]

    No. You can try to open a window, and then see if it exists. It won't tell you
    whether a popup blocker closed it or a fast optical mouse closed it. Only that
    it isn't open anymore.
    [color=blue]
    >or if anyone has better ideas on how to handle this, i'd greatly
    >appreciate any assistance.[/color]

    Sure. Anything but a popup. An alert, a confirm, even a hidden/visible div with
    a warning in it. Any of which would be more reliable than a popup window. (Yes,
    I use AOL's popup blocker).
    --
    Randy

    Comment

    • dave yan

      #3
      Re: help in detecting aol popup blocker

      On Wed, 24 Sep 2003 07:35:23 -0500, kaeli
      <infinite.possi bilities@NOSPAM att.net> wrote:
      [color=blue]
      >In article <6qv1nvsu5lcs3h 84efm37u3cqdoug 4iq9m@4ax.com>,
      >jintsfanNODAMN ZPAM@pacbell.ne t enlightened us with...[color=green]
      >>
      >> or if anyone has better ideas on how to handle this, i'd greatly
      >> appreciate any assistance.
      >>[/color]
      >
      >You should never rely on client-side scripting to validate data. It is a
      >convenience to the user to not have to get an error after the page is
      >submitted, saving them time and you bandwidth. However, your server-side
      >code should validate the exact same things the client-side code does.
      >This takes care of popup killers, browsers without script at all (or
      >turned off), and malicious users who might try to screw up your database
      >or back-end application on purpose.
      >[/color]

      i agree wholeheartedly, but the end-user has a bare minimum hosting
      package, so there's not much i can do on the server-side. i've been
      telling them to upgrade and they've been reluctant to do so.

      [color=blue]
      >That said, an alert will not set off a popup blocker.
      >[/color]

      i'm using a code snippet like this:

      msg += myfield.name;
      alert(msg);

      if (msg == null) return true;
      else return false;

      in the form, i use the onsubmit event handler:
      onsubmit="retur n checkform(this) ;"

      yet, users using the aol browser do not receive the alert message and
      the form is submitted with the data errors.
      [color=blue]
      >-------------------------------------------------
      >~kaeli~
      >All I ask for is the chance to prove that money
      >cannot make me happy.
      >http://www.ipwebdesign.net/wildAtHeart
      >http://www.ipwebdesign.net/kaelisSpace
      >-------------------------------------------------[/color]

      -----
      -dy

      Comment

      • dave yan

        #4
        Re: help in detecting aol popup blocker

        On 24 Sep 2003 02:46:15 GMT, hikksnotathome@ aol.com (HikksNotAtHome )
        wrote:
        [color=blue]
        >In article <6qv1nvsu5lcs3h 84efm37u3cqdoug 4iq9m@4ax.com>, dave yan
        ><jintsfanNODAM NZPAM@pacbell.n et> writes:
        >[color=green]
        >>i have some forms which use javascript for data validation, e.g.,
        >>checking to make sure all required fields are completed, checking that
        >>data falls within valid ranges for certain fields, etc.
        >>
        >>if an error occurs, i'm sending the user a message via the alert
        >>window. the form is then not submitted until the errors are corrected.[/color]
        >
        >An alert window, or an alert message? I assume you mean a popup window that
        >alerts the user?
        >[/color]

        i guess it would be alert message. i'm not sure if i'm using the right
        terminology. i'm using:

        alert(msg);

        with msg containing the names of the fields which contain errors or
        which are empty.

        [color=blue]
        > [snipped]
        >[color=green]
        >>or if anyone has better ideas on how to handle this, i'd greatly
        >>appreciate any assistance.[/color]
        >
        >Sure. Anything but a popup. An alert, a confirm, even a hidden/visible div with
        >a warning in it. Any of which would be more reliable than a popup window. (Yes,
        >I use AOL's popup blocker).[/color]

        i think i'm using an alert instead of a popup. there is an 'ok' button
        on the dialog box.

        -----
        -dy

        Comment

        • HikksNotAtHome

          #5
          Re: help in detecting aol popup blocker

          In article <5a74nvgj4rbif5 1iev6ojfaqpp708 srnbo@4ax.com>, dave yan
          <jintsfanNODAMN ZPAM@pacbell.ne t> writes:
          [color=blue][color=green]
          >>Sure. Anything but a popup. An alert, a confirm, even a hidden/visible div[/color]
          >with[color=green]
          >>a warning in it. Any of which would be more reliable than a popup window.[/color]
          >(Yes,[color=green]
          >>I use AOL's popup blocker).[/color]
          >
          >i think i'm using an alert instead of a popup. there is an 'ok' button
          >on the dialog box.[/color]

          Yes, thats an alert, not a popup window. If you will post a URL to the page in
          question, or a sample page that demonstrates the problem, I will be happy to
          test it using AOL's browser. I know of no reason why AOL would disallow the
          alert, I use them and get them when using the AOL browser.
          --
          Randy

          Comment

          • kaeli

            #6
            Re: help in detecting aol popup blocker

            In article <in64nv8e23r2sc 2vl3jqe8f8pk2qf s59ig@4ax.com>,
            jintsfanNODAMNZ PAM@pacbell.net enlightened us with...[color=blue]
            >
            > msg += myfield.name;
            > alert(msg);
            >
            > if (msg == null) return true;
            > else return false;
            >
            > in the form, i use the onsubmit event handler:
            > onsubmit="retur n checkform(this) ;"
            >[/color]

            Don't set false/true depending on the alert. AOL probably returns false
            on the object or someting silly. AOL, if anything, tends to be a silly
            browser that does unexpected things.
            Set your return value depending on if the values are valid.

            if (isValid(docume nt.myForm.myFie ld.value))
            {
            return true;
            }
            else
            {
            alert("problem" );
            return false;
            }

            -------------------------------------------------
            ~kaeli~
            All I ask for is the chance to prove that money
            cannot make me happy.


            -------------------------------------------------

            Comment

            • Markus Ernst

              #7
              Re: help in detecting aol popup blocker

              "HikksNotAtHome " <hikksnotathome @aol.com> schrieb im Newsbeitrag
              news:2003092419 3733.12501.0000 2660@mb-m04.aol.com...[color=blue]
              > In article <5a74nvgj4rbif5 1iev6ojfaqpp708 srnbo@4ax.com>, dave yan
              > <jintsfanNODAMN ZPAM@pacbell.ne t> writes:
              >[color=green][color=darkred]
              > >>Sure. Anything but a popup. An alert, a confirm, even a hidden/visible[/color][/color][/color]
              div[color=blue][color=green]
              > >with[color=darkred]
              > >>a warning in it. Any of which would be more reliable than a popup[/color][/color][/color]
              window.[color=blue][color=green]
              > >(Yes,[color=darkred]
              > >>I use AOL's popup blocker).[/color]
              > >
              > >i think i'm using an alert instead of a popup. there is an 'ok' button
              > >on the dialog box.[/color]
              >
              > Yes, thats an alert, not a popup window. If you will post a URL to the[/color]
              page in[color=blue]
              > question, or a sample page that demonstrates the problem, I will be happy[/color]
              to[color=blue]
              > test it using AOL's browser. I know of no reason why AOL would disallow[/color]
              the[color=blue]
              > alert, I use them and get them when using the AOL browser.
              > --
              > Randy[/color]

              Are you aware that everybody can submit your form without validation just by
              deactivating Javascript in the browser settings? If this is a problem you
              have to either server-side validate (which was suggested before and you say
              is not possible) or make sure not to provide the form to non-Javascript
              browsers (which you should only do if your target audience is very
              special-interest and has a high motivation to send the form, so they will
              enable Javascript for this purpose).

              You can do this by creating the form with Javascript (use the
              document.write( ) function) or by writing it into a hidden <div> which lays
              over a visible one that contains a message that Javascript must be enabled.
              Then you simply turn the hidden <div> visible with an onLoad event. If
              Javascript is disabled the user sees the message instead of the form. (Be
              aware that non-CSS browsers see both in this case...)

              HTH
              Markus


              Comment

              • Lasse Reichstein Nielsen

                #8
                Re: help in detecting aol popup blocker

                "Markus Ernst" <derernst@yahoo .com> writes:
                [color=blue]
                > Are you aware that everybody can submit your form without validation just by
                > deactivating Javascript in the browser settings? If this is a problem[/color]

                .... then tough luck. Nothing to do about it :)
                Server side validation is the only validation that cannot be avoided, and
                therefore the only validation that can be trusted.

                [Only give form to javascript enabled clients][color=blue]
                > You can do this by creating the form with Javascript (use the
                > document.write( ) function) or by writing it into a hidden <div> which lays
                > over a visible one that contains a message that Javascript must be enabled.[/color]

                It doesn't prevent the user from turning off Javascript after the page
                has been created/made visible, and it sure doesn't stop the from
                making their own form (or even sending a custom designed GET request
                to the server using telnet).

                /L
                --
                Lasse Reichstein Nielsen - lrn@hotpop.com
                Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
                'Faith without judgement merely degrades the spirit divine.'

                Comment

                • dave yan

                  #9
                  Re: help in detecting aol popup blocker

                  On 24 Sep 2003 23:37:33 GMT, hikksnotathome@ aol.com (HikksNotAtHome )
                  wrote:
                  [color=blue]
                  >In article <5a74nvgj4rbif5 1iev6ojfaqpp708 srnbo@4ax.com>, dave yan
                  ><jintsfanNODAM NZPAM@pacbell.n et> writes:
                  >[color=green][color=darkred]
                  >>>Sure. Anything but a popup. An alert, a confirm, even a hidden/visible div[/color]
                  >>with[color=darkred]
                  >>>a warning in it. Any of which would be more reliable than a popup window.[/color]
                  >>(Yes,[color=darkred]
                  >>>I use AOL's popup blocker).[/color]
                  >>
                  >>i think i'm using an alert instead of a popup. there is an 'ok' button
                  >>on the dialog box.[/color]
                  >
                  >Yes, thats an alert, not a popup window. If you will post a URL to the page in
                  >question, or a sample page that demonstrates the problem, I will be happy to
                  >test it using AOL's browser. I know of no reason why AOL would disallow the
                  >alert, I use them and get them when using the AOL browser.[/color]

                  thank you very much. again, any suggestions or comments are greatly
                  appreciated.



                  (sorry about the delayed response. i got caught up in something else
                  for a while.)

                  ----
                  -dy

                  Comment

                  • dave yan

                    #10
                    Re: help in detecting aol popup blocker

                    On Mon, 29 Sep 2003 15:11:39 +0200, "Markus Ernst"
                    <derernst@yahoo .com> wrote:
                    [color=blue]
                    >
                    >Are you aware that everybody can submit your form without validation just by
                    >deactivating Javascript in the browser settings? If this is a problem you
                    >have to either server-side validate (which was suggested before and you say
                    >is not possible) or make sure not to provide the form to non-Javascript
                    >browsers (which you should only do if your target audience is very
                    >special-interest and has a high motivation to send the form, so they will
                    >enable Javascript for this purpose).
                    >
                    >You can do this by creating the form with Javascript (use the
                    >document.write () function) or by writing it into a hidden <div> which lays
                    >over a visible one that contains a message that Javascript must be enabled.
                    >Then you simply turn the hidden <div> visible with an onLoad event. If
                    >Javascript is disabled the user sees the message instead of the form. (Be
                    >aware that non-CSS browsers see both in this case...)
                    >
                    >HTH
                    >Markus
                    >[/color]

                    thanks for the suggestion. right now, i have two pages with the form.
                    on the first page, there is a javascript page redirect. if the browser
                    is javascript-disabled, then the page is not redirected and the form
                    is does not have any scripting associated with any events. (also, no
                    placeholder data in the fields.)

                    if the browser is enabled, the page is redirected to the form with
                    javascript validation.

                    ----
                    -dy

                    Comment

                    • HikksNotAtHome

                      #11
                      Re: help in detecting aol popup blocker

                      In article <8hsonv8i77ehmd qrmulctcnkve0dp 58l95@4ax.com>, dave yan
                      <jintsfanNODAMN ZPAM@pacbell.ne t> writes:
                      [color=blue][color=green]
                      >>Yes, thats an alert, not a popup window. If you will post a URL to the page[/color]
                      >in[color=green]
                      >>question, or a sample page that demonstrates the problem, I will be happy to
                      >>test it using AOL's browser. I know of no reason why AOL would disallow the
                      >>alert, I use them and get them when using the AOL browser.[/color]
                      >
                      >thank you very much. again, any suggestions or comments are greatly
                      >appreciated.
                      >
                      >http://ctpberk.org/mentor/mentorapply-js.php[/color]

                      I scrolled all the way to the bottom and submitted the empty form (or rather
                      tried to) and got the alert. As long as a field was empty, I got the alert. So
                      its not AOL's popup blocker at fault.
                      --
                      Randy

                      Comment

                      • dave yan

                        #12
                        Re: help in detecting aol popup blocker

                        On 02 Oct 2003 22:30:47 GMT, hikksnotathome@ aol.com (HikksNotAtHome )
                        wrote:
                        [color=blue]
                        >In article <8hsonv8i77ehmd qrmulctcnkve0dp 58l95@4ax.com>, dave yan
                        ><jintsfanNODAM NZPAM@pacbell.n et> writes:
                        >[color=green][color=darkred]
                        >>>Yes, thats an alert, not a popup window. If you will post a URL to the page[/color]
                        >>in[color=darkred]
                        >>>question, or a sample page that demonstrates the problem, I will be happy to
                        >>>test it using AOL's browser. I know of no reason why AOL would disallow the
                        >>>alert, I use them and get them when using the AOL browser.[/color]
                        >>
                        >>thank you very much. again, any suggestions or comments are greatly
                        >>appreciated .
                        >>
                        >>http://ctpberk.org/mentor/mentorapply-js.php[/color]
                        >
                        >I scrolled all the way to the bottom and submitted the empty form (or rather
                        >tried to) and got the alert. As long as a field was empty, I got the alert. So
                        >its not AOL's popup blocker at fault.[/color]

                        thanks. could you tell me which version of aol you're using? also,
                        which platform?

                        back to the drawing board to figure out what the problem is...

                        ----
                        -dy

                        Comment

                        • HikksNotAtHome

                          #13
                          Re: help in detecting aol popup blocker

                          In article <40eeovc4mmpeit hs55b6872lhlfpa pbdv8@4ax.com>, dave yan
                          <jintsfanNODAMN ZPAM@pacbell.ne t> writes:

                          <snip>
                          [color=blue][color=green]
                          >>I scrolled all the way to the bottom and submitted the empty form (or rather
                          >>tried to) and got the alert. As long as a field was empty, I got the alert.[/color]
                          >So[color=green]
                          >>its not AOL's popup blocker at fault.[/color]
                          >
                          >thanks. could you tell me which version of aol you're using? also,
                          >which platform?
                          >
                          >back to the drawing board to figure out what the problem is...[/color]

                          The only 2 versions that have the popup blocker are 8.0 and 9.0, I tested it in
                          AOL8.0 on Win ME.

                          Can you find out what version AOL and what OS the person is using that has
                          trouble with it? I can come closer to trying to find out why knowing that than
                          you trying to guess at it. If for no other reason than I have access to AOL
                          itself to find out.
                          --
                          Randy

                          Comment

                          • dave yan

                            #14
                            Re: help in detecting aol popup blocker

                            On 11 Oct 2003 00:21:13 GMT, hikksnotathome@ aol.com (HikksNotAtHome )
                            wrote:
                            [color=blue]
                            >In article <40eeovc4mmpeit hs55b6872lhlfpa pbdv8@4ax.com>, dave yan
                            ><jintsfanNODAM NZPAM@pacbell.n et> writes:
                            >[color=green]
                            >>
                            >>thanks. could you tell me which version of aol you're using? also,
                            >>which platform?
                            >>
                            >>back to the drawing board to figure out what the problem is...[/color]
                            >
                            >The only 2 versions that have the popup blocker are 8.0 and 9.0, I tested it in
                            >AOL8.0 on Win ME.
                            >
                            >Can you find out what version AOL and what OS the person is using that has
                            >trouble with it? I can come closer to trying to find out why knowing that than
                            >you trying to guess at it. If for no other reason than I have access to AOL
                            >itself to find out.[/color]

                            thanks. he's using aol 8.0 on win98. i haven't been able to get any
                            information from one of his testers who was experiencing the same
                            behavior using an aol browser.

                            ----
                            -dy

                            Comment

                            Working...