jquery ajax callback context changed

Posted by bower on September 22, 2010
javascript

http://boersenalltag.de/gsc_research_blog/newsletter_anmeldung/ 分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

click to investigate the context in ajax call back is not the same one I pass in to it, at lease in IE its not, I think it just been cloned
since I got the problem in IE, and I debug it for 2 hours and find the problem.

what to expect after dating for 2 years

rencontre oloron my solution: don’t use context in ajax call since it is not the real one, use proxy function
$.ajax({
type: “POST”,
url: this.url,
data: this.urlParam,
ele: this.ele,
success: $.proxy(this.callback,this.context)
});

comment rencontrer à 40 ans so, the context in the callback function is the same one I passed

additional info and the problem in IE solved.

rencontre gratuite bassin arcachon 所以不能太相信jquery

note musique rencontre du troisieme type https://www.orthodonticpartners.net/mirtyew/4968 分享到:人人网开心网腾讯微博新浪微博豆瓣分享腾讯空间百度搜藏腾讯书签

visit site 分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word