Topic awaiting preservation: Javascript help |
|
---|---|
Author | Thread |
Neurotic (0) Inmate Newly admitted From: |
posted 03-02-2005 19:57
Hi. I'm trying to use a drop down menu to choose a form which is hidden on page load. I can't make the forms visible once they are selected though. It keep trying to call an outter link. Yes I am new to javascript! |
Paranoid (IV) Inmate From: France |
posted 03-02-2005 20:10
Hello and welcome in the Asylum, |
Obsessive-Compulsive (I) Inmate From: |
posted 03-02-2005 20:33
Okay but please remember I am very new to this! Thanks for the welcome! |
Paranoid (IV) Mad Librarian From: Glienicke |
posted 03-02-2005 20:38
Hi Shay! Is this what you're looking for? |
Nervous Wreck (II) Inmate From: |
posted 03-02-2005 20:52
I'm trying it now. Will let you know! Thank you kuckus! |
Paranoid (IV) Mad Librarian From: Glienicke |
posted 03-02-2005 21:11
I just updated the page as there was a typo in my hideAll function - should be formNumber<=3 in the for loop. Sorry |
Nervous Wreck (II) Inmate From: |
posted 03-02-2005 21:20
Okay I changed the coding. The forms are visible at all times,which I want them to be only visible when called, and the menu does not call either form. Windows is telling me that line 19 is missing an object. It's kinda long but here is my code, do you see the problem? |
Paranoid (IV) Mad Librarian From: Glienicke |
posted 03-02-2005 21:41
Yup - to have the forms appear hidden (umm...?) when the page loads, you'll have to use some CSS similar to what I have in the form tags on my page (style="display: none;"). |
Nervous Wreck (II) Inmate From: Ny |
posted 03-02-2005 21:54
Hi kuckus. I changed the names to form1 and form2. What I meant by hidden is that I want it so that the forms don't show when the page loads. So that the only thing on the page is the drop down to select a form. Any ideas on that? |
Paranoid (IV) Inmate From: France |
posted 03-02-2005 22:02
quote: Use the CSS to set the visibility of your forms to "hidden", or the display property to "none". Then, the 2 functions of kuckus should work like a charm. |
Nervous Wreck (II) Inmate From: Ny |
posted 03-02-2005 22:20
Thanks that does work. One problem left..I need the drop down menu to show on the page, considering that how would I hide the 2 forms until they are called? My drop down menu is a form so the css is hiding it as well. |
Paranoid (IV) Mad Librarian From: Glienicke |
posted 03-02-2005 22:23
shay: For that you'll need the style="display: none;" attribute in your form tags, i.e. |
Nervous Wreck (II) Inmate From: Ny |
posted 03-02-2005 22:31
You guys are so great! Thanks for the help I so appreciate it. I will be using these forums for help more often! Thanks again! |