open iframe fancybox from within an iframe so that it opens in the parent

I can get this to work which opens a fancybox IMAGE from within an iframe

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

Problem I have is that I need to open a fancybox IFRAME. Example code or any ideas would be greatly appreciated.

Thanks

Answers


Simply, set type iframe:

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

But you should do it only when you need to have different options, because you can open other page withing iframe like:

<a href="myurl">Open something in iframe</a>

Need Your Help

Why is gwt-bootstrap necessary?

java gwt twitter-bootstrap css-frameworks gwt-bootstrap

I'm new to GWT and was looking at using Twitter Bootstrap for a CSS framework. But then I ran across gwt-bootstrap, which bills itself as a way of using Bootstrap in a GWT app.

How to detach an entity (JPA 2.0/EclipseLink/JBoss)

jpa ejb eclipselink jboss5.x

I need to detach some entity objects from the database to make them unmanaged. I use EclipseLink persistence provider, which method EntityManager.detach() is exactly one I need. The problem is that...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.