jQuery Build Dropdown From AJAX

In a recent project I had to correct a lot of AJAX requests that will populate a HTML select dropdown, in this post I'm going to show you a quick snippet of how to handle the return of the AJAX request and populate a dropdown with the response. First we start off by creating a HTML dropdown on the page with an ID attribute. Next we create an AJAX POST

Read more...

Display DateTime Object In Twig

If you try to display a DateTime object in Twig you will get an error that Twig can not treat the DateTime object as a string. There are two ways you can get around this problem the first is either within the PHP or you can use Twig filters. Twig Filter Twig filters are very useful to convert the values of a variable in twig, allowing you to either convert

Read more...

Free Files For July 2015

Each month the Envato marketplace brings you free premium files. Envato is a web marketplace where you can get premium files for different areas of your website. My favourite marketplaces are the script marketplace CodeCanyon and the theme marketplace ThemeForest. Here are the files which you can get for free for July 2015. Easy Cronjob Web Handler 51 purchases at the price of $16. Need a easier way to control

Read more...

Flexbox Playground

In a previous tutorial I wrote about how you can get started with Flexbox and some of the attributes you can use to customise it how every you want. But you can't really start to understand Flexbox and how it can be helpful until you either look at a couple of different examples or you are able to have a play for yourself and experiment what you can do. Here

Read more...

Free Files For June 2015

Each month the Envato marketplace brings you free premium files. Envato is a web marketplace where you can get premium files for different areas of your website. My favourite marketplaces are the script marketplace CodeCanyon and the theme marketplace ThemeForest. Here are the files which you can get for free for June 2015. Ultimate Paid Referral System 66 purchases at the price of $14. It is the procedure to start

Read more...

Colours With Sass Map

Here is a quick CSS snippet on how you can use Sass maps to create a colour list for your project. Sass maps are a nice way of creating lists, you can do multiple things with lists you can either loop through all of them or you pick a specific element from the list. If you've used other programming languages before a Sass map is essential an array of key

Read more...

Doctrine Date Modified On Update

Doctrine is a set of PHP class libraries that are focused on database storage and database management. The main projects with Doctrine are the ORM (Object Relational Manager) and DBAL (Database Abstraction Layer). Using these two projects Doctrine allows you to build up database entities in PHP code that will represent your application's database structure. Having PHP classes to construct your database structure means that you can use fully object

Read more...

Disable Emojicons Introduced In WordPress 4.2

As of WordPress version 4.2 WordPress enabled the use of Emojicons in your posts, but in order to do this it will automatically add some javascript to your page. But if you don't use Emojicons then it's adding pointless Javascript to the page which you will never use. If you look inside the file /wp-includes/default-filters.php you will see all the filters and actions that are used to add the emoji

Read more...

Add Required Asterisk With CSS

A red asterix is a common approach in website UX to show that a form field is required to be filled out by the using before submitting the form. Therefore when creating the form you will have to remember to add this in the HTML where you want the asterisk to appear which is commonly after the label of the form field. Then all you need to do is add

Read more...

Free Files For May 2015

Each month the Envato marketplace brings you free premium files. Envato is a web marketplace where you can get premium files for different areas of your website. My favourite marketplaces are the script marketplace CodeCanyon and the theme marketplace ThemeForest. Here are the files which you can get for free for May 2015. Facebook Events Calendar WordPress Plugin 123 purchases at the price of $19. Facebook Events Calendar WordPress Plugin

Read more...

1 2 3 4 5 6 7 8 9 71