interaction within frame

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
can-inlife
Forum Newbie
Posts: 3
Joined: Wed Nov 26, 2008 9:36 am

interaction within frame

Post 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)
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: interaction within frame

Post 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. :)
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: interaction within frame

Post 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>
can-inlife
Forum Newbie
Posts: 3
Joined: Wed Nov 26, 2008 9:36 am

Re: interaction within frame

Post by can-inlife »

thanks, so much.

I succeed it :))

goood night everryboddy :)
can-inlife
Forum Newbie
Posts: 3
Joined: Wed Nov 26, 2008 9:36 am

Re: interaction within frame

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: interaction within frame

Post 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?
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: interaction within frame

Post 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.
Post Reply