Form select Data to HTML Template

Reply

Join Date: May 2009
Posts: 10
Reputation: cooterbrown is an unknown quantity at this point 
Solved Threads: 0
cooterbrown cooterbrown is offline Offline
Newbie Poster

Form select Data to HTML Template

 
0
  #1
Aug 29th, 2009
Hi,

I have a calculating order form, which is at
http://www.bcdcoatings.com/orderform.htm which I partially inherited.

The problem is that the second drop down "select item" was added, and is not part of the calculation, in order to get needed information to an html template for emailing the order information.


Right now it is possible to have the "widget" choice be the wrong one (not corresponding with the select size choice,) in that you could have a "widget1" show up at the price of a "widget2" which is not good.


Is there a way to report two values, or another value of information from the 3rd drop down? This would eliminate the need for the second.

OR how do I require the second drop down "select item" selection is made, and it corresponds to the proper selection in the third "select size."

All of the lines can not be required though, as the user may not be ordering more than one item.

Obviously I'm not a programmer, I am actually a hardware/network tech. This is in my lap to deal with though.

Any help is appreciated.
Thanks
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 9
Reputation: Daiva is an unknown quantity at this point 
Solved Threads: 2
Daiva Daiva is offline Offline
Newbie Poster

Re: Form select Data to HTML Template

 
0
  #2
Aug 30th, 2009
You are using JavaScript to do your calculations, so I guess you should try JavaScript/DHTML/AJAX section for a help.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,331
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 162
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: Form select Data to HTML Template

 
0
  #3
Aug 30th, 2009
The added <select> has no part in the calculation, its values are all text, so the code where changing the text <select> chanes recalculates the form is not enough
changing the text select item is supposed to change the price values in the size <select> there needs to be another javascript to do so
something like
  1. <TD style="height: 28px; width: 120px;">
  2. <SELECT onChange="populate("price2");calculate();" name="item2" style="width: 133px">
  3. <OPTION value="widget1">widget 1
  4. <OPTION value="widget2">widget 2
  5. <!--snip-->
  6. </SELECT></TD>
where populate() is a javascript that populates the <select><option>s named
this link goes to one available for download, might give you an insight into the code you require
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 10
Reputation: cooterbrown is an unknown quantity at this point 
Solved Threads: 0
cooterbrown cooterbrown is offline Offline
Newbie Poster

Re: Form select Data to HTML Template

 
0
  #4
Aug 30th, 2009
Originally Posted by Daiva View Post
You are using JavaScript to do your calculations, so I guess you should try JavaScript/DHTML/AJAX section for a help.
Thanks Daiva for your reply. I simply do not know where the solution is, so I posted it here hoping for a clue.

Thanks again.
Cooter
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 10
Reputation: cooterbrown is an unknown quantity at this point 
Solved Threads: 0
cooterbrown cooterbrown is offline Offline
Newbie Poster

Re: Form select Data to HTML Template

 
0
  #5
Aug 30th, 2009
Originally Posted by almostbob View Post
The added <select> has no part in the calculation, its values are all text, so the code where changing the text <select> chanes recalculates the form is not enough
changing the text select item is supposed to change the price values in the size <select> there needs to be another javascript to do so
something like
  1. <TD style="height: 28px; width: 120px;">
  2. <SELECT onChange="populate("price2");calculate();" name="item2" style="width: 133px">
  3. <OPTION value="widget1">widget 1
  4. <OPTION value="widget2">widget 2
  5. <!--snip-->
  6. </SELECT></TD>
where populate() is a javascript that populates the <select><option>s named
this link goes to one available for download, might give you an insight into the code you require
Thank you almostbob, I greatly appreciate the nudge in the right direction. I'll work on this and post back. Now I'm becoming interested in programming...<chuckle>.

Cooter
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 10
Reputation: cooterbrown is an unknown quantity at this point 
Solved Threads: 0
cooterbrown cooterbrown is offline Offline
Newbie Poster

Re: Form select Data to HTML Template

 
0
  #6
Sep 2nd, 2009
almostbob...
No progress yet, but I am taking an online javascript course. At least I see what you mean by "something like" your example.. Javascript is very versatile and flexible.
Thanks again.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC