Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3847962
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:37:51+00:00 2026-05-19T16:37:51+00:00

I am using jConfirm for confirm dialog with success. For first time i tried

  • 0

I am using jConfirm for confirm dialog with success.

For first time i tried to call it inside the ajax success but seems to fail.

Here is the code:

    success: function (j) {   
    if(j.status)
    {

     jConfirm('File Already exist.Are you sure you want to replace ?', 'File Exist', function(r) {
         if (r==true)
      {   }
      else 
      {  
               //code for cancel
      }
     });
    }
  }//success

The problem is that the dialog is show but does not wait for user answer and continues.

When change to classic javascript confirm everything works fine!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T16:37:52+00:00Added an answer on May 19, 2026 at 4:37 pm

    jConfirm is an asynchronous method.
    As you’ve noticed, it returns immediately, without waiting for the user to close the dialog.

    You need to put all of your code in the jConfirm callback.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using CI for the first time and i'm smashing my head with this seemingly
Using import datetime in python, is it possible to take a formatted time/date string
Using PL/SQL, how can I remove sentences, except the first occurrence of a sentence
Using jQuery I'm trying to obtain the rotation state of an object but in
Using MVC2 I have an AJAX form which is posting to a bound model.
I am using Jconfirm together with jQuery to make a confirmation box. The problem
I have an anchor on click of which I want to call jquery's jconfirm
Using the navigator.geolocation object in JavaScript. Trying to establish accurate ranges, but wondering exactly
Using batch script, I want to get a first token of a line delimited
Using Python, I'm trying to connect to my AppEngine app's remote_api handler, but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.