Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:57
Milonic and FORMS question
Poster: Doug
Dated: Wednesday August 16 2006 - 16:36:20 BST
I have a shopping cart based web site, that uses http://www.cartmanager.net product.
I have buttons on my left frame of my existing production web site so my customers can press them to "login" or "checkout".
I thought it would be slick to go ahead and implement those as part of my milonic menu, but I am not sure if this can be done.
Here is the existing code for hard buttons:
<!--<table border="0">
<tr>
<td>
<form method=POST action="https://www.cartmanager.net/cgi-bin/cart.cgi">
<input type=hidden name="UserLogin" value="catcable"><input type=hidden name="CartID" value="catcable">
<input type=hidden name="CheckOut" value="Online">
<input type=image src="http://www.catcables.com/images/buttons/login.jpg" border="0">
</form>
</td>
<td>
<form action="http://www.cartmanager.net/cgi-bin/cart.cgi" method="post">
<input type="hidden" name="UserLogin" value="catcable">
<input type="hidden" name="CartID" value="catcable">
<input type="hidden" name="CheckOut" value="Online">
<input type="image" src="http://www.catcables.com/images/buttons/checkout.jpg" border="0">
</form>
</td>
</tr>
</table> --> (in case HTML is active here:)
At present, my milonic menu is doing the closest thing to what I had as it could be. In other words, display a web page with 2 temporary buttons to click for above code.
I would rather have
Customer Activities:
SUBITEM LOGIN
SUBITEM checkout
clicking my milonic tab would then activate the correct portion of code above.
I hope this makes sense.
My old and currently active production site is
http://www.catcables.com
My current menu for my production system is in test mode at:
http://www.katkables.com
As an aside, you guys like my color combinations of my menu?
thanks!
Doug
Poster: John
Dated: Wednesday August 16 2006 - 19:48:02 BST
You'll find that the Search option is usually pretty helpful around here...
Try this post for some tips.
Poster: Ruth
Dated: Wednesday August 16 2006 - 20:52:34 BST
Hi,
I like your menu color, very stylish. Since we are talking colors, why not make your greys have a blue base to the color? Not that the blue will show. Try using something like #a9acb1 in place of the #adaaaa in the top table of the body, and sustituting #d3d3d6 for #d5d5d5 in the lighter grey table.
Ruth
thanks
Poster: Doug
Dated: Wednesday August 16 2006 - 21:01:56 BST
thanks John, looks right up the alley!
Doug (wiping egg from face)
Poster: Doug
Dated: Wednesday August 16 2006 - 21:05:17 BST
Glad you like my menu colors.
Thanks for the tip Ruth, I'll take a look at that!
I am not a pro developer, just an ole' mainframe programmer out of his element. I'm actually more in my element in design and photography, all my photos will be reshot with pro grade gear soon.
Anyway, thanks for the tip, I will take a look!
Doug
Poster: Doug
Dated: Thursday August 17 2006 - 14:22:13 BST
Ruth, I implemented the colors on the main page, it looks good, I'll have to say. I'll implement on my product pages as well very soon. thank you.
John, I still can't get my scripting working for login and checkout functions on the melonic menu. I've asked for a review from a scripting expert. But as yet he has been unable to review. I tried everything last night, and nothing would work. My menu would not show up at all when I tested all the various iterations of what I thought it should be.
thanks.
Poster: John
Dated: Thursday August 17 2006 - 23:43:01 BST
Well, you didn't exactly follow the post I sent you to! You have...
Code:
aI("text=login;url=<form name="loginform" id="loginform" method="POST" target="body" action="https://www.cartmanager.net/cgi-bin/cart.cgi">
<input type=hidden name="UserLogin" value="catcable"><input type=hidden name="CartID" value="catcable">
<input type=hidden name="CheckOut" value="Online"></form>;type=form
<input type=hidden name="UserLogin" value="catcable"><input type=hidden name="CartID" value="catcable">
<input type=hidden name="CheckOut" value="Online"></form>;type=form
On quick look, try...
Code:
aI("text=<form name=loginform id=loginform method=POST target=body action=https://www.cartmanager.net/cgi-bin/cart.cgi><input type=hidden name=UserLogin value=catcable><input type=hidden name=CartID value=catcable><input type=hidden name=CheckOut value=Online></form>;type=form;");
Poster: Doug
Dated: Friday August 18 2006 - 12:13:36 BST
Well John, I tried at first to have it as much like that as possible, but it wasn't working, so my trial and error attempts drifted all over the place. lol.
i'll gladly try. My expert had me try something different last night, but it wasn't working either. So, this try is next!
Ok, I tried it, and one problem right off, as coded, there is no text for the menu item. Ai code without a "text description" won't show up on menu for me as listed.
I tried it as both a part of the side main menu, as well as in my body as a "sub" item. neither way worked. Both methods had the initial problem of no text description. I tried adding login; just after = sign, and before <form, but that didn't work.
thanks John.
Doug
Poster: Doug
Dated: Friday August 18 2006 - 17:00:06 BST
well, we now have a method working, you can evaluate if you like.
http://www.katkables.com last menu option.
thanks
Doug
Poster: Ruth
Dated: Saturday August 19 2006 - 5:52:26 BST
Hi Doug,
It works That's the most important thing for now, but i know there's a way to make it part of the menu, that is, you'd have the item as you have it now, but when you moused over the Login/Checkout you'd get a submenu with the form in it, just like you get the search option on the Milonic site.
Unfortunately, I don't know how to make it show up. So, hopefully John or Andy can help.
Ruth
Poster: Ruth
Dated: Saturday August 19 2006 - 6:06:14 BST
Hmm, I found this. Maybe you forgot the table which I see in most of these forms.
Code:
aI("text=<form name='login' action='#' method='get'><table border='0' width=100 class='login'><tr><td><input type='hidden' value='login' name='formuse'><br><br><br>username:<br><input name='username' type='text' size='12' maxlength='32'></td></tr><tr><td>password:<br><input name='password' type='password' size='8' maxlength='8'> <input type='image' src='/i/go-login.gif' value='submit' ></td></tr><tr><td><a href='javascript:trak(\"/login.shtml\")' class='login'>Forgot Password?</a></td></tr><tr><td><br><a href='javascript:trak(\"/register.shtml\")' class='login'>New Brokers,<br>register here</a></td></tr></table></form>;type=form;");
Hopefully this will help give you some ideas. This is a submenu that opens from a main menu item.
Ruth
Poster: Doug
Dated: Monday August 21 2006 - 12:05:32 BST
I am pretty bad with this stuff I think Ruth, but thanks for the tip for sure. I will likely be content to get something working for now, then maybe enhance it later. But I'll look at it after I've had some coffee today.
What I really wanted to do was have it be active off the main menu, you know, a main button "login", and they don't even go to sub item, and go right to the login panel. doh well.
thanks,
Doug