PDA

View Full Version : how to proceed in a loop after a confirmation message box



salih
13 Sep 2010, 9:37 PM
for(var j=0; j<records.length; j++){

if(allzero==0 && issave!='Y' && blockStatus!='I'){
shallsave=false;
x=j;

Ext.MessageBox.confirm('Confirm', 'Do you ant to make '+ blockId +' block In-Active?',
function(btn){
if(btn=='yes'){
rec.set('blockStatus','I');
rec.set('isSave','Y');
shallsave=true;

}else if(btn=='no'){
rec.set('blockStatus','A');
rec.set('isSave','Y');
shallsave=true;

}
}

);



}

xxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxx

}

My requirement is to proceed the loopp after the confirm button.
Could anybody help me ??Its urgent..I am stuck with ;-((

Animal
13 Sep 2010, 10:31 PM
You have to change the way you think.

Javvascript does not stop.

You will postprocesss any response in a callback function.