IE Ajax Caching Issue

Internet explorer seems to feel the need to cache everything, which can turn a simple ajax request into an IE nightmare. Add this to the top of your php script, and all your IE Ajax caching problems will be solved!

IE Ajax Caching Issue

Mootools Ajax Example

Here’s a quick example of an ajax request with Mootools. the code below is from sandmoose.com. However I have modified it to get the data using the twitter search api. So the script contains 4 functions, the first function ‘initializeContainer’ …
Continue reading

Mootools Ajax Example

Mootools auto font size adjustment

After browsing the vast space that is the internet, i stumbled upon a great piece of code that, depending on the number of words in a div automatically adjusts the font size. This could be really useful if you have …
Continue reading

Mootools auto font size adjustment

PHP cookies Quick

Cookies are mainly used to authenticate a users session, they are small packets of data that are stored in the web browser that allow a website to match specific user information to that in the database, thus authenticating the user. …
Continue reading

PHP cookies Quick

Using the Twitter Search API

Twitters new search feature is great for finding interesting people and topics to follow. So i wrote a script to get search results from twitter and display them on your site. This could be integrated into an existing application or …
Continue reading

Using the Twitter Search API

Replace a divs contents with jQuery

I had a problem a while back where i needed to put the contents of a div into another div, the reason for this was because i couldn’t access the source code of the page to modify the div contents, …
Continue reading

Replace a divs contents with jQuery

Using PHP and CSS to make a simple graph

Here’s an easy way to display a simple percentage graph using PHP to work out the percentages and do the maths and CSS to display the data on our page. Here’s the demo. First you need to copy the CSS …
Continue reading

Using PHP and CSS to make a simple graph