GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Question for GFY HTML5/CSS3 Javascript Gurus (https://gfy.com/showthread.php?t=1231594)

2MuchMark 11-29-2016 12:48 PM

Question for GFY HTML5/CSS3 Javascript Gurus
 
Hey bitches,

Is it possible to display content from 1 page on to another page, using a DIV to "float" that content?

For example, let's say page1.html is your main page, but you want load some of page2.html. Normally you would use an iframe, but in this case, you want to float it on top of page1.html like a window.

tks!

Colmike9 11-29-2016 01:17 PM

Pretty sure you can do that with Fancybox:

$.fancybox({'href':'http://www.google.com',
'type':'iframe'
});


Fancybox - Fancy jQuery lightbox alternative

blackmonsters 11-29-2016 02:09 PM

Quote:

Originally Posted by Colmike7 (Post 21340414)
Pretty sure you can do that with Fancybox:

$.fancybox({'href':'http://www.google.com',
'type':'iframe'
});


Fancybox - Fancy jQuery lightbox alternative


:thumbsup

Bladewire 11-29-2016 02:14 PM

Quote:

Originally Posted by Colmike7 (Post 21340414)
Pretty sure you can do that with Fancybox:

$.fancybox({'href':'http://www.google.com',
'type':'iframe'
});


Fancybox - Fancy jQuery lightbox alternative

:thumbsup:thumbsup

There are other options too, here's a good breakdown: https://www.sitepoint.com/jquery-lig...ybox-thickbox/

HomerSimpson 11-30-2016 02:15 PM

depends what are you trying to display... There are some other ajax options too that are probably a better idea than iframe...

2MuchMark 11-30-2016 02:27 PM

Quote:

Originally Posted by HomerSimpson (Post 21344011)
depends what are you trying to display... There are some other ajax options too that are probably a better idea than iframe...

Any links, examples?

Adnium_Ivana 11-30-2016 03:13 PM

Do you have a visual example of exactly what you're looking to do? There might be another solution besides using FancyBox

2MuchMark 11-30-2016 03:16 PM

Quote:

Originally Posted by Colmike7 (Post 21340414)
Pretty sure you can do that with Fancybox:

$.fancybox({'href':'http://www.google.com',
'type':'iframe'
});


Fancybox - Fancy jQuery lightbox alternative

Thank you!!!

Colmike9 11-30-2016 04:08 PM

Quote:

Originally Posted by ********** (Post 21344197)
Thank you!!!

Sure :upsidedow

Also, this might be that Ajax solution that they're talking about:

Magnific Popup: Responsive jQuery Lightbox Plugin
Magnific Popup Documentation

RyuLion 11-30-2016 08:40 PM

A productive thread FTW!

freecartoonporn 11-30-2016 10:57 PM

bootstrap modal.

Bladewire 11-30-2016 11:00 PM

Quote:

Originally Posted by freecartoonporn (Post 21345157)
bootstrap modal.

/endthread

2MuchMark 12-01-2016 10:57 AM

Quote:

Originally Posted by Colmike7 (Post 21340414)
Pretty sure you can do that with Fancybox:

$.fancybox({'href':'http://www.google.com',
'type':'iframe'
});


Fancybox - Fancy jQuery lightbox alternative


Quick update: Fancybox works perfectly. Thanks much!

Quote:

Originally Posted by RyuLion (Post 21344887)
A productive thread FTW!

Yeah really, on GFY even. Go figure!

Cheers!

Colmike9 12-01-2016 11:01 AM

Quote:

Originally Posted by ********** (Post 21346642)
Quick update: Fancybox works perfectly. Thanks much!


Cheers!

Nice! :upsidedow


All times are GMT -7. The time now is 07:00 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123