View Full Version : Loading external pages in lightbox?

08-31-2011, 11:56 AM
I was wondering if it is possible to load external pages (from a different server) into a lightbox, without using a iframe.

Any solutions for this?
Thanks a lot in advance!
Kind regards, Robbert

08-31-2011, 12:06 PM
You can load mostly anything into a DIV ... but you'll need an iframe to make sure that everything including CSS and Javascript is being executed and applied when the content is being loaded. In a DIV you'd have to take care of all these things for yourself ... an iframe will do this automatically.

08-31-2011, 12:13 PM
Hi thanks for your reply.

What if i only want to load only google.com into a light box. Is such a thing possible to do?
I was actually wondering if it is possible to just visit (load) a external page through a lightbox (site overlay). Something like visiting another site through a pop-up..?

Hope i make myself clear;)
Kind regards, Robbert

08-31-2011, 12:56 PM
Yes, as I said you can do this ... but you'll have to use an iframe (inside the lightbox) to have it the easy way

08-31-2011, 01:16 PM
Unfortunately, Iframe is not a solution for me... Sorry, but could explain more in detail what to do to open an external page in a lightbox, without using the iframe?

Thanks a lot in advance.

08-31-2011, 01:27 PM
See my very first answer. No one can give you a general answer about the "manual" work needed for each page to be visible and functional inside a DIV. It's different for each page.

08-31-2011, 10:01 PM
Ok thanks again:)
Thus it is not possible to open an external page with all its functions as a whole, without the use of iframe. I would like to include a external contact page that includes a form with javascript etc.. I guess it would not be possible to load these functions externally.

Anyway, someone told me something about AJAX request function which could do the trick.. Might that be a solution? Thanks again.