Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Loading external pages in lightbox?

    Hello,
    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

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    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.

  • #3
    New Coder
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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

  • #4
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    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

  • #5
    New Coder
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.

  • #6
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    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.

  • #7
    New Coder
    Join Date
    Mar 2011
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •