Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.

<form action=google.ca name=zipform 
<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> 

<BR><input type=submit value="submit" name=zipok accesskey='c'></form><P><P> 
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
Reply With Quote
  #2 (permalink)  
Old July 6th, 2005, 01:09 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

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 Spaanjaars
Everyone is unique, except for me.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

All times are GMT -4. The time now is 01:18 PM.

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