O'Reilly logo

CouchDB and PHP Web Development Beginner's Guide by Tim Juravich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using jQuery to improve our site

Now that we have jQuery, let's jump right into using it to improve our site a little bit. There are a lot of different ways in which you can write the jQuery and JavaScript code, but we're going to stick to the absolute basics in this book and try to keep it simple.

Fixing our delete post action to actually use HTTP delete

One of the things you might have noticed early in the last chapter is that when we coded the deletion of posts from the user's profile, we actually used the GET HTTP method instead of the DELETE method. This is because it's difficult to trigger a DELETE route without using JavaScript. So, in the following section, we're going to improve the deletion process in order for it to work as follows: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required