Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    jellankitz
    @jellankitz
    hello
    Matthieu Napoli
    @mnapoli
    hi
    mikekarl
    @mikekarl
    hi
    pablovidelayanez
    @pablovidelayanez
    hi everybody
    this tools it's amazing!
    mkolmogorov
    @mkolmogorov
    Hi there
    Is there any way to use it with composer?
    Matthieu Napoli
    @mnapoli
    hi @mkolmogorov, nope sorry. It works with bower though
    stuckyhm
    @stuckyhm
    hi, can you add a cancelButtonClass?
    Matthieu Napoli
    @mnapoli
    @stuckyhm yup feel free to submit a pull request
    NMitchell24
    @NMitchell24
    Hello, I have an interesting circumstance. I have a jQuery.confirm prompt that calls an ajax action. If this ajax action I need to either reload the confirm prompt so that it has different text and options, or display another confirm prompt. When i tried putting this inside the confirm to call another confirm, it does not display the second confirm because there is already one open on the page. Does anyone know how to do this?
    *If the ajax action returns 'error'
    Matthieu Napoli
    @mnapoli
    @NMitchell24 I guess this is maybe because the plugin creates only one modal and reuse it, so you can't create a second one. If that's the case you can try to do a pull request to fix that. But your use case is pretty specific, usually I tell people that jquery.confirm is just meant to cover a classic use case to save people's time but it's not meant as a super generic library, so don't be afraid to reimplement what you need exactly.
    NMitchell24
    @NMitchell24
    Thank you.
    depeter
    @depeter
    Great, simple and nifty plugin. Thanks for that!
    Matthieu Napoli
    @mnapoli
    @depeter Always glad to read that ;)
    narenjangra
    @narenjangra
    can anyone tell me how to add confirm modal #id to multiple links
    Matthieu Napoli
    @mnapoli
    @narenjangra what do you mean by modal #id?
    narenjangra
    @narenjangra
    i mean to id for a href link that i use for open a confirm window popup
    <script>
    $("#iConfirm").confirm();
    </script>
    Matthieu Napoli
    @mnapoli
    I'm not sure I understand but if you have several links, you could add a confirm class on all of them, and then you can add confirm on all of them at once:
    $(".confirm").confirm();
    narenjangra
    @narenjangra
    ok i have to chek
    Thanks a lot manopli sir this was work
    Matthieu Napoli
    @mnapoli
    cool!
    narenjangra
    @narenjangra
    can you tell me one more thing
    after confirm window open if i click on yes the link should open in new tab but it was in open in same window
    Matthieu Napoli
    @mnapoli
    yes I don't think target="blank" is supported by the confirm box
    narenjangra
    @narenjangra
    ye you right
    thats not working
    any other solution
    narenjangra
    @narenjangra
    hey mnapoli sir are you there???
    Matthieu Napoli
    @mnapoli
    @narenjangra you would have to code that yourself in javascript I guess
    cankocoglu
    @cankocoglu
    hi, I want to close the confirm dialog programmatically, I use web sockets, when a message comes, if confirm dialog is open, I want it to be closed. is it possible?
    userDotNetMVC
    @userDotNetMVC
    Hi
    i have multiple links with different id. How to get the id in confirm
    this is button
    <button class="btn btn-primary complexConfirm " id="@file.idFile">Delete</button>
    this is javascript
    $(".complexConfirm").confirm({
    title: "Delete confirmation",
    text: "Are you sure you want to delete this file?",
    confirm: function (button) {
    $.ajax ({
    url: '/File/DeleteFile/',
    data: JSON.stringify({id:id}),
    contentType: 'application/json; charset=utf-8',
    José Luis Herranz
    @jherranzm
    @userDotNetMVC I have the same question as you do. Do you know how to solve it yet? Thanks in advance for your answer!
    José Luis Herranz
    @jherranzm
    Hi again,
    I have printed all the properties of the object "button", in your case, but none of them was something like the "caller" or the "id" of the element clicked. Is there any way to pass this info and use it in the confirm method?
    userDotNetMVC
    @userDotNetMVC

    Hi @jherranzm this is how i solved this

    <script>
    $(document).ready(function () {
    var id;
    var deleteElement = null;
    $(".complexConfirm").click(function() {
    id = this.id;
    deleteElement = $(this).parent();
    // deleteElement = this.parent();
    });
    $(".complexConfirm").confirm({
    title: "Delete confirmation",
    text: "Are you sure you want to delete this file?",
    confirm: function (button) {
    $.ajax ({
    url: '/File/DeleteFile/'+id',
    contentType: 'application/json; charset=utf-8',
    async: true,
    processData: false,
    cache: false,
    success: function (data) {

                deleteElement.fadeOut(2000, function () {
                    $(this).remove();
                });
                id = null;
                deleteElement = null;
                //   $('#removeProject').modal('hide');
            }
        })
    
    },
    cancel: function (button) {
    
    },
    confirmButton: "Yes",
    cancelButton: "No"

    });
    });

    This message was deleted
    José Luis Herranz
    @jherranzm
    Hi @userDotNetMVC , thank you for your answer! So you have to create two functions, and always click function is performed before .confirm function. Am I right?
    I have also managed to get the id. I have realized that is there a property attr in your "button" object. When you call button.attr('id') you get the id you are looking for.
    ivanute
    @ivanute
    Hi there, I'm new here and I hope I'm following the right way for this issue
    I have successfully implemented jquery.confirm. The way it works for me is:
    Whenever the user click any link in my site that point outside my site (ex. apple.com) will pop up a dialog asking the user to confirm the action
    I would like to know if there is a way to open those links in new window/tab after user click OK in the confirmation dialog?
    Many thanks for your help!
    Matthieu Napoli
    @mnapoli
    @ivanute you would have to implement it manually using a handler (the confirm option)
    ivanute
    @ivanute
    Thank you very much @mnapoli Unfortunately my JS knowledge is very limited and I don't really know how to accomplish that.
    Would it be possible for you to orientate me a little bit more? Many thanks in advance.
    ivanute
    @ivanute
    Hi @mnapoli, hope you are well. I understand this is not easy to accomplish and you wouldnt be able to help me? Thanks anyway and sorry for asking too much.
    padgett59
    @padgett59
    i'm trying to use with MVC5 project
    just installed the libraries