DEANO.ME

Javascript

 

There is a mobile optimized version of this page, view AMP Version. 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 […]

 

There is a mobile optimized version of this page, view AMP Version. So this is something I was implementing today. And as I usually do with these sorts off tasks, I did a search on Google to see if there were good/bad methods to accomplishing the task I required. However the first result (which had […]

 

There is a mobile optimized version of this page, view AMP Version. Isn’t it annoying when you have a website that uses AJAX to load each page of the site, but the URL in the address bar just stays as the URL to the entry page to the site? Well it’s not just annoying its […]

 

There is a mobile optimized version of this page, view AMP Version. 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 […]

 

There is a mobile optimized version of this page, view AMP Version. 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 […]

 

There is a mobile optimized version of this page, view AMP Version. 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 […]

 

There is a mobile optimized version of this page, view AMP Version. 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 […]

 

There is a mobile optimized version of this page, view AMP Version. 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 […]

 

There is a mobile optimized version of this page, view AMP Version. 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 […]

 

There is a mobile optimized version of this page, view AMP Version. 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 […]

+1
Tweet
Share
Share
Stumble
Pin
Email
Shares 0