View Full Version : How to load a url in a html page?
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?
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>
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 :)
Yeah it sucks when the site gets loaded into a tiny iframe.
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 :)
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 :(
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
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.