Click here to Skip to main content
15,884,176 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Calendar synchronization Pin
Pradeep kumar.V23-Oct-09 2:01
Pradeep kumar.V23-Oct-09 2:01 
GeneralRe: Calendar synchronization Pin
Ashfield23-Oct-09 3:57
Ashfield23-Oct-09 3:57 
GeneralRe: Calendar synchronization [modified] Pin
Pradeep kumar.V27-Oct-09 17:58
Pradeep kumar.V27-Oct-09 17:58 
GeneralRe: Calendar synchronization Pin
Ashfield27-Oct-09 22:03
Ashfield27-Oct-09 22:03 
QuestionNeed to manipulate an excel file using MS Office SDK Pin
Sebastian T Xavier22-Oct-09 18:43
Sebastian T Xavier22-Oct-09 18:43 
QuestionCan't get a simple IF statement to work Pin
dennisw1122-Oct-09 10:52
dennisw1122-Oct-09 10:52 
AnswerRe: Can't get a simple IF statement to work Pin
Wes Aday22-Oct-09 11:22
professionalWes Aday22-Oct-09 11:22 
AnswerRe: Can't get a simple IF statement to work Pin
dennisw1123-Oct-09 3:02
dennisw1123-Oct-09 3:02 
The if appears to be working now but I can't come out of a loop. I think the difference was I had If MYWINDOW.CLOSED instead of If MYWINDOW.closed.

I set var WIOPEN = 1 and open my window. I have a while loop in the loop() function that is supposed to call the checkwin function.

I know check win is being called because if I put an alert box in there as soon as I the new window the Alert box goes off. The checkwin should change WOPEN to 0 and end the WHILE loop but it doesn't. WHen I close the window the browser hangs ubtil I get a message that asks If I want to stop running the script.


I have been programming in various languages for 20 years I havenever encountered a language as finicky as JAVA.


Here is my code. Thanks for the help.


var WOPEN=1;
{
MYWINDOW=window.open("OIM38201.pgm?caller=<% %Trim(PgmName) %>&amp;Task=ADD&amp;Rnd=<% RPGspRandom %>",'');
MYWINDOW.focus();

loop();
}


function loop()
{



while (WOPEN=1)
{
checkwin();

}


function checkwin()
{


if (MYWINDOW.closed)
var WOPEN=0;


}
GeneralRe: Can't get a simple IF statement to work Pin
David Skelly23-Oct-09 6:53
David Skelly23-Oct-09 6:53 
GeneralRe: Can't get a simple IF statement to work Pin
dennisw1123-Oct-09 7:09
dennisw1123-Oct-09 7:09 
QuestionObject Data Source Configuration Error Pin
RB@Emphasys22-Oct-09 8:54
RB@Emphasys22-Oct-09 8:54 
QuestionHow do I keep data on form when page is refreshed? Pin
nickbtheitguy22-Oct-09 5:25
nickbtheitguy22-Oct-09 5:25 
QuestionHow to 'Test' an IIS Mapping Pin
Jammer22-Oct-09 3:19
Jammer22-Oct-09 3:19 
QuestionPhone calling from webapplication to phone or mobile Pin
Pradeep kumar.V21-Oct-09 22:26
Pradeep kumar.V21-Oct-09 22:26 
AnswerRe: Phone calling from webapplication to phone or mobile Pin
Richard MacCutchan21-Oct-09 23:29
mveRichard MacCutchan21-Oct-09 23:29 
GeneralRe: Phone calling from webapplication to phone or mobile Pin
Pradeep kumar.V21-Oct-09 23:33
Pradeep kumar.V21-Oct-09 23:33 
AnswerRe: Phone calling from webapplication to phone or mobile Pin
Christian Graus22-Oct-09 0:58
protectorChristian Graus22-Oct-09 0:58 
GeneralRe: Phone calling from webapplication to phone or mobile Pin
Pradeep kumar.V22-Oct-09 1:14
Pradeep kumar.V22-Oct-09 1:14 
AnswerRe: Phone calling from webapplication to phone or mobile Pin
David Skelly22-Oct-09 2:16
David Skelly22-Oct-09 2:16 
QuestionExtracting the print-specific CSS properties from a webpage using javaScript Pin
Sharadb.adobe21-Oct-09 21:57
Sharadb.adobe21-Oct-09 21:57 
QuestionSending voice message to Phones in jsp applications Pin
sanuji21-Oct-09 19:01
sanuji21-Oct-09 19:01 
AnswerRe: Sending voice message to Phones in jsp applications Pin
Richard MacCutchan21-Oct-09 23:31
mveRichard MacCutchan21-Oct-09 23:31 
QuestionI need a "Global" Timer... Pin
Loophole321-Oct-09 10:10
Loophole321-Oct-09 10:10 
AnswerRe: I need a "Global" Timer... Pin
thorsman9921-Oct-09 10:54
thorsman9921-Oct-09 10:54 
Questionjavascript on ie8 Pin
Denver Thomas20-Oct-09 21:15
Denver Thomas20-Oct-09 21:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.