To make things easy, here's the site - .php View the source code all you like.
The middle button of the top bar in your browser window that says "Palette" is supposed to open up a fancybox in the middle of the screen, and that box should load into it the data inside the element with id of 'data', but it doesn't and es up with an error message of "The requested content cannot be loaded. Please try again later." I took this example straight from the fancybox website and double-checked that all the CSS, image and JS files are in their proper place and loaded. So now I'm lost and no idea how to do/fix this.
PS - I use Google Chrome 6.0. I'll see if this happens in IE8 or Firefox.
PPS - Found a solution. I can force the HTML content that goes into a fancybox by using the 'content' property. Using that and jQuery I can easily stuff a box with whatever I want. Thanks for the help guys.
To make things easy, here's the site - http://schnell.dreamhosters./folio/pixelread.php View the source code all you like.
The middle button of the top bar in your browser window that says "Palette" is supposed to open up a fancybox in the middle of the screen, and that box should load into it the data inside the element with id of 'data', but it doesn't and es up with an error message of "The requested content cannot be loaded. Please try again later." I took this example straight from the fancybox website and double-checked that all the CSS, image and JS files are in their proper place and loaded. So now I'm lost and no idea how to do/fix this.
PS - I use Google Chrome 6.0. I'll see if this happens in IE8 or Firefox.
PPS - Found a solution. I can force the HTML content that goes into a fancybox by using the 'content' property. Using that and jQuery I can easily stuff a box with whatever I want. Thanks for the help guys.
Share Improve this question edited May 31, 2012 at 13:58 Jonathan Allard 19.3k11 gold badges56 silver badges76 bronze badges asked Sep 20, 2010 at 19:24 Mathias SchnellMathias Schnell 9023 gold badges13 silver badges23 bronze badges 6-
When clicking Palette I get a fancybox with the text "Lorem ipsum dolor sit amet, consectetur adipiscing elit." in it. If I then click
Megaman
and try Palette again I get the error. I only get the issue when I clickMegaman
, is this the same for you? – Jake N Commented Sep 20, 2010 at 19:31 - Browser + version might be in order, I cannot reproduce the problem here. – Wrikken Commented Sep 20, 2010 at 19:32
- Ah, the route jakenoble mentions does indeed produce the error here. – Wrikken Commented Sep 20, 2010 at 19:35
- The issue for me is that the button that brings up the window never gets the content it should in it at all. I always get 'The requested content cannot be loaded. Please try again later." – Mathias Schnell Commented Sep 20, 2010 at 21:44
- Well this is rather strange but it appears as if fancybox just decided to work fine... – Mathias Schnell Commented Sep 20, 2010 at 22:11
2 Answers
Reset to default 2Found a solution. I can force the HTML content that goes into a fancybox by using the 'content' property. Using that and jQuery I can easily stuff a box with whatever I want. Thanks for the help guys.
I think the problem is that fancybox isn't recognizing your content as being inline (not exactly sure why, but maybe something to do with the query string in the url, since it works when that isn't present).
I would try adding the explicit type: inline
to your fancybox declaration:
$("a#inline").fancybox({'type':'inline'});