Forms question

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

    Forms question

    Is there a way to disable the submit functionality built into a text
    box, or to redirect it into calling a javascript function without
    submitting?


    --
    --
    Fabian
    Visit my website often and for long periods!


  • Hywel Jenkins

    #2
    Re: Forms question

    In article <bns2k3$15hai1$ 1@ID-174912.news.uni-berlin.de>,
    lajzar@hotmail. com says...[color=blue]
    > Is there a way to disable the submit functionality built into a text
    > box, or to redirect it into calling a javascript function without
    > submitting?[/color]

    Text boxes don't have submit functionality. What are you trying to do?

    --
    Hywel I do not eat quiche


    Comment

    • kaeli

      #3
      Re: Forms question

      In article <bns2k3$15hai1$ 1@ID-174912.news.uni-berlin.de>,
      lajzar@hotmail. com enlightened us with...[color=blue]
      > Is there a way to disable the submit functionality built into a text
      > box, or to redirect it into calling a javascript function without
      > submitting?
      >
      >
      >[/color]

      If you mean you'd prefer the browser not do the default action of
      submitting a form when the enter key is pressed, you can capture the
      enter key and do something else. The code has been posted here several
      times. Check the archives (google has nice archives at
      http://groups.google.com).

      It's not recommended, though. It basically breaks what the user is used
      to - which can have implications with disabled people with special
      browsers, too. It also irritates the hell out of people who are used to
      their browsers doing something, then it doesn't. If this is for an
      intranet application, CD-ROM, or game, disregard that. :)


      -------------------------------------------------
      ~kaeli~
      Jesus saves, Allah protects, and Cthulhu
      thinks you'd make a nice sandwich.


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

      Comment

      • Fabian

        #4
        Re: Forms question

        kaeli hu kiteb:
        [color=blue]
        > In article <bns2k3$15hai1$ 1@ID-174912.news.uni-berlin.de>,
        > lajzar@hotmail. com enlightened us with...[color=green]
        >> Is there a way to disable the submit functionality built into a text
        >> box, or to redirect it into calling a javascript function without
        >> submitting?
        >>[/color]
        > If you mean you'd prefer the browser not do the default action of
        > submitting a form when the enter key is pressed, you can capture the
        > enter key and do something else. The code has been posted here several
        > times. Check the archives (google has nice archives at
        > http://groups.google.com).
        >
        > It's not recommended, though. It basically breaks what the user is
        > used to - which can have implications with disabled people with
        > special browsers, too. It also irritates the hell out of people who
        > are used to their browsers doing something, then it doesn't. If this
        > is for an intranet application, CD-ROM, or game, disregard that. :)[/color]

        Thanks. I found it in the archives. It isnt exactly for the above. It is
        more to demonstrate the functionality of one of my string manipulation
        functions. All is right with teh world now, or at least, my little
        corner of it.


        --
        --
        Fabian
        Visit my website often and for long periods!



        Comment

        Working...