Skip to content

Instantly share code, notes, and snippets.

@emberian
Forked from anonymous/gist:1813906
Created February 13, 2012 05:23
Show Gist options
  • Save emberian/1813914 to your computer and use it in GitHub Desktop.
Save emberian/1813914 to your computer and use it in GitHub Desktop.
TheAbacus - pastebin.com/qY1e6sjm
// JavaScript Document
function Temp() {
var test = "testing";
}
Temp.prototype.init = function() {
test = this.test;
$.ajax({ //IE errors here.
url: "xd_subnav.xml",
dataType: "xml",
success: function(xml) {
alert(test);
}
});
}
a = new Temp();
a.init();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment