Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] HTML Form Window Resize Event
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] HTML Form Window Resize Event
 Login/Join
 
Platinum Member
posted
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
 
Posts: 143 | Registered: January 06, 2009Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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
 
Posts: 143 | Registered: January 06, 2009Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] HTML Form Window Resize Event

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.