Hi I am using jquery to have the sliding effect, kwicks effect, slideup and fancybox in a single page. everyhting works perfectly until the ajax postback but after that none of the jquery functions seems to work. any ideas will be great
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It looks as though your UpdatePanel is breaking your javascript. The key is to remember when it does a postback these are not the same elements that your javascript was originally tied to. Rebinding after the postback will fix your problem; all this requires is tying some javascript calls to a Microsoft provided call back function:
The PageRequestManager will call the BindEvents function after each post back. This can go any where on the page as long as it is there prior to the postback.