470,849 Members | 1,048 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

redirecting output to a selected window in a group of 2

hi all
here is my problem ...
i'm working on a network connection project
and for the application i use a multi-window system
one page for the search form
one page for displaying general informations
one page for displaying details informations

in one case, i can't determine where the result of the research must be
displayed
in the general of the details page. this depends on the result of the db
query.

so, i can't play with document.serachForm.target to route the output to a
particular page

is there a way for doing this after the form is posted ?
can i change the destination page in the php script called by the form
action ?

thanks a lot
a+
Didier Degey
Jul 17 '05 #1
2 1536
"Didier Degey" <dd****@ulg.ac.be> wrote in message
news:40**********************@news.skynet.be...
hi all
here is my problem ...
i'm working on a network connection project
and for the application i use a multi-window system
one page for the search form
one page for displaying general informations
one page for displaying details informations

in one case, i can't determine where the result of the research must be
displayed
in the general of the details page. this depends on the result of the db
query.

so, i can't play with document.serachForm.target to route the output to a
particular page

is there a way for doing this after the form is posted ?
can i change the destination page in the php script called by the form
action ?


Not really. What I would do is post into an invisible frame, then use
Javascript to write the content into the correct frame. Something like this
at the end of the output should work:

<script language="javascript">

<?=$frame?>.document.body.innerHTML = document.body.innerHTML;

</script>

Jul 17 '05 #2
well, you confirm what i was thinking, it's not directly possible from php.
thanks for u're solution.
i think i will make this little problem vanish. i'll will redirect the
output to the general window.
it will be faster than changing the actual framework . But i will test this
technic for my personnal knowledge ...

thanks again
Didier

"Chung Leong" <ch***********@hotmail.com> a écrit dans le message de
news:o5********************@comcast.com...
"Didier Degey" <dd****@ulg.ac.be> wrote in message
news:40**********************@news.skynet.be...
hi all
here is my problem ...
i'm working on a network connection project
and for the application i use a multi-window system
one page for the search form
one page for displaying general informations
one page for displaying details informations

in one case, i can't determine where the result of the research must be
displayed
in the general of the details page. this depends on the result of the db
query.

so, i can't play with document.serachForm.target to route the output to a particular page

is there a way for doing this after the form is posted ?
can i change the destination page in the php script called by the form
action ?
Not really. What I would do is post into an invisible frame, then use
Javascript to write the content into the correct frame. Something like

this at the end of the output should work:

<script language="javascript">

<?=$frame?>.document.body.innerHTML = document.body.innerHTML;

</script>

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by serge desmedt | last post: by
3 posts views Thread by Jorge Cecílio | last post: by
5 posts views Thread by vijaynats | last post: by
8 posts views Thread by Morpheus | last post: by
1 post views Thread by btysgtmajor | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.