This is a migrated thread and some comments may be shown as answers.

Confirm issue

1 Answer 54 Views
Window
This is a migrated thread and some comments may be shown as answers.
Eric Klein
Top achievements
Rank 1
Eric Klein asked on 16 Jul 2010, 05:15 PM
I have the follwing code
function openConfirmBox()  
  {  
      radconfirm('Did you save an Excel Spreadsheet?', confirmCallBackFn, 330, 100, null,'Confirm');              
  }  
    
function confirmCallBackFn(arg)  
  {  
  alert(arg); 
  if (arg == true);
  {
          document.getElementById('<%= UpdateFailed.ClientID %>').click(); 
  }
   GetRadWindow().Close();   
 }  
but for some reason requardless if arg is true or false it always runs the click event.

What is wrong.

1 Answer, 1 is accepted

Sort by
0
Eric Klein
Top achievements
Rank 1
answered on 16 Jul 2010, 05:19 PM
Never mind I saw it it was the ; after the if
Tags
Window
Asked by
Eric Klein
Top achievements
Rank 1
Answers by
Eric Klein
Top achievements
Rank 1
Share this question
or