Created
February 13, 2012 05:21
-
-
Save anonymous/1813906 to your computer and use it in GitHub Desktop.
TheAbacus - pastebin.com/qY1e6sjm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JavaScript Document | |
function Temp() { | |
var test = "testing"; | |
} | |
Temp.prototype.init = function() { | |
$.ajax({ //IE errors here. | |
url: "xd_subnav.xml", | |
dataType: "xml", | |
success: function(xml) { | |
alert(this.test); | |
}.bind(this) //The "bind" here is what I believe is the problem. However, without it, how do I access the variable test? | |
}); | |
} | |
a = new Temp(); | |
a.init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment