tutorials

My knowledge-sharing playground, which mostly contains PHP & JavaScript related stuff.

how to build a quick ‘n’ dirty WordPress plugin

how to build a quick ‘n’ dirty WordPress plugin

Let’s say that you’ve in the process of writing a new e-book and you want to give the opportunity to your blog readers to submit their details in a form so they can receive a notification when the e-book is ready. You need a plugin. Ok, there are a few mailing list plugins out there that you can use quickly, but the point of this article is to show you how you can build such a plugin from scratch so you can modify it in any way you want, etc. You get the idea, so let’s start.

Read more →

how to feed jQuery UI’s Autocomplete with a database-generated dataset

how to feed jQuery UI’s Autocomplete with a database-generated dataset

Recently, I had to use jQuery UI’s Autocomplete widget. Its use is straightforward when you have a static datasource. When the datasource is larger though (from a few thousand to several million records) and you need to feed the Autocomplete widget with a remote dataset (provided in the example by a php script which queries a database) this are becoming a bit more complex because the documentation is a little vague on the matter and it lacks of a proper example.

Read more →