...

View Full Version : getting values from frames



ashleypower
03-04-2003, 07:59 PM
I have a hidden frame with 6 fields with values. I want to get these values from one frame to another, add the values from the 6 fields together, and show their total on the page.

HARD? haha

ashleypower
03-04-2003, 08:05 PM
Here's the hidden frame:

<HTML>
<BODY>

<FORM NAME = "values">

<INPUT TYPE = "text" SIZE = "3" NAME = "a" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "b" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "c" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "d" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "e" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "f" VALUE = 0>

</FORM>

<FORM NAME = "values2">

<INPUT TYPE = "text" SIZE = "3" NAME = "a" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "b" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "c" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "d" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "e" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "f" VALUE = 0>

</FORM>

<FORM NAME = "values3">

<INPUT TYPE = "text" SIZE = "3" NAME = "a" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "b" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "c" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "d" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "e" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "f" VALUE = 0>

</FORM>

<FORM NAME = "values4">

<INPUT TYPE = "text" SIZE = "3" NAME = "a" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "b" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "c" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "d" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "e" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "f" VALUE = 0>

</FORM>

<FORM NAME = "values5">

<INPUT TYPE = "text" SIZE = "3" NAME = "a" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "b" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "c" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "d" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "e" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "f" VALUE = 0>

</FORM>

<FORM NAME = "values6">

<INPUT TYPE = "text" SIZE = "3" NAME = "a" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "b" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "c" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "d" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "e" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "f" VALUE = 0>

</FORM>

<FORM NAME = "values7">

<INPUT TYPE = "text" SIZE = "3" NAME = "a" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "b" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "c" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "d" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "e" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "f" VALUE = 0>

</FORM>

<FORM NAME = "values8">

<INPUT TYPE = "text" SIZE = "3" NAME = "a" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "b" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "c" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "d" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "e" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "f" VALUE = 0>

</FORM>

<FORM NAME = "values9">

<INPUT TYPE = "text" SIZE = "3" NAME = "a" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "b" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "c" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "d" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "e" VALUE = 0>
<INPUT TYPE = "text" SIZE = "3" NAME = "f" VALUE = 0>

</FORM>
</BODY>

</HTML>

=========================================

i have nothing in the frame you see yet!

ashleypower
03-05-2003, 11:58 PM
Any suggestions anybody?

Jason
03-06-2003, 12:17 AM
here, I thought I recognized this idea from somewhere http://www.codingforums.com/showthread.php?s=&threadid=15623&highlight=frame
is a link to another thread that had a similar question, you might find something there.


Jason



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum