GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Can I write dynamic php content to an iFrame? (https://gfy.com/showthread.php?t=559293)

jimthefiend 01-02-2006 10:35 AM

Can I write dynamic php content to an iFrame?
 
ie. a forum or such?


Noob question I know, sue me.

grumpy 01-02-2006 10:49 AM

Quote:

Originally Posted by jimthefiend
ie. a forum or such?


Noob question I know, sue me.

yes you can. Just see a iframe as a second browser window wich you can control from your main window.

jimthefiend 01-02-2006 10:51 AM

Quote:

Originally Posted by grumpy
yes you can. Just see a iframe as a second browser window wich you can control from your main window.



ok thank you next question.

you suggest using a force frame script?

grumpy 01-02-2006 10:55 AM

what exactly do you wanna do with it?

jimthefiend 01-02-2006 10:58 AM

embed a forum into an iframe lol
gotta fit in with the site template so thats the reason behind the force frame question.

or is there an easier way to do that?

i just need to make sure that the interface sticks around and that no one can bypass it. i.e. sidebar etc.

jimthefiend 01-02-2006 11:03 AM

like this:


pageLoc = self.location;
pageAdd = top.location;

if (pageLoc hahahaha pageAdd) {
contentSrc = escape(pageLoc);
contPage = 'index.html?' + contentSrc;
top.location.href = contPage;
}

modF 01-02-2006 11:04 AM

Why don't you use something like vBulletin where you control the actual template of the forum. Or am I off in my interperation of what you want to do?

grumpy 01-02-2006 11:05 AM

Quote:

Originally Posted by jimthefiend
like this:


pageLoc = self.location;
pageAdd = top.location;

if (pageLoc hahahaha pageAdd) {
contentSrc = escape(pageLoc);
contPage = 'index.html?' + contentSrc;
top.location.href = contPage;
}


if you link a forum in your iframe and they have top.location in it then it wont work. It will break out of the iframe.

jimthefiend 01-02-2006 11:07 AM

Quote:

Originally Posted by modF
Why don't you use something like vBulletin where you control the actual template of the forum. Or am I off in my interperation of what you want to do?



but thats still gonna be a stand alone page.

i need to nestle it into the site.

its side and top bars surrounding an iframe where all the content is diplayed.
i need the forum to do the same.

jimthefiend 01-02-2006 11:10 AM

Quote:

Originally Posted by grumpy
if you link a forum in your iframe and they have top.location in it then it wont work. It will break out of the iframe.


i thought if LOC and ADD were the same then it forced a load of the index which contained the shit in an iframe?


All times are GMT -7. The time now is 05:41 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123