HTML, CSS and anything else that deals with client side capabilities.
Moderator: General Moderators
killbaz
Forum Newbie
Posts: 12 Joined: Mon Feb 02, 2009 4:44 pm
Post
by killbaz » Wed Feb 04, 2009 3:39 pm
Hello to all...
I have like 4 iframe's . How can i make a form to know the inputs from those iframes?
i have something like this:
Code: Select all
<form id="creeaza" name="creeaza" method="post" action="creeaza_tot.php">
<iframe src="creeaza_baza1.php" width="510" height="330" scrolling="No" frameborder="0" ></iframe>
<iframe src="creeaza_baza2.php" width="510" height="330" scrolling="No" frameborder="0" ></iframe>
<iframe src="creeaza_baza3.php" width="510" height="330" scrolling="No" frameborder="0" ></iframe>
<iframe src="creeaza_baza4.php" width="510" height="330" scrolling="No" frameborder="0" ></iframe>
<input name="creeaza_submit2" type="reset" class="creeaza1" id="creeaza_submit2" value="RESETEAZA" />
<input name="creeaza_submit" type="submit" class="creeaza1" id="creeaza_submit" value="CREEAZA" />
</form>
thanks
pickle
Briney Mod
Posts: 6445 Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:
Post
by pickle » Wed Feb 04, 2009 5:19 pm
You can't - each of those frames is a unique document & can't be accessed from simple XHTML. You'll need Javascript to collect the data.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
JAB Creations
DevNet Resident
Posts: 2341 Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:
Post
by JAB Creations » Wed Feb 04, 2009 7:15 pm
There are exceptionally few instances where it's ok to use frames, beyond the reason I use them it only means you haven't correctly learned CSS1 layouts. For my reason well, massive AJAX complications. Raise your understanding of CSS1 and remove the need for frames and your issue will be resolved.
Eran
DevNet Master
Posts: 3549 Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME
Post
by Eran » Wed Feb 04, 2009 8:28 pm
He is talking about an iframe not frames. iframes have several usages in advanced web applications, though they will probably be deprecated soon.
killbaz
Forum Newbie
Posts: 12 Joined: Mon Feb 02, 2009 4:44 pm
Post
by killbaz » Wed Feb 04, 2009 10:22 pm
okay , i understood all the answers ... but , somebody knows for sure how can i make this?
any idea , i have more than 12 hours from when i started to search on google.
thank again ... and thanks for your answers ///// IM NOT ALONEEEE
JAB Creations
DevNet Resident
Posts: 2341 Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:
Post
by JAB Creations » Sat Feb 07, 2009 2:07 pm
On my site if I want to access the value of the music player's select element (if you enter with audio enabled) I would do this from another frame...
Code: Select all
<div><span onclick="alert(parent.mplayer.document.getElementById('mplayermenu').value)">what is the value of music player's select menu?<span></div>
parent.mplayer = the frame name. If you have a frame nested two levels deep you'd do parent.parent.frame_name.
I can only presume this works with iframes.