Results 1 to 8 of 8

Thread: OnFocus Event for Form Fields
      
   

  1. #1
    AmaDee is offline Colonel
    Join Date
    Jun 2006
    Location
    Stone Mountain, GA
    Posts
    851

    Default OnFocus Event for Form Fields

    Hello my fair Vodalians,

    I have a question in reference to this form http://www.designsbymapillar.com/form.html. As you can see, I have the names of the forms as the initial texts. I would like to know how to have those texts automatically erased when the filler clicks or tabs to each of the fields. I am aware that I have to have an OnFocus event set up, it's just that I've been toying with it for a while now with no success. Any help from any of you out there in Vadaland will be greatly appreciated.

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: OnFocus Event for Form Fields

    Click on the field that you want to have cleared when you place the mouse in. Select HTML, then click on "Inside Tag" and paste in the window to following code:

    onFocus="if(this.value!='')this.value='';"
    Please copy / paste the code from here, as what you see after the word "value" is NOT " but two ' .
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  3. #3
    AmaDee is offline Colonel
    Join Date
    Jun 2006
    Location
    Stone Mountain, GA
    Posts
    851

    Default Re: OnFocus Event for Form Fields

    thanks, Naval.

  4. #4
    AmaDee is offline Colonel
    Join Date
    Jun 2006
    Location
    Stone Mountain, GA
    Posts
    851

    Default Re: OnFocus Event for Form Fields

    I just did the changes and all but the first field works. I guess it's the tabbing enables the command?

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: OnFocus Event for Form Fields

    Please provide a link to the form
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  6. #6
    AmaDee is offline Colonel
    Join Date
    Jun 2006
    Location
    Stone Mountain, GA
    Posts
    851

    Default Re: OnFocus Event for Form Fields


  7. #7
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: OnFocus Event for Form Fields

    You already have another piece of javascript there (field "name") and they will not work both: onfocus="ShowObject('', 1);return false;"
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  8. #8
    AmaDee is offline Colonel
    Join Date
    Jun 2006
    Location
    Stone Mountain, GA
    Posts
    851

    Default Re: OnFocus Event for Form Fields

    So right. That's from when I was messing around with the new onFocus event thingymajig. It's working great now, thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49