Results 1 to 9 of 9

Thread: Adding events - Hide Function
      
   

  1. #1
    jacobhebert's Avatar
    jacobhebert is offline Staff Sergeant
    Join Date
    Jan 2008
    Posts
    44

    Default Adding events - Hide Function

    I'm actually using this function for a form, but the idea is universal. I have my form set up so that the Submit button is hidden by clicking on something early on in the form, and then shown again once the terms and conditions checkbox is checked.

    My question is, how can I load the page with an element on that page already hidden so that I don't have to set an event to hide it. If anyone needs further explanation I can give you an example of the form I created. Thanks!

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Adding events - Hide Function

    It would depend on how the button is being hidden, but guess is it is just changing a css attribute

    Adding something to the button's html like

    style="display:none" will make it so it doesn't show on page load, but I can't say for sure if the function will properly make it appear

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  3. #3
    jacobhebert's Avatar
    jacobhebert is offline Staff Sergeant
    Join Date
    Jan 2008
    Posts
    44

    Default Re: Adding events - Hide Function

    That script did work to keep the button from being displayed on page load, but then it wasn't able to reappear based on the "show" event.

  4. #4
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Adding events - Hide Function

    Post the code (I assume javascript) you are using and I might be able to find a solution

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  5. #5
    gonosgon is offline Private
    Join Date
    Apr 2008
    Posts
    3

    Default Re: Adding events - Hide Function

    Hello,

    I have the same problem. I want some object to be shown when a button is pressed. Which means that I need this object to be hidden when the page is loaded. I tried the "style="display:none"" thing but the result is the same. The object is hidden but it doesn't reappear based on the "show" event.

    Could you please advice how to solve it?

    Thanks in advance

    gonosgon

  6. #6
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Adding events - Hide Function

    .. Post the link to the page or the javascript you are trying to use to display the object.

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  7. #7
    gonosgon is offline Private
    Join Date
    Apr 2008
    Posts
    3

    Default Re: Adding events - Hide Function

    Hi, thanks for your prompt reply.

    Here's the description of my problem:
    www.hodinka.sk/picture.jpg

    And here's the code:
    www.hodinka.sk/preview.html

  8. #8
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Adding events - Hide Function

    You don't have any javascript code to make it reveal or hide.

    I would suggest looking though the menu available at dynamicdrive
    http://dynamicdrive.com/dynamicindex1/index.html

    It will give you all of the code you need to it to work

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  9. #9
    gonosgon is offline Private
    Join Date
    Apr 2008
    Posts
    3

    Thumbs up Re: Adding events - Hide Function

    ok, I'll try. thanks a lot for your help.

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