Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload on ajax #25

Open
PSzczepanski1996 opened this issue Dec 3, 2018 · 1 comment
Open

Reload on ajax #25

PSzczepanski1996 opened this issue Dec 3, 2018 · 1 comment

Comments

@PSzczepanski1996
Copy link

PSzczepanski1996 commented Dec 3, 2018

How to reload this plugin after ajax request?

$('#id_input').keyup(function(e){
        let url = index_url;
        $.ajax({
            type: "POST",
            url: url,
            data: {
                'input': $('#id_input').val(),
                'offer_type': $('#id_offer_type').val(),
                'category': $('#id_category').val()
            },
            success: function (data) {
                $('#offer-objects').html(data);
            },
            complete: function(){
                SwiperReload();
            },
        });
    });

Something like that. If recaptcha is inside div with ID offer objects (#offerobjects) it does not load after ajax request finished (inside success function).

Any ideas?

@kbytesys
Copy link
Owner

I think that the real problem is the activation from the google script. Did you tried to use the explicit version and to call the activation call after the ajax update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants