The following code loads html content from a file (i used this thread)
You scoping of this is incorrect. You need to save your this to a variable outside of the ajax success function and reference it from that variable
this