Archive for March 2010

Ignoring xml tag case in AS3 (E4X)

Sometimes in flash you need to get an XMLList from tags while ignoring tag case.

<xml>
<tagName>contents</tagName>
<TAGNAME>contents</TAGNAME>
</xml>

I have a class that extracts XHTML from the page where a swf is embeded. Works great except different browsers return different case for tags. Below is the snippet I used to get a node list no matter the tag case. [...]

Simple Ajax loading with Jquery

For the sake of my memory I’m posting a simple jQuery ajax routine.

$(’a.ajax-enabled’).click(function(evt){
evt.preventDefault();
$(’#content’).load($(this).attr(’href’) + ‘ #content’);
});