just find a solution, when you use jquery ajax, and there is document.write after that, it will clear all your content..
all u need to do is create a span, where you want to write that content. then.. overwrite document.write function to write into that span instead doing document.write..
here is the sample
span id="test" /span
script document.write = function(text){ jQuery('#test').append(text) }
/script
=D
Here is the reference
http://javascript.about.com/library/blwrite.htm
--------
Huh.. but this still have a problem.. in IE.. if you overwrite into different holder.
so the best solution at this moment is using iframe...
No comments:
Post a Comment