change current content

90 views
Skip to first unread message

andrei dumitru

unread,
May 21, 2013, 3:43:25 AM5/21/13
to fanc...@googlegroups.com

in the demo, using the iframe I could change the content to a photo using 

<a href="javascript:parent.jQuery.fancybox.open({href : '1_b.jpg', title : 'My title'});">display a image</a>
is it possible to use the same to change the current iframe into another iframe?

something like 
<a href="javascript:parent.jQuery.fancybox.open({href: 'iframe2.html', title : 'iframe2'});">Iframe 2</a>

is this what #3 in FAQ is about, so it's not possible to do this ?
Message has been deleted

andrei dumitru

unread,
May 26, 2013, 12:07:38 PM5/26/13
to fanc...@googlegroups.com
<a href="javascript:parent.$.fancybox.open({href : 'myurl'});">Open something</a>

I tried the update in FAQ but it closes my window only

born.as....@gmail.com

unread,
Jun 24, 2013, 5:06:19 AM6/24/13
to fanc...@googlegroups.com
Try ;

<a href="javascript:parent.$.fancybox.open({href : 'myurl',  type: 'iframe'});">Open something</a>



JFK

unread,
Jun 25, 2013, 2:44:15 AM6/25/13
to fanc...@googlegroups.com
what version of fancybox?
Reply all
Reply to author
Forward
0 new messages