Does anyone know which javascript function or method will return the active window Title in Lotus Notes Client.
I need to run the code in on_Load event.
I have tried
alert(window.title);
alert(top.document.title);
alert(document.title);
Regards Arshad
Subject: how to get active window in javascript in Notes Client
The problem might be with when you are getting it? Does on load occur before the head is parsed? If so, you don’t have a title yet. Just a guess though. I am pretty sure document.title should work
Try something like:
Test Title
See if that works and grow it from a working state until you get what you want.
GL
Shawn
Subject: RE: how to get active window in javascript in Notes Client
thanks for your suggestion shawn.
I am using it via a javascript setTimeOut. see sample code
function doPageRefresh()
{
window.location.reload();
alert('refreshing' + document.title + "--- ");
setTimeout('doPageRefresh()', 3000 );
}
The idea is to refresh the page in Notes Client at a set interval to display new data. This is is initially called via onLoad, I can understanding why the window was not displayed first time, BUT it should display window title on subsequent calls.
I need the get the window title so that so that only the required window is refreshed, to my horror the setTimeOut is triggered at the specified interval regardless of which window is activate, I might be working in another Application.
Also the window.location.reload() appears not to reload the Page, I have several computedText fields which are not recomputing, just displaying the initial value on load.
Any other suggestions.
Regards Arshad