Discussion:
Popup
dtirer
2010-02-10 17:56:57 UTC
Permalink
I'm using the following JQuery Popup code to make smooth popups:
(http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-
popup-using-jquery/)

I was wondering how I can use use this to load external pages into the
popup?

So instead of having a hidden <div> in the page, there would be some
sort of empty <div (<div id='this'></div>). The when I click a link,
an external page would be loaded into this empty <div>.

So it would function just as it does in the above tutorial, expect the
popup content would be coming from an another page, not within the
page.
Nathan Klatt
2010-02-10 18:24:41 UTC
Permalink
Post by dtirer
(http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-
popup-using-jquery/)
I was wondering how I can use use this to load external pages into the
popup?
This tutorial should prove helpful:

http://pixeline.be/blog/2008/javascript-loading-external-urls-in-jqmodal-jquery-plugin/

If you don't want to use an iframe I believe you'll have to send the
request to your own server and have it fetch the external page you
want to load since most browsers don't allow XSS. If you're going to
do that, though, be careful!

http://www.owasp.org/index.php/XSS

Nathan

Continue reading on narkive:
Loading...