Ive looked for some examples online but i couldn't fund any.
how can i upload a new html within fancybox?
$('#Create').click(function() {
$.fancybox({
What should be the content over here?
(lets say i want to load stackoverflow.com)
});
The documentation is right on the site, you can use an iframe:
$("#iframe").fancybox({
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
HTML
<a href="http://www.example?iframe">This goes to iframe</a>
or
<a id="iframe" href="http://www.example">This goes to iframe</a>
You can find all that info here: http://fancybox.net/howto
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With