need to make use of a DIV tag twice, but in different tables

H

Help !!

please can someone help me get the total cost figure where I want it.

the far right table is the hiddenprintpage, this is where I want the total
shown (TOTALCOST)
the total is in the top left table, this is the figure I want shown in the
hiddenprintpage, indicated by the (TOTALCOST)

I have tried to use the <div> method but can not seem to get it to work.

thanks for your help.
 
S

Stefan B Rusynko

1) You can't use the FP form handler to pass results to other windows (each frame/iframe is a window)
2) For passing form data to windows see http://irt.org/script/form.htm#10.3

PS
remove all spaces from all file/folder names - breaks your links and scripts




"Help !!" <.> wrote in message | www.roundshaw.co.uk/favor/customer
|
| "Help !!" <.> wrote in message
| | > please can someone help me get the total cost figure where I want it.
| >
| > the far right table is the hiddenprintpage, this is where I want the total
| > shown (TOTALCOST)
| > the total is in the top left table, this is the figure I want shown in the
| > hiddenprintpage, indicated by the (TOTALCOST)
| >
| > I have tried to use the <div> method but can not seem to get it to work.
| >
| > thanks for your help.
| >
| >
| >
| >
|
|
 
H

Help !!

I have a page called index.htm that has the tables and iframes and inline
pages.
I have a script that is called gettotal.js and is called from within two of
the iframes/ tables,
in the last inline page I am wanting to use the variable 'total' that was
set in this script (gettotal.js)

how can I do this?
 
K

Kevin Spencer

As long as the variable is declared outside of a function, it will be
available to the entire page and all scripts/functions n it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
H

Help !!

my variable is used inside the gettotal.js script that has been called
within one of the iframes, so it is inside a function. :-(

ok, how can i use the information in a form field in another .htm file which
is in one of the inline frames contained in the index.htm file.

i have the line

parent.totalcostcell.document.getElementById('theTotal').innerHTML =
adddecimal(ctotal/100);
which is in a function .js file this script also copies the value of the sum
that has been done to a table called totalcostcell, which is in one of the
tables within the index.htm file.
in one of the other tables in this index file i have an inline frame that
has the printorderpage.htm file, in this file the variable show print this
total value with the order made, but it does not work.

i can get it to have the total in the table in the top left hand box of the
index page but i can not get the total value to show when the table is
within another .htm file which is shown in the index table as a inline
frame.

this link shows you the page i am talking about.
www.roundshaw.co.uk/favor/customer
i am trying to get the total value to show where the '!!' are shown in the
far right side of the page.

thanks for your help.

Jason
 
K

Kevin Spencer

All JavaScript is inside a script. Not all JavaScript is inside a function.
And regardless, it can be moved outside a function if it is inside one.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
H

Help !!

have you looked at the page?

if not please take a look as this might help explain what i mean by the
inline frames and table.

or this might help..



i have a index.htm file with a table split into 3.

one table is called totalcostcell and has a <div id="theTotal"></div> in it
to show the total.

another table has an inline frame that is called orderpage. this contains
the file favororderpage.htm

and a third table also has an inline frame and is called printpage. this
conatins the file printorderpage.htm

the orderpage has pulldown menus that the customer selectes their order
from, when these are changed a call to a file called, gettotal.js (which is
in the same folder as the other .htm files i mention) is made, using
onchange=gettotal() method.

the gettotal.js function adds the order up and displays the total in the
form, and also displays the total cost in the totalcostcell using the div
method.

the printpage has the order that is being made.
it should display the total cost too, but does not. i have tried to use the
div method and tried the document.write(ctotal); and it wont work.

how do i get the total to display in the printpage?

thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top