Page 1 of 1
interaction within frame
Posted: Wed Nov 26, 2008 9:43 am
by can-inlife
hi,
ı have
2 frame in endex.php
frame1 : we write the "word"
and search it in database than give results to
frame2
---
so,like
http://www.lugatitturk.com/
word is above
answer is under..
how can I send the word to frame2 from frame1?
-------
thans for helping (I from Türkie)
Re: interaction within frame
Posted: Wed Nov 26, 2008 1:06 pm
by JAB Creations
You'll want to use
JavaScript and you'll likely refer to each frame as a
parent. This is a clientside related thread so if a mod would be so kind as to move it there the OP could get more applicable attention there.

Re: interaction within frame
Posted: Wed Nov 26, 2008 2:55 pm
by John Cartwright
You don't need javascript for this. You can specify the result frame name in the form's target attribute.
Code: Select all
<form action="search.php" action="POST" target="result_frame_name">
<iframe name="result_frame_name_here">
//results of form will appear here
</frame>
Re: interaction within frame
Posted: Wed Nov 26, 2008 4:32 pm
by can-inlife
thanks, so much.
I succeed it

)
goood night everryboddy 
Re: interaction within frame
Posted: Sun Nov 30, 2008 3:12 am
by can-inlife
before ı used the form and I send the data that I need
but evertime, I canT use form.. so Is there any method??
above a friend wrote something but I couldnt understand
//***** probem
I cant find the any way to do that
I have afew frame in index page.
how I can get interaction
example
How I can send any data, from a frame to another frame, in the index page (example:with a link)
//*****
thanks all
Re: interaction within frame
Posted: Fri Dec 05, 2008 1:46 pm
by John Cartwright
can-inlife wrote:before ı used the form and I send the data that I need
but evertime, I canT use form.. so Is there any method??
What do you mean? You cannot use the form?
Re: interaction within frame
Posted: Fri Dec 05, 2008 5:56 pm
by JAB Creations
From one frame to another requires JavaScript like I said before.
Otherwise if you're looking to give the other frame the data on the next page load then the first page's form would have PHP set a cookie, save it to a session, or to a MySQL table if the user is signed in. I'm pretty sure you want JavaScript but there isn't any greater detail here except for between two frames.