Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
142
rated 0 times [  147] [ 5]  / answers: 1 / hits: 24709  / 13 Years ago, thu, january 26, 2012, 12:00:00

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)

});

More From » html

 Answers
19

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


[#87790] Wednesday, January 25, 2012, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
montana

Total Points: 675
Total Questions: 86
Total Answers: 102

Location: Mali
Member since Fri, Dec 3, 2021
3 Years ago
;