FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Frame/I frame problem 50$fri up for grabs!!!!!!

 


billybob
I am wanting to use my site (URL in sig) threw a frame, but once the form submits it removes the frame! I have tried using frames and I frames, but both are removed once the form submits, I also considered a php include but I guess the same would happen.

So any ideas?

Thanks
Ryan


Last edited by billybob on Mon May 08, 2006 7:18 pm; edited 1 time in total
brokenfaith
I used to have this problem, what i THINk you need to do, is name your iframe, then target the link to your name, so the code would look like

Code:
<IFRAME SRC="***.html" name="IFRAME NAME" WIDTH=450 HEIGHT=400><A HREF="***.html"> </IFRAME>


Then target your links like this

Code:
<a href="LINK.HTM" target="IFRAME NAME">TEXT</a>


I hope it helps.
billybob
brokenfaith wrote:
I used to have this problem, what i THINk you need to do, is name your iframe, then target the link to your name, so the code would look like

Code:
<IFRAME SRC="***.html" name="IFRAME NAME" WIDTH=450 HEIGHT=400><A HREF="***.html"> </IFRAME>


Then target your links like this

Code:
<a href="LINK.HTM" target="IFRAME NAME">TEXT</a>


I hope it helps.


Thanks I shall try it out now!
I will let you know if it turns out although im not sure how i can work the link into the form submit button bit i will have ago..
billybob
Did'nt seem to work Sad

Seen as it was a form that I was adding it to, I added as follows:
Code:
<form name="****" method="get" action="LINK_URL.HTML" target="IFRAME NAME">


is this correct?
burningjacks
use the PHP include it should work out ive seen it done.
billybob
burningjacks wrote:
use the PHP include it should work out ive seen it done.


yeah but will it not just load the linked page and remove that page that contains the include?

I will try it in around an hour! not too optomistic tho..
billybob
well I have now tryed using a php include and nope it did'nt work...(yeah slightly longer than 1 hour later Laughing I became bussy Razz ) it can be viewd at www.poxyproxy.com/include.php

does anyboad have any more surgestions.... if i find one that works i will pay 50 fri$ to who ever surgests it!
DanielXP
This it?

Code:
<html>
<head>
<title>Your Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<frameset rows="20, *">
<frame src ="topframe.html" frameborder="0" noresize="noresize" marginwidth="0" marginheight="0" />
<frame src ="page.html" frameborder="0" noresize="noresize" marginwidth="0" marginheight="0" />
<noframes>
   <body>
     <p>Sorry, but your browser does not support frames. You may visit the URL at the following location:<br />

         
         
         </p>
       </body>
   </noframes>
</frameset>
</html>
billybob
nah sorry thats just a normal frame set it will just remove the frame once the form submits or have i missed somthing?
DanielXP
Sorry i don't understand

nah sorry thats just a normal frame set it will just remove the frame once the form submits or have i missed somthing?
billybob
DanielXP wrote:
Sorry i don't understand

nah sorry thats just a normal frame set it will just remove the frame once the form submits or have i missed somthing?


I am looking for something to act as a frame which will have my site within (www.poxyproxy.com) within another frame but my site has a form on it, and once the form submits it take you to another page (in the same window it's not a pop up) but when this happens if my site is in a frame the frame will just vanish when this new page loads.

Well that is what happens with a normal frame but I am looking for something that will stop the frame disappearing but it doesn’t have to be a frame...

What I mean by saying "have i missed something" is that is that just a normal frame or is it different as it just looks like a normal frame set that i have already tried with no avail........

Sorry about the misunderstanding
Ryan
DanielXP
Can u do this:

Code:
<a target="iframename" href="http://www.URL.com">YourLinkHere!</a>


And then to make it go to one whole frame do a bust out of frame script using this code:

Code:
<script language="JavaScript1.2">
<!--


top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>
billybob
DanielXP wrote:
Can u do this:

Code:
<a target="iframename" href="http://www.URL.com">YourLinkHere!</a>


And then to make it go to one whole frame do a bust out of frame script using this code:

Code:
<script language="JavaScript1.2">
<!--


top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>


nope sorry I have tryed nameing the frame in the form submition, but it did'nt work. I also do not want it to bust out of the frame thats the problem, it does that it's self.
DanielXP
Do you know the name of ur iframe?

and if it already busts out of the frame look for the code in the HTML and delete it. they will keep in the frame if they don't! Very Happy
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.