Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 5th, 2005, 05:52 PM
Registered User
 
Join Date: Jul 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need some help

Here's the situation.

I need some help with Javascript. Basically I need it that when the person selects a state or zip code they will get the $ shipping charge.

Here is my current code.
Code:





<form action=google.ca name=zipform 
target=_blank> 
<input type=hidden name=OZ value="l3j8s1"> 

<b > <BR>Shipping Calculator</b><P><P><P></h1><b>Weight in POUNDS:</b> 12 
<br><br><input type=hidden name=LP value=package><input type=hidden name=Char value=4><input type=hidden name=OV value=off><input type=hidden name=BL value=off><input type=hidden name=Dir value=forward><input type=hidden name=retspec value=no><b>Buyers' ZIP CODE(If you are in Canada):</b><input type=text name=DZ tabindex='2' size=6 maxlength=6> <br>OR<bR><b>Buyers State if in US: </b><select name="us_states" size="1"><option value="AL">None</option> 
<option value="AL">AL Alabama</option> 
<option value="AK">AK Alaska</option> 
<option value="AZ">AZ Arizona</option> 
<option value="AR">AR Arkansas</option> 
<option value="CA">CA California</option> 
<option value="CO">CO Colorado</option> 
<option value="CT">CT Connecticut</option> 
<option value="DE">DE Delaware</option> 
<option value="DC">DC District of Columbia</option> 
<option value="FL">FL Florida</option> 
<option value="GA">GA Georgia</option> 
<option value="HI">HI Hawaii</option> 
<option value="ID">ID Idaho</option> 
<option value="IL">IL Illinois</option> 
<option value="IN">IN Indiana</option> 
<option value="IA">IA Iowa</option> 
<option value="KS">KS Kansas</option> 
<option value="KY">KY Kentucky</option> 
<option value="LA">LA Louisiana</option> 
<option value="ME">ME Maine</option> 
<option value="MD">MD Maryland</option> 
<option value="MA">MA Massachusetts</option> 
<option value="MI">MI Michigan</option> 
<option value="MN">MN Minnesota</option> 
<option value="MS">MS Mississippi</option> 
<option value="MO">MO Missouri</option> 
<option value="MT">MT Montana</option> 
<option value="NE">NE Nebraska</option> 
<option value="NV">NV Nevada</option> 
<option value="NH">NH New Hampshire</option> 
<option value="NJ">NJ New Jersey</option> 
<option value="NM">NM New Mexico</option> 
<option value="NY">NY New York</option> 
<option value="NC">NC North Carolina</option> 
<option value="ND">ND North Dakota</option> 
<option value="OH">OH Ohio</option> 
<option value="OK">OK Oklahoma</option> 
<option value="OR">OR Oregon</option> 
<option value="PA">PA Pennsylvania</option> 
<option value="RI">RI Rhode Island</option> 
<option value="SC">SC South Carolina</option> 
<option value="SD">SD South Dakota</option> 
<option value="TN">TN Tennessee</option> 
<option value="TX">TX Texas</option> 
<option value="UT">UT Utah</option> 
<option value="VT">VT Vermont</option> 
<option value="VA">VA Virginia</option> 
<option value="WA">WA Washington</option> 
<option value="WV">WV West Virginia</option> 
<option value="WI">WI Wisconsin</option> 
<option value="WY">WY Wyoming</option> 
</select> 

<BR><input type=submit value="submit" name=zipok accesskey='c'></form><P><P> 
<br>
<br>
<br>
Only needs CA, ND, SD, NE, KS, OK, TX, OR, NV, AZ, MT, ID, WY, UT, CO, NM, WA, MN, IA, MO, AR ,LA , MS, AL, GA, FL, WI, IN, KY, TN, NC, SC, ME, NH , MA, RI, CT, PA, WV, VT, DE, MD, NJ, VA, MI, OH,IT, DC, NY
 
Old July 6th, 2005, 01:09 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What do you base the shipping charge on? All I see is a list with states, but no way to determine the charges per state....

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.








Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.