nyromodal iframe size problem

Posted by dzajdol on Stack Overflow See other posts from Stack Overflow or by dzajdol
Published on 2010-04-15T09:17:23Z Indexed on 2010/04/15 9:23 UTC
Read the original article Hit count: 997

Filed under:
|

Hi

I have a jquery gallery (galleriffic), which opened nyroModal and a good set size. I want to post pictures on this page (page open with nyromodal where is gallery). When I use an iframe, the page size has the wrong value.

jquery code used on the gallery.aspx, which is run as a nyromodal:

<script language="javascript" type="text/javascript">
    $(document).ready(function() {
        var height = $(window).height();
        var width = $(window).width();
        alert(height);
        alert(width);
        var autosizable = true;
        var windowResize = true;
        var resizeable = true;

        $.nyroModalSettings({
            bgColor: '#000000',
            windowResize: windowResize,
            width: width,
            height: height,
            resizable: resizeable,
            autoSizable: autosizable
        });
    });

link opens the gallery page (a little distorted because I did not want me to display a html):

*a class="nyroModal" target="_blank" href='Ajax/gallery.aspx?guid=<%= Trip.guid%>&op=add'img src="~/img/icon/icon_add.gif" runat="server" //a*

How to set good size to this gallery?? When i will put the value of the stiffness does not interpret them

Regards

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about nyromodal