Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi to everybody.
Suppose to have a HTML page with 2 column-frames:
[syntax="html"]
<FRAMESET cols="40%, 60%">
<FRAME src="left.html" id="frame_left" name="frame_left">
<FRAME src="right.html" id="frame_right" name="frame_right">
</NOFRAMES>
Code: Select all
<form name="form1" action="client_side_file.html"
enctype="multipart/form-data"
method="post"
onsubmit="return checkInput()"
TARGET="frame_right">
<textarea cols="40" rows="10" READONLY name="LOG_txtArea" WRAP=OFF></textarea>
Code: Select all
<HTML> <HEAD><SCRIPT type="text/javascript">
<!--
function log_in_left_frame (text) {
parent.frame_left.document.form1.LOG_txtArea.value += text;
}
// -->
</SCRIPT></HEAD><BODY>
<a href onClick="log_in_left_frame('blablabla')">click me</a>
</BODY></HTML>ALL WORKS FINE!
Now, where is my bug if I only :
1/2 : change action="client_side_file.html with action="http:.....php"
2/2 : make http:.....php code so that it returns from the server an exact copy of the file client_side_file.html
I would expect the same behaviour (while this way it doesn't work) ??????!!!!!!!
Why when the file is returned by PHP from the server there is no way to access the hierarchy context (e.g. right/left frame and their parent) ?
Is it really impossible ? Is there any trick to go round in another way ?
Thank you.
Weirdan | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]