Skip to content

Add an example using an ajax request #69

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

Closed
94noni opened this issue May 21, 2015 · 14 comments
Closed

Add an example using an ajax request #69

94noni opened this issue May 21, 2015 · 14 comments

Comments

@94noni
Copy link
Contributor

94noni commented May 21, 2015

Hello,

I think it can be useful to show a mini example of how Symfony deals with ajax request.

  • Form the view with javascript code to the controller handling and sending json or html directly
  • GET (and POST maybe) request(s)

Any thoughts?

@JulienItard
Copy link
Contributor

I agree that's a good idea. Maybe could we use ajax when deleting post ?

@sebastianblum
Copy link

AngularJS example would be nice

@JulienItard
Copy link
Contributor

I disagree with AngularJS because i think that it should stay a Symfony tutorial only.

@94noni
Copy link
Contributor Author

94noni commented May 24, 2015

-1 for angular, it is not the purpose of the symfony demo

A simple use case with get (querying something simple) just to see the front code and back handling will be enough IMO

@94noni
Copy link
Contributor Author

94noni commented May 24, 2015

Doing a mini ApiController and consume it from the front can be a simple implementation

And it could as well show how to build an api with a sort of rest concepts (basic concepts)

@b-durand
Copy link
Contributor

👍

@hason
Copy link
Contributor

hason commented Jul 8, 2015

👍

@anacona16
Copy link

+1

3 similar comments
@peshi
Copy link

peshi commented Jul 28, 2015

+1

@TomasVotruba
Copy link

👍

@ghost
Copy link

ghost commented Aug 8, 2015

👍

@haithem-rihane
Copy link

👍

@elkuku elkuku mentioned this issue May 24, 2017
@javiereguiluz
Copy link
Member

Closing it as fixed by #173 and #613.

@TomasVotruba
Copy link

Thanks

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

10 participants