DEANO.ME

Languages

 

Here’s a strange one for you… We all know that parseInt() is a really useful function for converting a string into an integer. It enables us to take a string, convert it to a number, perform mathematic equations and get the result we are looking for. However today I was converting some strings into numbers […]

 

I recently decided to implement the Ebay Partner Program into my website as the Google Affiliate Network was making me nothing. One of the biggest problems though is, when using the “Widgets” you do not get Geo Targeting, so you have to create a different Banner for each country and implement a way to target […]

 

Today I have been messing with Google Minify for work, if you have not heard the term “minified” before, or if you have and wondered what it meant, then your probably wondering what it does? In a nutshell, minified code means code which has been stripped of it’s clean, tabbed, readability and crushed up into […]

 

My current project requires quite a bit of date > timestamp and timestamp > date converting, mainly so I can store timestamps in a database instead of string dates. This has lead to a bit of frustration when modifying the database by hand – What does 1320969600 MEAN!?!?! Anyway I decided to create a small […]

 

This one has been causing me to rip my hair out, literally! So here is the scenario… You have an element in your DOM that contains some text, you wish to fetch that text and set it as the page title dynamically. So thinking this is the easy part of your JavaScript for today, you […]

 

Recently I decided to upgrade a clients administration panel from the old FCKEditor to the new CKEditor – however after installation I realised the FileManager was missing… So I started trawling the internet looking for an alternative. I came across this very useful guide which I followed step-by-step and it was so easy!! I successfully […]

 

Arrays are an amazingly useful variable in all programming languages, they allow you to store vast amounts of organised data in just one reference. This helps not only on software memory usage and speed – But also on program complexity and code neatness. I’m going to explain by example many different ways you can define […]

 

Pulling your hair out over this Notice message? Well here is an explanation for why you are getting this and how you can avoid it. Take a look at the following code: <?php class myClass { public $var = 1; public function &getVar() { return($this->var); } } $obj = new myClass; $value = &$obj->getVar(); ?> […]

 

Google Analytics is a great way to track the visitors on your websites, however what if you are using AJAX for website navigation? Fortunately Google have everything under control, you can easily tell Analytics that the user is loading another page by using _trackPageView. You should already have the latest Google Analytics tracking code called […]

 

Recently I have had a nightmare of a problem with an apparent rendering bug in IE7 + IE8 which had all the hallmarks of the “peakaboo bug”. Firstly, here is a quick explanation of my problem: AJAX fetches content into an element on the page, in ALL other browsers this content appears and works normally […]

Share
Share
+1
Tweet
Share
Pin
0 Shares