GithubHelp home page GithubHelp logo

Comments (7)

tentonaxe avatar tentonaxe commented on May 20, 2024 1

For reference:
https://stackoverflow.com/questions/4007942/
https://stackoverflow.com/questions/17566315/
It doesn't make sense for either FormData or $.fn.serialize to include that information because those methods can be called at any point in time inside or outside of a click event. that key/value pair has to be added manually.

from eldarion-ajax.

paltman avatar paltman commented on May 20, 2024

Do your buttons have name attributes?

from eldarion-ajax.

graingerkid avatar graingerkid commented on May 20, 2024

Yea - if I remove the ajax class it works fine, also.

                  <button class="button is-primary is-outlined next" name="button_action" type="submit" value="tweet">
                    <span class="icon">
                      <i class="fa fa-twitter"></i>
                    </span>
                    <span>Tweet</span>
                  </button>
                  <button class="button is-info is-outlined next" name="button_action" type="submit" value="save">
                    <span class="icon">
                      <i class="fa fa-save"></i>
                    </span>
                    <span>Save</span>
                  </button>

from eldarion-ajax.

graingerkid avatar graingerkid commented on May 20, 2024

I've tried it as <input ...> fields, too.

from eldarion-ajax.

paltman avatar paltman commented on May 20, 2024

Hm...

I just use FormData or jquery’s serialize to capture all the values. I’ll need to read about/dig into those APIs and figure out what’s happening.

from eldarion-ajax.

graingerkid avatar graingerkid commented on May 20, 2024

ok, thanks for your help

from eldarion-ajax.

paltman avatar paltman commented on May 20, 2024

@tentonaxe thanks for that link. i was just coming back here to post something similar.

I wonder if #81 would allow you to then set hidden inputs.

from eldarion-ajax.

Related Issues (20)

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.