Can a parent docoment call a function child window ! useing Frames

F

Frank H. Shaw

Can a parent document which is the web page the user is on display a child
window which is a form for the user to fill out I want to pass to the child
window text information from the parent window that called the child the text
is a item number description and price. Can this be done without using the
frameset document model. What I want to do is call a function in the child
window and pass the data to it. After reciveing the data the function will
place the data in the proper object in the form. WE ARE HAVING TROUBLE WITH
making the parent window call the function in the child window. Can you show
me a example of how this can be done. THANKS
 
S

Steve Easton

Frank,
You can pass the data to the child, and you can pass a function to the child, but the function has
to be called within the child

You would pass the data to the new window as a variable ( string ), and then have the function in
the child write the string to the element in the page.

That said, I've been sort of following what you're trying to do here, and I don't mean this to
dampen your enthusiasm, but you're heavily relying on javascript and to be honest, according to some
web statistics, 10 to 15% of people have javascript disabled in their browsers. For these people
your site won't function.

You may want to consider using a server side solution such as ASP to accomplish what you want.

If you need an ASP programmer, "in my humble opinion" Thomas Rowe, one of the MVP's is among the
best in the business. He's usually at the : microsoft.public.frontpage.client newsgroup



--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
F

Frank H. Shaw

Ok You can not call the function in a child window so when in the child
window after passing a string to the child what mechanism do you supose to
use to call the function? so the string can be processed. As far as the
browser java script being disabled will not real be a problem because the
user will just enter the information by hand.
 
S

Stefan B Rusynko

You will find the info on how to do it w/ JavaScript at http://irt.org/script/form.htm




| Ok You can not call the function in a child window so when in the child
| window after passing a string to the child what mechanism do you supose to
| use to call the function? so the string can be processed. As far as the
| browser java script being disabled will not real be a problem because the
| user will just enter the information by hand.
|
| "Steve Easton" wrote:
|
| > Frank,
| > You can pass the data to the child, and you can pass a function to the child, but the function has
| > to be called within the child
| >
| > You would pass the data to the new window as a variable ( string ), and then have the function in
| > the child write the string to the element in the page.
| >
| > That said, I've been sort of following what you're trying to do here, and I don't mean this to
| > dampen your enthusiasm, but you're heavily relying on javascript and to be honest, according to some
| > web statistics, 10 to 15% of people have javascript disabled in their browsers. For these people
| > your site won't function.
| >
| > You may want to consider using a server side solution such as ASP to accomplish what you want.
| >
| > If you need an ASP programmer, "in my humble opinion" Thomas Rowe, one of the MVP's is among the
| > best in the business. He's usually at the : microsoft.public.frontpage.client newsgroup
| >
| >
| >
| > --
| > Steve Easton
| > Microsoft MVP FrontPage
| > 95isalive
| > This site is best viewed............
| > ........................with a computer
| >
| > | > > Can a parent document which is the web page the user is on display a child
| > > window which is a form for the user to fill out I want to pass to the child
| > > window text information from the parent window that called the child the text
| > > is a item number description and price. Can this be done without using the
| > > frameset document model. What I want to do is call a function in the child
| > > window and pass the data to it. After reciveing the data the function will
| > > place the data in the proper object in the form. WE ARE HAVING TROUBLE WITH
| > > making the parent window call the function in the child window. Can you show
| > > me a example of how this can be done. THANKS
| >
| >
| >
 
S

Steve Easton

You use an onload event either in the opening body tag or in the script block in the page.

<body onload="function()">

window.onload = function;

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

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