- #1
prosteve037
- 110
- 3
Homework Statement
I'm required to make a page that has the following format:
Left Frame
- Items with prices and check boxes next to them
- An "Update Order" button at the bottom so the order details on the Right Frame can be updated.
Right Frame
- A "receipt" form with all the selected items from the Left Frame listed with their prices.
- The total price of the entire order.
However, I'm having trouble with having the Right Frame use the code on the Left Frame. I'm at a loss for how to have the Left Frame "send" the code and the data to the "Right Frame".
2. Relevant codes
If I'm not mistaken, I would need to have the "parent.---.---.value=" statement in there somewhere right?
That's about all I know however in terms of codes that are new to me.
I already know how to write the code as if it were all going to be on a single frame (which is precisely what I did so far), I just don't know how to do it for 2 separate frames :[
The Attempt at a Solution
I've written all of the JavaScript code down on the Left Frame (the frame with all the items on it) with the functions and variables all stated so the order details would be listed under "txtOrder".
But since "txtOrder" is on the Right Frame, the Left Frame can't find it and when the button is clicked, Internet Explorer says that " 'txtOrder' is null or not an object.' ".
On the Right Frame, the only code that's written is the following:
<html>
<body>
<center>
<form name="form2">
<textarea rows="30" cols="60" id="receiptText" name="receiptText"></textarea>
</form>
</center>
</body>
</html>
It's literally been days now of 4 hour nights and me stabbing my eyes to try and get this darn thing to work.
I hope this is all enough useful information for anybody who think they can help me with this. Help will greatly be appreciated.
Thanks for taking the time to read!