JavaScript: If clause partially executed !!!
Posted
by arwa
on Stack Overflow
See other posts from Stack Overflow
or by arwa
Published on 2010-06-07T15:44:00Z
Indexed on
2010/06/07
15:52 UTC
Read the original article
Hit count: 211
Hi everyone
My problem is that when the condition is true it will close the window but not execute the php part !
here goes my code..
function onClose() { var r=confirm("Is the meeting Over!"); if (r==true) { window.close(); } else { } }</blink>
this is the php part..
$sql="UPDATE previousmeetings SET Live='0' WHERE MeetingID='34'"; //$meeting_id
$sql2="UPDATE previousmeetings SET Live='1' WHERE MeetingID='34'";
© Stack Overflow or respective owner