It occurs if no item in itemArray matches the href of the calling
element.
but as janis said, it wont work for ie6
HTH
thank you very much again for your efforts!
Here is the feature i am really missing in FB:
I would really like to see a 'live' method, or at least a 'destroy'
method.
the idea is to have a dynamic gallery where more elements are load
later with Ajax.
with a live method, on every action the 'group' should be computed
again.and everything would work automagically.
having a destroy method would allow me at least to destroy and
recreate the group after loading.
thank for reading
Michael
So if I set a width and height, the open fancybox will transition
into
the new dimensions. If we had this function, we could bind it to the
browser window resize event and have the fancybox, with for example
inline content,
resize with the browser window.
The message still pops out in IE6 (Fancybox 1.3.0 RC2 - 02.01.2010)
whenever pages with fancybox are
viewed using https. I've found a temporary hack. The problem is with
the background-image property of the left/right nav link CSS:
#fancybox-left, #fancybox-right {
position: absolute;
bottom: 0px;
height: 100%;
width: 35%;
cursor: pointer;
z-index: 111;
display: none;
background-image: url("data:image/gif;base64,AAAA");
outline: none;
}
Adding the following "hack" eliminates the warning for IE6:
* html #fancybox-left, * html #fancybox-right { /* for IE6 */
background-image: none;
}
Hope that helps.
Cheers,
Marek
Currently I keep changing the Fancybox plugin when using it, but it
would be nice it this could be a built-in feature:
It would be nice to simply call fancybox like this: $
('.fancybox_link').fancybox(); Where all selected links are used as
the item_array. Now it always looks at the rel attribute. Maybe you
can make both cases possible, either use the rel attribute, or use the
items the fancybox function was called with. (I hope you understand
what I mean, otherwise I'll have to explain it differently).
Janis
Tjaad
And another question? Does the fixPNG version only work for the
fancybox images or generally. If generally why not move it out of the
plugin. I anyway hate people with IE6 :)
I would like to try it if possible.
Fancybox is amazing btw! Thanks for the good work. Keep it up!
I have started using version 1.3 a few days ago and there is a new
thing which I don't like. It's the inline calls. If I set a link to
point at a div (f.e. #test_div) and this div has display:none, then
Fancybox will open a small, empty rectangle. It will work only if the
target div doesn't have the display:none property. There are some
times when wrapping all target div's in a single div with display:none
is not a good way and is uncomfortable. Please, fix Fancybox 1.3 so it
ignores if the target div has display:none or not.
#content .fancybox_div { display:none; }
Now when it is loaded in the fancybox, it will not be inside the
#content div and it will be visible. Once it returns to its original
position it is hidden again.
I'm passing in an array of images:
$.fancybox( image_list, { overlayShow : true } );
But I can't find a way to choose which image (I believe this is
controlled by currentIndex) to start with. It would be great if either
an index number or an identifying property (like href for images)
could be used.
Any ideas?
If this could be included with future releases, that would be great
In "function _cleanup() {"
currentIndex = selecteIndex = 0;
Misspelling of selectedIndex
-----
Previous code I posted about the selectedIndex is only partially
working at the moment
Janis
First of all, loving the plugin. One very minor thing I would like to
see fixed. I have a URL like:
<a class="iframe" href="http://<domain>/viewimage.aspx?sid=479283cb-
b9a0-49aa-9a06-308f34946593&aid=4623&pid=40819">Test</a>
which I use fancybox to create an iframe to display the image. However
my page is running in XHTML Strict mode and the & don't get converted
by fancybox to & within the URL causing an XML parser error. Other
than that its great :)
~CybrHwk
for me the problem with jquery 1.4 and fancybox 1.3rc2 was this call: $
(currentArray[ currentIndex ]).is('img')
After I commented it out (two situations in the javascript) it worked
for me.
Sadly, Firefox 3.6 comes with new problem. I just couple days ago
created nice example of displaying PDF files using FancyBox and it
worked well on all browsers, but latest FireFox crashes on closing
FancyBox. And I have no idea how to fix this :/
Janis
My code is something like this:
$(".class").live("click", function(){
$.fancybox({
content : $("#ele").html(),
});
});
With 1.3.2 it works but with 1.4 I get this error (a thousand times
until I reload the site):
elem.NodeName is undefined
jquery-1.4.js Zeile: 3097
Hope this will help you, cause I really need your plugin
I have this error generated in an infinite loop under firebug when
opening a fancybox popup with jQuery 1.4 (works fine with jQuery
1.3.2):
g.nodeName is undefined
[Break on this error] m.nextSibling)if(m.nodeType===1)m.node...];h=h
[4];return g==null?m==="!=":m===
jquery-1.4.min.js (ligne 83)
My javascript call is:
var fancybox_cfg = {
'centerOnScroll': false,
'hideOnContentClick': false,
'overlayShow': true,
'autoDimensions': true,
'padding': 12 };
$("#fancy-login").click(function() {
$.fancybox( { href: "<?= site_url('/popup/login') ?>" },
fancybox_cfg );
});
inner = $('<div id="fancybox-inner"></div').appendTo( outer );
should be </div>
this.fancybox is not a function
anonymous()beta (ligne 123)
anonymous()jquery-1.4.min.js (ligne 53)
anonymous()jquery-1.4.min.js (ligne 48)
[Break on this error] this.fancybox( { href: "<?= site_url('/popup/
login') ?>" }, fancybox_cfg );\nbeta (ligne 123)
On Jan 28, 9:27 am, Daniel Nelson <dnelso...@gmail.com> wrote:
> Fancybox can display html blocks. Write the html and jQuery that do
> the job and open it with Fancybox.
>
elem.nodeName is undefined
[Break on this error] return (match === "*" &&
elem.nodeT...lem.nodeName.toLowerCase() === match;
jquery-1.4.1.js (ligne 3162)
And that error is still generated hundreds of times per second in an
infinite loop way.
<meta content="blendTrans(Duration=0.5)" http-equiv="Page-Enter" />
I am finding that the transition pauses half way for a period while
Fancybox 1.3 does it's thing during page load. For a time I see two
pages paused at the same time with 50% transparency... Not a great
look.
Is there a suggested workaround?
Example can be seen at http://www.dtp.net.au/ and then click on the
Ivoisys link on the left of the page.
Regards Brett
I use fancybox for forms, and currently it captures the left/right
keydown events, which makes it a pain for users to use the forms,
since they can't move left/right in a text input without clicking with
the mouse.
This issue has been discussed before on this group as well:
http://groups.google.com/group/fancybox/browse_thread/thread/13ea2a1c62588d7c
Overall though, thanks for a great plugin!
-Taylor
Nevertheless there is no documentation/example online on how to use
FancyBox as $.fancybox( data, {...settings...})
Do it work how I asked?
Best,
Chris
On Mar 4, 8:37 pm, Taylor M <taylor.paul.marsh...@gmail.com> wrote:
> Personally I'd love an option for disabling the capture of left/right
> arrow keydown events..
>
> I use fancybox for forms, and currently it captures the left/right
> keydown events, which makes it a pain for users to use the forms,
> since they can't move left/right in a text input without clicking with
> the mouse.
>
> This issue has been discussed before on this group as well:
>
> http://groups.google.com/group/fancybox/browse_thread/thread/13ea2a1c...
-howard
On Jan 28, 6:27 am, Daniel Nelson <dnelso...@gmail.com> wrote:
> Fancybox can display html blocks. Write the html and jQuery that do
> the job and open it with Fancybox.
>
I'd love to have a customizable callback function for errors like
'onError'. I included it by myself, by modifying 'fancybox_error' as
you see below but it would be cool to have it included in future
releases.
fancybox_error = function() {
if ($.isFunction(selectedOpts.onError)) {
selectedOpts.onError();
} else {
$.fancybox('<p id="fancybox_error">The requested content
cannot be loaded.<br />Please try again later.</p>', {
'scrolling' : 'no',
'padding' : 20,
'transitionIn' : 'none',
'transitionOut' : 'none'
});
}
}
Regards Philipp
There is a post "left / right arrow keys" with a patch that allows
setting configuration for the key binding:
Could something like that become part of the main line code?
Thanks again for a great plugin,
Michael
On Mar 4, 9:37 pm, Taylor M <taylor.paul.marsh...@gmail.com> wrote:
> Personally I'd love an option for disabling the capture of left/right
> arrow keydown events..
>
> I use fancybox for forms, and currently it captures the left/right
> keydown events, which makes it a pain for users to use the forms,
> since they can't move left/right in a text input without clicking with
> the mouse.
>
> This issue has been discussed before on this group as well:
>
> http://groups.google.com/group/fancybox/browse_thread/thread/13ea2a1c...