1-866-277-9958

AJAX

AJAX

AJAX, an acronym for asynchronous JavaScript and XML, describes development techniques to create more interactive and dynamic applications and websites.

Error "Access to restricted URI denied" when making AJAX cal

Solution: 

jQuery as of version 1.2 has a new dataType setting that works around this problem. It can only be used with the .ajax function, not .get or .post.

Example syntax

	$.ajax({
		type: 'GET',
		url: stats_counter_url,
		data: { 'action':'impression', 'venueid':venueid, 'pn':pn, 'filter':filter, 'ads':ads},
		dataType: 'json',
		jsonp:'jsonp_callback',
		success: function(data) {
			alert(data);
		},
	});

Safari-Like Search Inputs

By default search inputs are notoriously ugly. Just look at what they are: a plain text input. But Apple had the great idea to make a search widget for Safari that looks like this:

Safari Search Input

This is probably nothing new, it's been around for quite a while, but the code used to create the field (input type "search" instead of "text") does not validate and only works in Safari. So what happens when you like the search field and what to use it on other browsers?


Get Drupal help when you need it most! Find hundreds of great tutorials. Track, rate, comment and more. Create Account

Ajax Style Image Loaders With CSS

This is just a nifty little trick to add a simple ajax-style loader graphic to your images. It works great for image galleries or anywhere it might take a few seconds for an image to load initially. It's all done with a little css and takes just a couple of minutes to do.


Get Drupal help when you need it most! Find hundreds of great tutorials. Track, rate, comment and more. Create Account

The Practicality of Perfect Compliance

I am a web standards geek. I am a novice, but I definitely try to do it the W3C way if it's possible. I feel it's made me a much better developer, having improved both the quality of my work and my understanding of the technologies as a whole. I write pretty clean markup, and go out of my way to separate the various layers of a web page.


Get Drupal help when you need it most! Find hundreds of great tutorials. Track, rate, comment and more. Create Account
Syndicate content
Syndicate content

©1999 - 2011 LevelTen Interactive - Dallas, TX