How to resize the current floatbox from within the floatbox

Page: 1

Author Post
Member
Registered: Sep 2012
Posts: 1
I have a floatbox that was launched from the parent page, then in the floatbox there is a small wizard. I need to resize the current floatbox when a button is clicked. I tried

fb.resize(-1, 600);


on the event of the button but nothing happens. I am new to using this so I would appreciate any help that can be provided.

this is how i am calling it:

RegisterUsers.prototype.NextButtonClicked = function() {
fb.resize(-1, 900);
}
Administrator
Registered: Aug 2008
Posts: 3382
floatbox.js is probably not included in the content page being shown inside the floatbox and if it is not, then the 'fb' global object will not be defined there. You can use the fb object of the parent page by calling parent.fb.resize().

Page: 1