Hello and HELP please;
I have been beating my head against the monitor fora month now trying to solve this problem. Please provide simple and detailed suggestions as I am new to JavaScript. Many of the examples I have seen expect you to know what something is/should be or use examples with different names of item/variables.
I need help getting a variable from the main code in an iframe form that calls another for when a zipcode is entered. Here is an example of what I am doing
page1.heml
<script>
var weight_pounds="2"
var weight_ounces="5" <!-- Only need this for USPS rates-->
</script>
<ifrome SRC="
http:\\www.test.com?p=weight_pounds&o=weight_ounces" "name=shipping calculator" frameborder="0">
page2.html (iframe code)
//How do I get the variables our of the URL above with the same variable name? I have code that gets them and puts them in an array but they are not the orignal name this way.//
form action="
http://www.ups.com/using/services/rave/qcosthtm.cgi" methode=post name="UPSrates" target="_blank" "> //this is a real site//
<input type="hidden" name="15_origPostal" value="32025"> <!-- value set here and does not change -->
<input type="hidden" name="24_value" value="100"> <!-- This value comes from URL (page1.html) HOW? -->
<input type="hidden" name="23_weight" value=""> <!-- This value comes from URL (page1.html) HOW? -->
<input type="text" name="19_destPostal" size="3" maxlength="5"> <!-- Enter zipcode and click RATES to get rate -->
<input type="image" value="Submit1" src="Rates.gif">
</form>
page3.html
this page is created by UPS and I hve no control of it.
Thank You Very Much!
Happy Holidays & Happy New Year
Start Free Trial