Click here to Skip to main content
15,916,188 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: validating candian postal codes [solved] Pin
jkirkerx1-Apr-13 7:20
professionaljkirkerx1-Apr-13 7:20 
QuestionTime and date Pin
Tichaona J31-Mar-13 4:15
Tichaona J31-Mar-13 4:15 
AnswerRe: Time and date Pin
dusty_dex31-Mar-13 4:41
dusty_dex31-Mar-13 4:41 
QuestionJquery - Setting focus on Canvas Pin
Simon Lee Shugar29-Mar-13 2:54
Simon Lee Shugar29-Mar-13 2:54 
AnswerRe: Jquery - Setting focus on Canvas Pin
Jasmine250129-Mar-13 6:55
Jasmine250129-Mar-13 6:55 
GeneralRe: Jquery - Setting focus on Canvas Pin
Simon Lee Shugar3-Apr-13 12:51
Simon Lee Shugar3-Apr-13 12:51 
AnswerRe: Jquery - Setting focus on Canvas Pin
jkirkerx30-Mar-13 18:57
professionaljkirkerx30-Mar-13 18:57 
AnswerRe: Jquery - Setting focus on Canvas Pin
Dennis E White2-Apr-13 5:57
professionalDennis E White2-Apr-13 5:57 
GeneralRe: Jquery - Setting focus on Canvas Pin
jkirkerx2-Apr-13 6:28
professionaljkirkerx2-Apr-13 6:28 
GeneralRe: Jquery - Setting focus on Canvas Pin
Dennis E White2-Apr-13 6:35
professionalDennis E White2-Apr-13 6:35 
GeneralRe: Jquery - Setting focus on Canvas Pin
jkirkerx2-Apr-13 6:38
professionaljkirkerx2-Apr-13 6:38 
GeneralRe: Jquery - Setting focus on Canvas Pin
Dennis E White2-Apr-13 6:42
professionalDennis E White2-Apr-13 6:42 
GeneralRe: Jquery - Setting focus on Canvas Pin
Simon Lee Shugar3-Apr-13 12:50
Simon Lee Shugar3-Apr-13 12:50 
AnswerRe: Jquery - Setting focus on Canvas Pin
AspDotNetDev7-Apr-13 13:10
protectorAspDotNetDev7-Apr-13 13:10 
GeneralRe: Jquery - Setting focus on Canvas Pin
Simon Lee Shugar7-Apr-13 21:34
Simon Lee Shugar7-Apr-13 21:34 
QuestionAJAX Javascript ShowModalDialogBox in IE 7 and above not working Pin
unniyadan28-Mar-13 20:53
unniyadan28-Mar-13 20:53 
0 I am trying to achive a ause functionality in javascript.

I am making an asynchronous AJAX call and trying to achive synhronous functionality of AJAX. I want to pause the javascript until i receive the AJAX response for the asyn call of AJAX. Due to some reason i am not using the AJAX synchronous call which will solve my problem.

Once i make a call i use the following two functions to pause the JS

function pause2(numberMillis) {
var dialogScript = "window.setTimeout(" +
" function () { document.write(' '); window.close(); }, "
+ numberMillis + ");";
var result = window.showModalDialog('javascript.document.writeln(' +
'"' + dialogScript + '<' + '/script>")');
}

function pause3()
{

do
{
if(lmsCommitTimeOut<9000){
lmsCommitTimeOut=lmsCommitTimeOut+1000;
pause2(1000);
}
else
{
//alert("TimeOut");
lmsCommitStatus="false";
return;
}

}while(readStateAchived=="false")

}

I call the pause3(); function which internally calls the pause2(1000) for every 1sec until i get the ajax response back, which i check with the help of a js variable "readStateAchived".

This is working well in IE6, but in IE7 it is poping up the modal window and not getting closed, I have to close it manually.

Can anyone help me with this?

Thank you.
AnswerRe: AJAX Javascript ShowModalDialogBox in IE 7 and above not working Pin
Prasad Khandekar11-Apr-13 3:44
professionalPrasad Khandekar11-Apr-13 3:44 
QuestionAJ Pin
unniyadan28-Mar-13 20:52
unniyadan28-Mar-13 20:52 
QuestionJquery JqGrid Pin
Member 962382927-Mar-13 2:30
professionalMember 962382927-Mar-13 2:30 
AnswerRe: Jquery JqGrid Pin
Jasmine250127-Mar-13 7:48
Jasmine250127-Mar-13 7:48 
QuestionBall to Ball collision handling Pin
SRJ9226-Mar-13 14:19
SRJ9226-Mar-13 14:19 
AnswerRe: Ball to Ball collision handling Pin
Kenneth Haugland26-Mar-13 15:29
mvaKenneth Haugland26-Mar-13 15:29 
GeneralRe: Ball to Ball collision handling Pin
dusty_dex26-Mar-13 21:00
dusty_dex26-Mar-13 21:00 
GeneralRe: Ball to Ball collision handling Pin
Kenneth Haugland26-Mar-13 22:01
mvaKenneth Haugland26-Mar-13 22:01 
AnswerRe: Ball to Ball collision handling Pin
SRJ9227-Mar-13 4:04
SRJ9227-Mar-13 4:04 

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.