Focal Point
[SOLVED] HTML Form Window Resize Event

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2777099576

May 06, 2015, 07:19 PM
WFConsultant
[SOLVED] HTML Form Window Resize Event
I have an html page in the banner of the portal. On the html page, I have placed a label control and added custom menu items and positioned the label control beside the Portal menu items using JavaScript function. This way the Portal menu items and the custom menu items look as one long menu items. Everything works fine when the portal loads for the first time as I am calling the JavaScript function in the load event of the html page. However, when I resize the Portal, the custom menu stays at its original position while the Portal menu items get re-positioned. I want to fire the same JavaScript function when the html page resizes. Unfortunately, I don’t see resize event in the html page created by WF. It only has 2 events, onload and onunload. Please let me know if you guys have any ideas to capture the resize event.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8206.06
App Studio 8201
May 13, 2015, 03:11 PM
WFConsultant
I have figured out a way to capture windows event. May be this will help some in future.

parent.window.addEventListener("resize", myFunction);
var x = 0;

function myFunction() {
var txt = x += 1;
alert(txt);
}


WebFOCUS 8206.06
App Studio 8201