All Posts in the ‘javascript’ Category

jQuery Serialize Function

Posted on: December 12th, 2011 by richardreay

I discovered this super useful jQuery function recently when I was working on a project, you run this on a form and it converts the form elements into a query string representing the state of the various elements, a simple method for creating a query string to be used with AJAX updates:


Read More ..

CSS3 + jQuery Tabs

Posted on: August 18th, 2011 by richardreay

View Example

I made a really simple script for some standard jQuery tabs using CSS3 to make the tabs rounded with a gradient, no images involved.


Read More ..

Create a jQuery Image Slider

Posted on: August 16th, 2011 by richardreay

View Example

I decided to make a jQuery image slider however I went down a few blind alleys logic-wise before settling on the method I used, I’ll explain how I ended up coding it and the problems I had with some other ways I tried.


Read More ..

JavaScript AJAX Initialisation Function

Posted on: July 11th, 2011 by richardreay

If unable to use jQuery this is a vanilla JavaScript AJAX initialisation function for use with an XML file.

// ajax initialisation function
function makeRequest(url) {
	http_request = false;
	if (window.XMLHttpRequest) { // Mozilla, Safari
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType) {
			http_request.overrideMimeType('text/xml');
		}
	}

Read More ..

© Richard Reay, A Whitley Bay Web Designer