Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts

Thursday, April 9, 2009

Duplicate content of Ajax call using facebox with jQuery in Internet Explorer

Problem: In Internet Explorer 7, populating once facebox lightbox using Ajax call works fine but if I repeat that calls it starts duplicating the content of the lightbox, gave impression that it appends new call at the end of already populated content and only doing hide and show of the lightbox content.

Solution: After debugging I noticed that in my Ajax call I am calling a whole web-page including HTML and BODY pair tags. So removing HTML tags and only fetching relevant DIV content solved my problem :)