How can I set a hidden form variable and then submit?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jimijon
Beginner
Beginner
Posts: 8
Joined: Fri Apr 09, 2004 1:52 am
Contact:

How can I set a hidden form variable and then submit?

Post by jimijon »

I have been trying all day trying to figure out how to set a hidden form variable and then submit the form from the menu item.

I have searched the forum but have found nothing? Please help.

-Jimijon

url://www.jimijon.com:2005
maxwell/smart goto projects and then look at the first quadrant.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

http://milonic.com/forum/viewtopic.php?t=3867 and http://milonic.com/forum/viewtopic.php?t=3876 Are two topics I remember reading to do with forms and making them work from the menu, not sure about a hidden variable, though I'm sure someplace it said something about such and such hidden. Don't know if they will help.

Ruth
jimijon
Beginner
Beginner
Posts: 8
Joined: Fri Apr 09, 2004 1:52 am
Contact:

I need the form the menu is nested in.

Post by jimijon »

I have looked at similar postings... however, I need to find the form that the menu is nested within. I will have this menu on various parts of my page so I need to post the specific form. I was trying to use this.form and pass it to a javascript routine.. but it doesn't seem to now anything about it as this.form is undefined.

Does this make sense?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Ok, I think I understand, but defining variables as to the forms and creating a function so that the this.form would know which form it was referencing is beyond anything I know how to do. Hopefully someone can help you. The board is kind of slow on weekends. Just out of curiosity, since i can't see your page layout, are you putting the full menu with each form, binding it to a table cell or something and making it always visible at each place? If that's the case there might be another way to do what you want.

Ruth
jimijon
Beginner
Beginner
Posts: 8
Joined: Fri Apr 09, 2004 1:52 am
Contact:

form again

Post by jimijon »

Hello -

I have followed the instructions, the mac version, to have my drop down menu... so the menu items are created in the top of the page and the drop down itself is in the page. Just like the instructions. Since I might have one, two or even four areas where the menu is shown, I just want to use the form that it is located in. Then when they select an item I refresh the screen with just that quadrant changed based upon the menu selection.

-James
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Ok, since you have a menu appearing in one, two or more areas and it's a submenu, you could create one submenu for each form. That way, you position the particular one that goes with a particular form and since it is its own menu with all the info based on that form, it would submit that information.

Ruth
Post Reply