Вопрос

I need help with. I need to get y: 650 to 100% but it wont allow me to enter something like 100% is there any other way to this please.

request.onreadystatechange = function () {
            if (request.readyState == 4 && request.status == 200) {



                var responce = request.responseText;
                var options = {url: detailurl, handler: 'html', size: {x: 265, y: 650}, htmldata: responce,pid:product_id};
                redBOX.initialize({});
                document.attbox = redBOX.open(null, options);

                // preload slimbox
                var imagehandle = {isenable: false, mainImage: false};
                preloadSlimbox(imagehandle);

                var el = RedgetElementsByClassName('calendar');

                for (i = 0; i < el.length; i++) {
                    // do stuff here with myEls[i]
                    var calImgId = el[i].id;
                    arr = calImgId.split("_img");
                    n = arr.length;
                    var calName = arr[0];
                    var realname = calName.split("ajax");

                    if ((calImgId.search('ajax') != -1) && (extrafieldNames.search(realname[0]) != -1)) {
                        window.addEvent('domready', function () {
                            Calendar.setup({
                                inputField: calName,     // id of the input field
                                ifFormat: "%d-%m-%Y",      // format of the input field

                                button: el[i].id,  // trigger for the calendar (button ID)
                                align: "Tl",           // alignment (defaults to "Bl")
                                singleClick: true
                            });
                        });
                    }
                }
            }
        };

Thanks.

Это было полезно?

Решение

Try with javasript:

size: {x: 265, y: parseInt(document.getElementsByTagName("html")[0].style.width)}

Другие советы

Have you tried use:

$('html').width()

For example:

size: {x: 265, y: $('html').width()}

Try this,

size: {x: 265, y: $('html').css('width')}

For set the width you can try

 size: {x: 265, y: $('html').css('width','100%')}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top