Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Embedding an https page from another site inside of my page

Here is my problem: I am selling a product online that is sold through a corporate website. I would like the transition between the two sites to be as smooth as possible. Because I do not like the look of there corporate website I have created my own. In saying this, I need to use there corporate order form so they know I am the one doing the referrals, ultimately allowing them to pay me.

Is it possible to have a webpage(order form) embedded into my website. I want it to look like another page.

Thank you in advance for any support or advice or articles you refer me to. My skillset goes as far as Javascript ATM.

5 Answers

James Barnett
James Barnett
39,199 Points

That's generally a bad idea :-1: it will lead to partially encrypted pages and mass confusion amongst your users.

You should just forward your users to the checkout page.

Thank you James!

However, if I did want to do this, is it possible? The order form is simple and plain.

Could I simply use an iframe in a table cell?

Matt Campbell
Matt Campbell
9,767 Points

Why not just link to the corporate page when the order now button is clicked? Similar to what would happen if you were to use PayPal as your merchant.

You could possibly open it in a mini-browser or would that cause security issues? Can't see it would as it is handling everything the corporate site after all. Just changing how the page is displayed.

Hmm sorry but what is a mini-browser?

The problem with linking it to the corporate page is that the two sites will not look the same. This could cause confusion with the buyer. as well I would like to keep the header images from my site when the order form is brought up.

Therefore embedding the order form page into my site.

I agree with Matthew,

I do it all the time with affiliate products that I'm promoting, If the sales page isn't up to part or has to much hype or it just seem unrealistic, I will create a simple website and link to their checkout page using my affiliate link.

Nice Call Matthew.

When you say mini-browser are you referring to a light box or pop up window that would happen when they click the click or possibly an Iframe that get's embedded into the page?