fancyapps/fancyBox — Issue #4: Specifying Type as iframe in Options Script Area Breaks Code
Author: daba-nz
Created: 2011-11-22 08:52:54+00:00
State: open

note: FancyBox version 2.0.0 bug (non-existant in 1.3.4)

I have found that if you specify the "type" as iframe within the options script area (as shown below), the requested iframe location is redirected to the current directory /(null)

For this example, we'll say that the site is located at example.com/index.php

```
$(document).ready(function() {
$("#more").fancybox({
'width'	: 400,
'height'	: 1000,
'autoSize'	: false,
'type'	: 'iframe'
});
});

More
```
Then a fancybox will open up that shows a iframe displaying the content (404 page) from example.com/(null)

This problem doesn't exist if you make the following changes:

```
$(document).ready(function() {
$("#more").fancybox({
'width'	: 400,
'height'	: 1000,
'autoSize'	: false,
});
});

More
```
I don't like this class solution as I then can't add a different class that I could manipulate differently using css.

I haven't tried specifying other types eg image, ect.

---
Also on a side note, is it possible to not display the title in the fancy box? (setting to false or '' doesn't seem to work)

Other than this smallest bug, love version 2, great work! Thanks.