Log in

View Full Version : Need a "Webpage within a website"



dclewis
04-10-2009, 12:05 AM
I'm not sure if this is covered somewhere on the forums already because I don't even really know what it is called, technically. However, I am looking for a way to display affiliate sales pages (external webpages) on my site so that the user can purchase affiliate products directly from my site without ever having to leave my site.

If possible, I'd like to have the the affiliate page (as much as possible) integrate nicely into my site so that there is really no distinction between the external affiliate page and my website. I hope that makes sense.

First is this even possible, and second, how do I do it?

I'm not familiar with scripting language, just basic HTML and CSS. I'm just looking for the simplest way to do this (possibly something that can be inserted right into the html of my website), if possible without having to mess around with PHP or CGI.

Any help? Ideas? Suggestions?

molendijk
04-10-2009, 12:03 PM
This (http://www.dynamicdrive.com/forums/blog.php?b=16) does what you want.
===
Arie Molendijk.

Medyman
04-10-2009, 01:05 PM
Instead of going through JS, it's much simpler to hardcode the iframe.


<iframe src="link/to/your/page" width="" height=""></iframe>

molendijk
04-10-2009, 01:33 PM
Instead of going through JS, it's much simpler to hardcode the iframe.


<iframe src="link/to/your/page" width="" height=""></iframe>
No, that's exactly the point of this script. The src is a variable, in: OBJ.setAttribute('src',shortURL) (DOM) and src="' + shortURL + '" (document.write). That garantees that you will always have the right URL in the address bar, which makes bookmarking possible (among other things; try the demo). Hardcoding the iframe would not allow this.
===
Arie.

dclewis
04-15-2009, 01:12 PM
Thank you. I will try this and let you know how I make out. Just so I am clear, this should not affect any affiliate ID embedded into the URL, right? It will capture and display the entire URL and send the cookie along to the browser?

edit: I read over the instructions. However, this would probably go on a sub-page/sales page on the site, not the index/main page. Will this still work. Do I need to modify anything?

molendijk
04-15-2009, 04:15 PM
It will work alright (and without cookies). Both your own pages and the sales pages will show as demonstrated in the demo.
===
Arie.

dclewis
04-15-2009, 04:42 PM
It will work alright (and without cookies). Both your own pages and the sales pages will show as demonstrated in the demo.
===
Arie.


I meant the cookies from the affiliate page. Those will remain in tact?

Also, my affiliate page(s) are not on the main page so do I need to change the index.html, and if so, to what? The full URL of the page it's on?

molendijk
04-15-2009, 07:33 PM
I meant the cookies from the affiliate page. Those will remain in tact?
Yes, they will remain intact.



Also, my affiliate page(s) are not on the main page so do I need to change the index.html, and if so, to what? The full URL of the page it's on?
You could perhaps give me a 'print screen' of how you want it?
===
Arie.

grantmitch1
04-16-2009, 05:15 PM
Use a php include.

<?php include("webaddress.php"); ?>

dclewis
04-18-2009, 04:01 PM
Yes, they will remain intact.


You could perhaps give me a 'print screen' of how you want it?
===
Arie.

I was hoping to send you a PM because I don't want to post all the details of my site. I am using typepad's hosted solution, for simplicity (for me). So, I am restricted in the respect that I cannot use php or CGI to accomplish this, which makes the javascript idea (I can use that, not problem).

The affiliate page(s) where I will want the script for the affiliate page inside my own site will be off the home page so it would be something like www.mysite.com/affiliatepage1 or www.mysite.com/affiliatepage2

Does that help any?