DEANO.ME

Guides

 

Recently I have been working on a project for work that allows customers to book train tickets and a hotel in one package (saving them money), how the system is working is the user first selects there train travel, after which they are shown all the hotels on a Google Map. This map also shows […]

 

Firefox (and perhaps other browsers) seems to have a bug when it comes to using the scroll wheel on an embedded Google Map. Quite often the page will also scroll when you use the wheel to zoom in and out, this is really frustrating and made worse by the fact it doesn’t always happen! I’ve […]

 

parseInt() is an incredibly useful function which is available in some form in all programming languages, however in JavaScript there is one slightly annoying difference… Unlike in other languages which either throw an error or just assume 0 when a string cannot be converted to an integer, parseInt() returns “NaN” which means “Not-a-Number”. This is […]

 

Those of you who are familiar with PHP know a very useful function called explode() which takes a string and a delimiter and splits the string into an array using the delimiter as the splitter. So for instance a string “this|is|a|test” can be split up into an array where: [0] =  this [1] = is […]

 

If your looking to find out if an element your about to select using ID, class and/or element type exists or not then you can do this using JavaScript, or if your implementing jQuery you may as well keep your code concise and use the jQuery method explained further down. JavaScript So here is an […]

 

Hey everyone ,So recently I noticed that Google had indexed my whole Development server! To combat this I immediately inserted a robots file into the root of my Apache server so that Google would stop indexing everything. After a month it was still listing pages for my development server but was no longer updating (so […]

 

Recently I needed to grab the users attention if they attempted to submit a form that had errors, now when the button is first clicked a box is shown with the error they must fix. But if they clicked the button again (in frustration because perhaps they had not noticed the error box appearing) I […]

 

Java provides built-in support for threading tasks in your application, and it’s very simple to implement and use! There are several ways you can setup more threads in your application, I will explain each and give an example. What is multi-threading and why should I use it? multi-threading allows you to run another task , […]

 

Here’s a neat tool if you are looking to utilize CSS3’s new gradient backgrounds feature. It adopts a Photoshop like interface, making it super easy to generate custom gradients. This online tool also provides some backwards compatibility for IE although when I was checking it out radial gradients just appeared as vertical in IE which […]

 

A friend of mine named Porfirio Ribeiro once made this great set of functions to enable easy use of cookies from JavaScript. Hopefully some people will find this useful, feel free to re-use and re-distribute as long as you retain the original credit alongside any further credit if you modify or extend the functions. Here […]