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

  • SEARCH
  • Home
  • 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 8839481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:14:48+00:00 2026-06-14T10:14:48+00:00

I am using jquery ajax in conjunction with $.confirm and I need to figure

  • 0

I am using jquery ajax in conjunction with $.confirm and I need to figure out how I can load a codeigniter controller/method in response to the $.confirm. Here is the code:

$.ajax({
    url: sURL + "utility/ajaxFind_In_tblClients",
    type: "POST",
    data: {ClientNum: ClientNum},
    dataType: 'json',
    success: function(json) {   
    $.confirm("The email address registered to this account is:\n\n"      
        +json.ClientEmail+
        "\n\nSend password recovery information to this email address?"+
        "\n\nIf you need assistance, please call 888-526-9999.",
        //YES
        function(){ 

        //need to load a codeigniter controller here        

            $.msg("Password recovery information has been sent.\nPlease check your inbox",
            {header:'Password Sent', live:10000});
            $('#ajaxShield').hide();
        },                      
        //NO 
        function(){
            $.msg("Password recovery information has NOT been sent.",
            {header:'Password Not Sent', live:10000});
            $('#ajaxShield').hide();
        } 
    ) //end of confirm
  }, //end of success: function(json), could be YES or NO inside
    error:function (xhr, ajaxOptions, thrownError){ alert('Problem with utility/ajaxFind_In_tblClients  Status code:'+xhr.status+', Error:'+thrownError);} 
});

Looks like I need help for what to do at line 14. I don’t know how to load the codeigniter controller after the user responds “Yes” to the $.confirm. Any ideas? Thanks.

  • 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-06-14T10:14:49+00:00Added an answer on June 14, 2026 at 10:14 am

    Create a function:

    function send_email(email){
        $.ajax({
            type:'post',
            url: '/email_controller/send_email',
            data: 'email='+email,
            error: function(){},
            success: function(){}
        }
    }
    

    and call it in your YES function

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

Sidebar

Related Questions

I am using jQuery ajax method to get response from my server. Here's my
Using jQuery AJAX, can we call a specific JAVA method (e.g. From an Action
I am using jQuery ajax to pass a string array to a page method.
So I have a system using jQuery AJAX to load the content dynamically. I
By using jquery ajax function, I can do something like: $.ajax({ url: url, type:
I am using jquery ajax method on my aspx page to call a web
I am using jquery ajax method on my aspx page,which will invoke the webmethod
I am using jquery ajax($.ajax) method to get a json object from c# webmethod.This
I am using Jquery.Ajax and want to do some addition with the ajax response
I'm using jQuery .Ajax to call a method from my codebehind which must be

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.