Hi! Here I am, with a new question. Maybe an easy one.
I have an IFrame inside a Dialog... The user can navigate inside the dialog, going to any page he wants.
The thing is that i need a way to change the dialog size according to the content of the open page inside it.
Do exist a way to do this?
Now, i do this with this code
function updateFrame(x, y) {
div.dialog("option", "height", y);
div.dialog("option", "width", x);
div.dialog("option", "position", 'center');
return false;
}
But this mean that i have to go to each page that I have and to call this method with the exactly heigh and width it need (it's difficult to know that size, because I need to do several test) and any change I do make me came back to this to see the new size...
So, I'll be very grateful if you could help me.
Thanks