Making default entry in search text box disappear on click

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jukka K. Korpela

    #16
    Re: Making default entry in search text box disappear on click

    Philip Ronan <invalid@invali d.invalid> wrote:
    [color=blue]
    > It mentions an "initial value" there, but I can't see the word
    > "default".[/color]

    Look for meanings, not words. The "initial value" is the value that is
    submitted along with other form data, unless the value is changed.
    The common way of expressing this fact is the phrase "default value".

    --
    Yucca, http://www.cs.tut.fi/~jkorpela/
    Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

    Comment

    • Philip Ronan

      #17
      Re: Making default entry in search text box disappear on click

      "Jukka K. Korpela" wrote:
      [color=blue]
      > Philip Ronan <invalid@invali d.invalid> wrote:
      >[color=green]
      >> It mentions an "initial value" there, but I can't see the word
      >> "default".[/color]
      >
      > Look for meanings, not words. The "initial value" is the value that is
      > submitted along with other form data, unless the value is changed.
      > The common way of expressing this fact is the phrase "default value".[/color]

      Meanings. OK then. In your last post you said that using "Search" as initial
      text is "... simply wrong because it's defined as default text". So where
      *is* this definition? Is it perhaps just a figment of your imagination? If
      so, then the meaning of your argument is basically "It's simply wrong
      because I say so."

      I daresay the word "Search" probably wouldn't be used as a search term very
      often. An empty string isn't a particularly useful search term either. But
      as I keep saying, in this case the initial text is there to identify the
      purpose of the search box, so it's serving a useful purpose.

      It's also perfectly useable, valid HTML. So why all the fuss?

      --
      phil [dot] ronan @ virgin [dot] net



      Comment

      • Philip Ronan

        #18
        Re: Making default entry in search text box disappear on click

        "Darin McGrew" wrote:
        [color=blue]
        > "Jukka K. Korpela" wrote:[color=green][color=darkred]
        >>> it is _not_ a label, but initial content.[/color][/color]
        >
        > Philip Ronan <invalid@invali d.invalid> wrote:[color=green]
        >> Yes, that's correct. In fact you might like to call it an inventive usage of
        >> initial content that eliminates the need for a label. I'm guessing you might
        >> not, however :-([/color]
        >
        > Rather than using "Search" as the initial content of the text field (and
        > then having to deal with the problems that creates), why not just use
        > "Search" as the label on the submit button? It's clear, it's expected, it's
        > simple, it works for everyone, and it has no unpleasant side effects.[/color]

        You can do that if you like.

        You can also omit the submit button altogether. The form can still be
        submitted without it. And without any unpleasant side-effects apart from
        getting roasted in this NG.

        --
        phil [dot] ronan @ virgin [dot] net



        Comment

        • Alan J. Flavell

          #19
          Re: Making default entry in search text box disappear on click

          On Wed, 6 Jul 2005, Philip Ronan wrote:

          [I'm reinstating the relevant context:]
          [color=blue]
          > Perhaps you're confusing "Javascript " with "Java"?[/color]
          [color=blue]
          > "Alan J. Flavell" wrote:
          >[color=green]
          > > You're very rude.[/color]
          >
          > I'm sorry you think that way. I'm not *trying* to be rude. I'm just trying
          > to understand your point of view. I'm still confused.
          >
          > You joined this thread by remarking that
          >[color=green]
          > > What's insecure is allowing an untrusted site to execute javascript on
          > > one's browser. The intended purpose is irrelevant for this. If you
          > > don't yet know this, then you aren't in a position to argue about it.[/color]
          >
          > Then you "clarified" your position by stating that
          >[color=green]
          > > I'm saying that the design should never
          > > *rely* on javascript being successfully executed. Using it to provide
          > > optional extra conveniences is perfectly fine.[/color]
          >
          > Those viewpoints just aren't consistent.[/color]

          The inconsistency is only in your own mind. If you'd been paying
          attention to any serious discussion on these principles, you wouldn't
          be making such a silly claim.
          [color=blue]
          > If you check back through this thread, I think you'll find that my
          > suggested solution to the OP's problem doesn't *rely* on the
          > availability of Javascript, because the initial text can easily be
          > deleted by other means.[/color]

          Then why are you raising this silly argument, if you already know that
          one should not *rely* on javascript being available, and think you can
          do it compatibly?

          I conclude that your answer to my point was essentially "yes, I agree
          with what you say, and if you read the detail of my earlier posting
          you'll see that I'm already doing it that way, although I omitted to
          say it in so many words".

          It remains then only to discuss whether there's any point in
          filling-in a default submission value, what that value could usefully
          be, and how inconvenient it might or might not be for users to delete
          it. But those detailed points are already being discussed by others
          and I don't care to get involved in them. It was the more basic
          principle that I felt I needed to dispute.

          (Benjamin Niemann has calmly posted a solution which is compatible
          with the principles which I'm promoting.)

          all the best

          Comment

          • Jukka K. Korpela

            #20
            Re: Making default entry in search text box disappear on click

            Philip Ronan <invalid@invali d.invalid> wrote:
            [color=blue]
            > Meanings. OK then. In your last post you said that using "Search"
            > as initial text is "... simply wrong because it's defined as
            > default text". So where *is* this definition?[/color]

            In the HTML specification, as I explained. Did you already forget to
            look for meanings, not words?

            --
            Yucca, http://www.cs.tut.fi/~jkorpela/
            Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

            Comment

            • Darin McGrew

              #21
              Re: Making default entry in search text box disappear on click

              Philip Ronan <invalid@invali d.invalid> wrote:[color=blue]
              > You can also omit the submit button altogether. The form can still be
              > submitted without it.[/color]

              Well, yes. And windows can still be scrolled even when the author removes
              the scrollbars.

              But it doesn't seem very user-friendly to remove the most obvious and most
              familiar mechanisms for submitting a form or scrolling a window.
              --
              Darin McGrew, mcgrew@stanford alumni.org, http://www.rahul.net/mcgrew/
              Web Design Group, darin@htmlhelp. com, http://www.HTMLHelp.com/

              "Cheaters never win; they just finish first." - Johhny Hart

              Comment

              • Philip Ronan

                #22
                Re: Making default entry in search text box disappear on click

                "Jukka K. Korpela" wrote:
                [color=blue]
                > Philip Ronan <invalid@invali d.invalid> wrote:
                >[color=green]
                >> Meanings. OK then. In your last post you said that using "Search"
                >> as initial text is "... simply wrong because it's defined as
                >> default text". So where *is* this definition?[/color]
                >
                > In the HTML specification, as I explained. Did you already forget to
                > look for meanings, not words?[/color]

                Then please take your own advice. Your argument has no basis other than a
                bogus assertion based on your own biased judgement.

                --
                phil [dot] ronan @ virgin [dot] net



                Comment

                • Philip Ronan

                  #23
                  Re: Making default entry in search text box disappear on click

                  "Alan J. Flavell" wrote:
                  [color=blue]
                  > The inconsistency is only in your own mind. If you'd been paying
                  > attention to any serious discussion on these principles, you wouldn't
                  > be making such a silly claim.[/color]

                  Alan, earlier today you responded to my suggestion about using Javascript to
                  clear the initial contents of a search box as follows:
                  [color=blue]
                  > What's insecure is allowing an untrusted site to execute javascript on
                  > one's browser. The intended purpose is irrelevant for this. If you
                  > don't yet know this, then you aren't in a position to argue about it.[/color]

                  If you can't see the inconsistency between that statement and your
                  subsequent assertion that using Javascript to provide "extra conveniences"
                  is "fine" then frankly there's not much point in me trying to continue a
                  logical discussion here.
                  [color=blue]
                  > Then why are you raising this silly argument, if you already know that
                  > one should not *rely* on javascript being available, and think you can
                  > do it compatibly?[/color]

                  Please look back through this thread and check who said what. All I did was
                  propose a solution to the OP's question. Since then I've been dodging
                  brickbats from you and Jukka. I'm not the one raising silly arguments.
                  [color=blue]
                  > It remains then only to discuss whether there's any point in
                  > filling-in a default submission value, what that value could usefully
                  > be, and how inconvenient it might or might not be for users to delete
                  > it.[/color]

                  In a nutshell, that's what this whole thread has been about.
                  [color=blue]
                  > But those detailed points are already being discussed by others
                  > and I don't care to get involved in them. It was the more basic
                  > principle that I felt I needed to dispute.[/color]

                  I see. So when you made your caustic remark about my suggestion to use
                  Javascript to clear the initial contents of a search box, you were *in fact*
                  making a general comment about the "basic principles" of Javascript? Perhaps
                  a better place for such comments would be in a thread where people are
                  discussing the basic principles of Javascript, and not its specific use as a
                  means of clearing the contents of a search box. Just to avoid confusion...

                  --
                  phil [dot] ronan @ virgin [dot] net



                  Comment

                  • Philip Ronan

                    #24
                    Re: Making default entry in search text box disappear on click

                    "Darin McGrew" wrote:
                    [color=blue]
                    > Philip Ronan <invalid@invali d.invalid> wrote:[color=green]
                    >> You can also omit the submit button altogether. The form can still be
                    >> submitted without it.[/color]
                    >
                    > Well, yes. And windows can still be scrolled even when the author removes
                    > the scrollbars.
                    >
                    > But it doesn't seem very user-friendly to remove the most obvious and most
                    > familiar mechanisms for submitting a form or scrolling a window.[/color]

                    Don't know about you, but I normally use the return key to submit
                    single-line forms.

                    Take a look at <http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.8>.
                    In the suggested replacement for the (deprecated) ISINDEX element, you'll
                    see a form with no submit button. There are no accessibility or
                    user-friendliness issues with this technique that I am aware of.

                    Incidentally, how do you scroll windows when there are no scroll bars?

                    --
                    phil [dot] ronan @ virgin [dot] net



                    Comment

                    • Darin McGrew

                      #25
                      Re: Making default entry in search text box disappear on click

                      Philip Ronan <invalid@invali d.invalid> wrote:[color=blue][color=green][color=darkred]
                      >>> You can also omit the submit button altogether. The form can still be
                      >>> submitted without it.[/color][/color][/color]

                      I wrote:[color=blue][color=green]
                      >> Well, yes. And windows can still be scrolled even when the author removes
                      >> the scrollbars.
                      >>
                      >> But it doesn't seem very user-friendly to remove the most obvious and most
                      >> familiar mechanisms for submitting a form or scrolling a window.[/color][/color]

                      Philip Ronan <invalid@invali d.invalid> wrote:[color=blue]
                      > Don't know about you, but I normally use the return key to submit
                      > single-line forms.[/color]

                      So do I. But I wouldn't try to hide the submit button from those who
                      normally use it.

                      I normally use shift-click and ctrl-shift-click to open links in new
                      windows. But I wouldn't try to hide the context menu from those who
                      normally use it.

                      I normally use ctrl-P to print web pages. But I wouldn't try to hide the
                      File > Print... menu from those who normally use it.

                      And so on.
                      [color=blue]
                      > Take a look at <http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.8>.
                      > In the suggested replacement for the (deprecated) ISINDEX element, you'll
                      > see a form with no submit button. There are no accessibility or
                      > user-friendliness issues with this technique that I am aware of.[/color]

                      The purpose of that example is to demonstrate a form that replicates the
                      deprecated ISINDEX element. If you add a submit button, then you've added
                      something beyond what ISINDEX provides, and the example is less clear.

                      Are there any other W3C example forms that omit the submit button?
                      [color=blue]
                      > Incidentally, how do you scroll windows when there are no scroll bars?[/color]

                      I generally use the keyboard (page up, page down, home, end, and arrows,
                      possibly modified by ctrl/shift). Mouse gestures work, too, for those so
                      inclined.
                      --
                      Darin McGrew, mcgrew@stanford alumni.org, http://www.rahul.net/mcgrew/
                      Web Design Group, darin@htmlhelp. com, http://www.HTMLHelp.com/

                      "When strong encryption is outlawed, only outlaws jvyy hfr fgebat rapelcgvba."

                      Comment

                      • Spartanicus

                        #26
                        Re: Making default entry in search text box disappear on click

                        Philip Ronan <invalid@invali d.invalid> wrote:
                        [color=blue]
                        >Don't know about you, but I normally use the return key to submit
                        >single-line forms.
                        >
                        >Take a look at <http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.8>.
                        >In the suggested replacement for the (deprecated) ISINDEX element, you'll
                        >see a form with no submit button. There are no accessibility or
                        >user-friendliness issues with this technique that I am aware of.[/color]

                        A user behaviour study [1] that I helped to set up and conduct clearly
                        showed that most users are lost when there is no submit button. Even
                        amongst computer literate under 35's the percentage was quite high.

                        [1] Internal company use only, results are not public.

                        --
                        Spartanicus

                        Comment

                        • Philip Ronan

                          #27
                          Re: Making default entry in search text box disappear on click

                          "Darin McGrew" wrote:
                          [color=blue][color=green]
                          >> Take a look at <http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.8>.
                          >> In the suggested replacement for the (deprecated) ISINDEX element, you'll
                          >> see a form with no submit button. There are no accessibility or
                          >> user-friendliness issues with this technique that I am aware of.[/color]
                          >
                          > The purpose of that example is to demonstrate a form that replicates the
                          > deprecated ISINDEX element.[/color]

                          Yes indeed it is.
                          [color=blue]
                          > If you add a submit button, then you've added
                          > something beyond what ISINDEX provides, and the example is less clear.[/color]

                          Pardon?

                          --
                          phil [dot] ronan @ virgin [dot] net



                          Comment

                          • Philip Ronan

                            #28
                            Re: Making default entry in search text box disappear on click

                            "Spartanicu s" wrote:
                            [color=blue]
                            > A user behaviour study [1] that I helped to set up and conduct clearly
                            > showed that most users are lost when there is no submit button. Even
                            > amongst computer literate under 35's the percentage was quite high.[/color]

                            Fair enough. But if we're talking about a search box that appears on every
                            page of a website I'm sure people will soon figure out what it's for. Did
                            the buttonless search box in your study have any initial content?

                            --
                            phil [dot] ronan @ virgin [dot] net



                            Comment

                            • Alan J. Flavell

                              #29
                              Re: Making default entry in search text box disappear on click

                              On Wed, 6 Jul 2005, Philip Ronan wrote:
                              [color=blue]
                              > "Alan J. Flavell" wrote:
                              >[color=green]
                              > > The inconsistency is only in your own mind. If you'd been paying
                              > > attention to any serious discussion on these principles, you wouldn't
                              > > be making such a silly claim.[/color]
                              >
                              > Alan, earlier today you responded to my suggestion about using Javascript to
                              > clear the initial contents of a search box as follows:
                              >[color=green]
                              > > What's insecure is allowing an untrusted site to execute javascript on
                              > > one's browser. The intended purpose is irrelevant for this. If you
                              > > don't yet know this, then you aren't in a position to argue about it.[/color]
                              >
                              > If you can't see the inconsistency between that statement and your
                              > subsequent assertion that using Javascript to provide "extra conveniences"
                              > is "fine"[/color]

                              I've already pointed you to resources which I'd say will confirm that
                              my advice is consistent with the general conclusions of informed
                              discussion here and in other relevant forums. If you're still
                              resistant to those then I see little point in arguing with you further
                              on a one to one basis.
                              [color=blue]
                              > then frankly there's not much point in me trying to continue a
                              > logical discussion here.[/color]

                              Indeed.

                              bye

                              Comment

                              • Darin McGrew

                                #30
                                Re: Making default entry in search text box disappear on click

                                Philip Ronan <invalid@invali d.invalid> wrote:[color=blue][color=green][color=darkred]
                                >>> Take a look at <http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.8>.
                                >>> In the suggested replacement for the (deprecated) ISINDEX element, you'll
                                >>> see a form with no submit button. There are no accessibility or
                                >>> user-friendliness issues with this technique that I am aware of.[/color][/color][/color]

                                I wrote:[color=blue][color=green]
                                >> The purpose of that example is to demonstrate a form that replicates the
                                >> deprecated ISINDEX element.[/color][/color]

                                Philip Ronan <invalid@invali d.invalid> wrote:[color=blue]
                                > Yes indeed it is.[/color]
                                [color=blue][color=green]
                                >> If you add a submit button, then you've added
                                >> something beyond what ISINDEX provides, and the example is less clear.[/color][/color]
                                [color=blue]
                                > Pardon?[/color]

                                The example in the HTML 4 spec is not--nor was it intended to be--a good
                                example of an HTML form. It was intended to be an example of an HTML form
                                that replicates the deprecated ISINDEX functionality. Since ISINDEX doesn't
                                generate a submit button, the example form has no submit button.

                                If the example had included a submit button, then it would have been a
                                better example of a good HTML form. However, it would have been a worse
                                example of a form that merely replicates the deprecated ISINDEX
                                functionality.

                                Other forms shown in the HTML 4 spec, which are intended to be good
                                examples of an HTML form, do include submit buttons.
                                --
                                Darin McGrew, mcgrew@stanford alumni.org, http://www.rahul.net/mcgrew/
                                Web Design Group, darin@htmlhelp. com, http://www.HTMLHelp.com/

                                "When strong encryption is outlawed, only outlaws jvyy hfr fgebat rapelcgvba."

                                Comment

                                Working...