Loading ...
Sorry, an error occurred while loading the content.

Re: [forms-dev] Content Indicative Empty Fields

Expand Messages
  • Manuel Lemos
    Hello, ... Use the ONFOCUS and ONBLUR event attributes. In the ONFOCUS, clear the input value. In the ONBLUR, restore the default text if the input value is
    Message 1 of 3 , Mar 20, 2006
    View Source
    • 0 Attachment
      Hello,

      on 03/20/2006 07:19 PM Shekar C. Reddy said the following:
      > Is there any way to always display an indicative value in empty fields
      > using the form_class? Such as the Search, Email and Password fields on
      > this page:
      >
      > http://www.theserverside.com
      >
      > The Search field displays 'search', Email field displays 'email' and
      > Password field displays '********' when they are empty. These
      > indicative values are emptied when the field gains focus, re-populated
      > with the indicative values on losing field focus with no value and
      > retain any keyed-in values. Further, these fields should NOT save the
      > indicative values if they are submitted empty. In other words, they
      > should populate the $_GET/$_POST arrays as empty values on submit if
      > they are submitted empty although they do have some indicative values.
      > Would you be able to help us with that? I'm sure there is a great
      > demand for this intelligent form behavior and is possible
      > to 'automate' it with our great form_class; something like:
      >
      > $input[ 'INDICATIVE_VALUE' ]
      >
      > I guess this is purely a JavaScript stuff.

      Use the ONFOCUS and ONBLUR event attributes. In the ONFOCUS, clear the
      input value. In the ONBLUR, restore the default text if the input value
      is empty.

      --

      Regards,
      Manuel Lemos

      Metastorage - Data object relational mapping layer generator
      http://www.metastorage.net/

      PHP Classes - Free ready to use OOP components written in PHP
      http://www.phpclasses.org/
    • Shekar C. Reddy
      Thanks, Manuel. I haven t tried this yet and shall let you know when I m done. ... fields ... fields on ... and ... populated ... and ... save the ... they ...
      Message 2 of 3 , Mar 24, 2006
      View Source
      • 0 Attachment
        Thanks, Manuel.

        I haven't tried this yet and shall let you know when I'm done.



        --- In forms-dev@yahoogroups.com, Manuel Lemos <mlemos@...> wrote:
        >
        > Hello,
        >
        > on 03/20/2006 07:19 PM Shekar C. Reddy said the following:
        > > Is there any way to always display an indicative value in empty
        fields
        > > using the form_class? Such as the Search, Email and Password
        fields on
        > > this page:
        > >
        > > http://www.theserverside.com
        > >
        > > The Search field displays 'search', Email field displays 'email'
        and
        > > Password field displays '********' when they are empty. These
        > > indicative values are emptied when the field gains focus, re-
        populated
        > > with the indicative values on losing field focus with no value
        and
        > > retain any keyed-in values. Further, these fields should NOT
        save the
        > > indicative values if they are submitted empty. In other words,
        they
        > > should populate the $_GET/$_POST arrays as empty values on
        submit if
        > > they are submitted empty although they do have some indicative
        values.
        > > Would you be able to help us with that? I'm sure there is a
        great
        > > demand for this intelligent form behavior and is possible
        > > to 'automate' it with our great form_class; something like:
        > >
        > > $input[ 'INDICATIVE_VALUE' ]
        > >
        > > I guess this is purely a JavaScript stuff.
        >
        > Use the ONFOCUS and ONBLUR event attributes. In the ONFOCUS, clear
        the
        > input value. In the ONBLUR, restore the default text if the input
        value
        > is empty.
        >
        > --
        >
        > Regards,
        > Manuel Lemos
        >
        > Metastorage - Data object relational mapping layer generator
        > http://www.metastorage.net/
        >
        > PHP Classes - Free ready to use OOP components written in PHP
        > http://www.phpclasses.org/
      Your message has been successfully submitted and would be delivered to recipients shortly.