Are you getting errors when loading XML with Internet Explorer? Ever wanted to place a piece of XML in an HTML page and load it up with a GET request? Having trouble with the mime type of XML documents?
Since IE’s problem is its xml parser chokes on xml files that are not passed down using the correct “text/xml” header.. This jQuery plugin will get you up and running quickly.
PLugin code
(function ($){
$.fn.getXML = function (url, callback) {
$.ajax({
type: "GET",
url: url,
dataType: "xml",
success: function(xmlDoc, status){
callback(xmlDoc);
},
complete: function(xhr, status){
if(status == 'parsererror'){
xmlDoc = null;
if(window.DOMParser){
parser = new DOMParser();
xmlDoc = parser.parseFromString(xhr.responseText, "text/xml");
} else { // Internet Explorer
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = "false";
xmlDoc.loadXML(xhr.responseText);
}
callback(xmlDoc);
}
},
error: function(xhr, status, error){
console.log(status, error);
}
});
};
})(jQuery);
Usage
You can both use inline function or an external function to parse the results of the ajax request.
$(function(){
//inline function
$.getXML('test.xml', function(data){
alert(data);
});
//external function
$.getXML('test.xml', parseXML);
function parseXML(data){
alert(data);
}
});
That’s it!

Since
Caching is great for production sites and should be configured. However during development it can be a royal PITA. Below a few rules you can put in your .htaccess file when your site is on apache hosting. The benefits of caching your site are not always obvious:
When working with Flash video I always end up using extra time finishing a project. This is mainly because I get these project not so often. So everytime I have to create video content I have to brush up my as3 video skills.
Make sure you export your movie as .flv. F4v doesn’t support cue points. Cue points are a feature of the FLV video container format. FLV is a proprietary format developed specifically to complement Adobe Flash.
I use a free 