Hi,
I have another web application that opens in a window and runs a query in it after some simple timeout functions. that works ok but I d like to know at once when it is ready, not an estimated (about 10seconds settimeout()) depending on the clientcomputers cpu.
The question is HOW would I in the best way execute these functions without settimeout, instead use a loop that goes on until all the variables is defined in that application?
The problem is that the variable okToSend in the opened application “is null or not an object” (errormessage) π‘ when I try to check it as below.
Any ideas?
Thanks!//Martin
function imsFunct(){
mapWindow.focus();
var i = 0;
do
{
i+=1;
}
while(((mapWindow.MapFrame.okToSend==”undefined”)||(mapWindow.MapFrame.okToSend==”null”)||(!mapWindow.MapFrame.okToSend)));
setActive();
do
{
i+=1;
}
while(((mapWindow.MapFrame.okToSend==undefined)||(mapWindow.MapFrame.okToSend==null)||(!mapWindow.MapFrame.okToSend)));
findHit();
}