GithubHelp home page GithubHelp logo

Comments (11)

JanTvrdik avatar JanTvrdik commented on July 23, 2024

That's because in AJAX requires Nette does not differentiate between POST a GET parameters.

from forms.

rostenkowski avatar rostenkowski commented on July 23, 2024

Who requires it? Whether it is AJAX or not is irrelevant, isn't it? POST data should be separated from query string parameters.

from forms.

Majkl578 avatar Majkl578 commented on July 23, 2024

This is an issue of nette/application, not nette/forms, see here.

@JanTvrdik: Is that in some RFC or something?

from forms.

rostenkowski avatar rostenkowski commented on July 23, 2024

@JanTvrdik I can't find any material about joining GET and POST parameters in AJAX. Can u please provide some link?

from forms.

fprochazka avatar fprochazka commented on July 23, 2024

@rostenkowski Application/UI/Presenter.php

from forms.

Majkl578 avatar Majkl578 commented on July 23, 2024

@fprochazka: I already provided link to that, but @JanTvrdik should provide reference for "AJAX requires Nette". I don't think AJAX requires such thing in any way.

from forms.

fprochazka avatar fprochazka commented on July 23, 2024

@Majkl578 that was most likely typo and I don't see how bashing @JanTvrdik about making a typo helps to resolve this issue.

from forms.

Majkl578 avatar Majkl578 commented on July 23, 2024

To be honest, I was not sure whether it was a typo or not and I was curious if it is something real or not. But the only reason I came up with was easiness to use with jQuery's $.get/$.post. No bashing.

from forms.

rostenkowski avatar rostenkowski commented on July 23, 2024

I am not sure what typo are u talking about... if @JanTvrdik meant that "Nette requires it..." there is no point to continue with that discussion...

So what about make this real (documented) feature?

Why join only the GET and the POST parameters and only in AJAX?

What about to join the parameters always and remove Request::getPost() method? We have no getPut() neither getDelete() methods.

This is IMHO the way to be more HTTP method independent.

What do u think?

from forms.

xificurk avatar xificurk commented on July 23, 2024

What do u think?

That this is not related to forms at all ;-)

from forms.

rostenkowski avatar rostenkowski commented on July 23, 2024

Maybe ;) But some opinions may be valuable :)

from forms.

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.