I am having an issue on a website I am creating.
I would like to give the user the possibility to click on a button and to have a jquery.fancybox opening. So far, so good. However, I would like to have a jquery.booklet Inside that fancybox. Here are the links to the websites : Booklet Fancybox
I have almost reached my aim, but I have a final issue I can't solve no matter what I try : the fancybox won't streach to the booklet size. What ever I tried, I always have a little bit of the booklet out of the fancybox, and I need to scroll down to see it.
Here is my code putting the content of "cat2.php" Inside the fancybox:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="javascript/fancybox/lib/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="javascript/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<script type="text/javascript" src="javascript/fancybox/source/jquery.fancybox.js?v=2.1.4"></script>
<link rel="stylesheet" type="text/css" href="javascript/fancybox/source/jquery.fancybox.css?v=2.1.4" media="screen" />
<link rel="stylesheet" type="text/css" href="javascript/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" />
<script type="text/javascript" src="javascript/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
<link rel="stylesheet" type="text/css" href="javascript/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" />
<script type="text/javascript" src="javascript/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>
<script type="text/javascript" src="javascript/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.5"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.fancybox').fancybox({
'width':'100%',
'height':'100%',
'padding':0
});
});
</script>
<center>
<a class="fancybox fancybox.iframe" id="test" href="catalogue_je/cat2.php"><img src="images/design/Cliquez_ici.jpg" /></a>
</center>
And here is the code Inside cat2.php (barely more than an example):
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<link rel="icon" type="image/png" href="/images/design/favicon.png" />
<title>Catalogue en ligne</title>
<script src="booklet/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="booklet/jquery-ui-1.8.21.min.js" type="text/javascript"></script>
<script src="booklet/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="booklet/jquery.booklet.1.4.0.js" type="text/javascript"></script>
<!--<link rel="stylesheet" href="style_catalogue.css" />-->
<link href="booklet/jquery.booklet.1.4.0.css" type="text/css" rel="stylesheet" media="screen, projection, tv" />
<script>
$(function() {
//single book
$('#mybook').booklet({
'height':'100%'
});
//multiple books with ID's
$('#mybook1, #mybook2').booklet();
//multiple books with a class
$('.mycustombooks').booklet();
});
</script>
</head>
<body>
<div id="mybook">
<div>
<h3>Yay, Page 1!</h3>
</div>
<div>
<h3>Yay, Page 2!</h3>
</div>
<div>
<h3>Yay, Page 3!</h3>
</div>
<div>
<h3>Yay, Page 4!</h3>
</div>
</div>
</body>
</html>
Should anyone of you have an idea on how to solve my issue, I would gladely accept the help.
Thanks in advance,
Regards.