Code Monkey home page Code Monkey logo

Comments (3)

demogorgorn avatar demogorgorn commented on June 12, 2024

Hello! Why not? I use this button with activeform. Try to delete the form action here:

<?php $clubForm = ActiveForm::begin([
            /*'action' => Url::to(['club/ajax-create']),*/
        ]); ?>

also, maybe the server doesn't succeed to make in time the execution of the ajax request?

from yii2-ajax-submit-button.

waza-ari avatar waza-ari commented on June 12, 2024

Hi! Thank you for your answer. Sorry, the action was only added for testing purposes, the described behaviour also happens if the section is not there.

At the current stage in development, the server is running local on my laptop, and the request is a simple creation of one new database entry - this should not be the issue. For the moment, I just created a button and a few lines of JS myself, and this works - however I will try this extension again and provide further details. I cannot give an exact point in time, though.

from yii2-ajax-submit-button.

demogorgorn avatar demogorgorn commented on June 12, 2024

Now its working with ActiveForm (including client validation)
Please see 00a41eb

from yii2-ajax-submit-button.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.