I've been through Java, C, C++, and then XHTML. This website's boards are the best help on the web in my opinion. The people that helped me with C and C++ were the BEST. I am hoping there are some of you out there that know enough if JavaScript to help me here, too.
Now I am struggling with this class, it is an online...more like self taught...class and the text book is bad.
I have four coding assignments left, thank goodness. The one I am working on now is dealing with popup windows and cross-window communication. I have most of it written except for two things. The first is referencing user entered text from the original window in the popup window. The last is writing a line of text in the original window when the popup window is closed.
If anyone has any ideas I would appreciate the assistance:
This is 3a.htm (original window)
and this is 3b.htm (the popup window)Code:<html> <head> <script type='text/javascript'></script> </head> <body> <form> Name: <input type='text' name='name' /><br><br> Phone #: <input type='text' id='cPhone'/><br><br> Address: <input type='text' /><br><br> How Many Pizzas: <input type='text' id='pOrdered' /><br><br> <input type='button' onclick=window.open('3b.htm') value='Order'/> </form> </body> </html>
Thanks!Code:<html> <head> <script type='text/javascript'> var noPizza = document.getElementById('pOrdered'); var phoneNo = document.getElementById('cPhone'); </script> </head> <body> You have ordered [no of pizza.value here] pizza(s) <br> You will receive a call shortly at phone number [phone number value here] <br><br> <input type='button' onclick=window.close() value='Confirm Order' /> <input type='button' onclick=window.close() value='Cancel' /> </body> </html>
Cindy



LinkBack URL
About LinkBacks



