Log in

View Full Version : How to load a url in a html page?


Fonz
2008-09-18, 12:14 PM
I want to load a paysite on one of my URLs. pe. When you go to www.mysite.com you stay on that URL but a sponsor's paysite is shown. And when the surfer clicks on lets say the join link he's taken to the actual paysite join page with the paysite url showing in the browser.

Anyway I can get this done?

Cleo
2008-09-18, 12:21 PM
You can load the site in an iframe but the links on the site would need to have target="_top".
<iframe src="http://www.greenguysboard.com/board/showthread.php?t=49107" frameborder="0" marginwidth="0" marginheight="0" height="400" width="600">
</iframe>

Fonz
2008-09-18, 12:44 PM
You can load the site in an iframe but the links on the site would need to have target="_top".
<iframe src="http://www.greenguysboard.com/board/showthread.php?t=49107" frameborder="0" marginwidth="0" marginheight="0" height="400" width="600">
</iframe>

Yeah that thought has crossed my mind also but I figure most paysites won't have the target="_top" thing. But it comes close to what I have in mind. Thx :)

Cleo
2008-09-18, 12:46 PM
Yeah it sucks when the site gets loaded into a tiny iframe.

Fonz
2008-09-18, 12:48 PM
I tried width="100%" height="100%" and set the margins for the page to 0. That filled up the entire page but it gave me double scrollbars :)

Cleo
2008-09-18, 12:56 PM
You could always just take a screen shot of the paysite.

Mateusz
2008-09-18, 02:25 PM
I'm pretty sure it has something to do with server settings, htaccess perhaps - I tried to do the same in past and as far as I remember I finally made it but can't recall how :(

dunc
2008-09-18, 11:57 PM
How about this:

http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

MadCat
2008-09-19, 01:37 AM
Here you go:


<html>
<frameset rows="0,*" border="0" frameborder="0">
<frame name="_blank" src="about:blank">
<frame name="http://your-paysite-url.com" name="_content">
</frameset>
</html>


That oughta do the trick for the first bit; getting the paysite join button href to open a new window (or at least switch to showing the paysite url) isn't that easy, unless you want to use some javascript and rampage through the DOM tree modifying all the A elements :D