I can easily do that with a for loop and using .setVisible() function .
the problem is that when that happens, user sees a flash on the page when form loads and hide immediately. is there any way to load the frame once without that flash? this is how I implemented loading the form on "onBeforePopup" routine for the first time. it runs as I want. the only issue is the flash I see on opening each page.
- Code: Select all
lFrame.setState(Frame.NORMAL);
//----------------------------------------------------------------------------
// make the frame hidden/visible if there is param for it in the url. for example for message.html form
if(lIsVisible != null && lIsVisible.equals("hidden")) {
lFrame.setVisible(false);
}else {
lFrame.setVisible(true);
}
lFrame.requestFocus();