i am new to j query, it is cool, but i am glued to the ceiling on how to add width and height to a iframe generated after click, using this code: all suggestions would be great and thanks in advance Khadija
$(document).ready(function () {
$(".fancybox").fancybox();
})
.height = '600px';
You Need to set autoSize to false, worked for me
$(".fancybox").fancybox({'width':400, 'height':300, 'autoSize' : false});
use this css :)
This code set size of fancy dynamic @ run time only you have to pass height & width along with page url,to whom you want to set
Eg: demo.aspx //this statement calls fancy function which is present in your main page
// just add this function in your main page
If you have still issues
modify it in jquery.fancybox.js
You must set autoSize to false
To initialize the fancybox popup for the usage of an iframe, limited to a certain width and height, you need at least three parameters:
jQuery
You can read all about the available options at the FancyBox API Page.