Bug Tracker

Opened 13 years ago

Closed 13 years ago

#6965 closed bug (worksforme)

ajax loading content that contains document.write blanks the page

Reported by: fizyk Owned by:
Priority: Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: ajax, document.write Cc:
Blocked by: Blocking:

Description

recently I tried to create form, that get's send through ajax and validates on server side, then ajax prints the result. after adding reCaptcha and sending form, page gets blanked after printing response (e.g form with reCaptcha and validation messages). After a little research I discovered that whenever content that's loaded with ajax, contains java script code with document.write() it get's printed after blanking the page.

Change History (1)

comment:1 Changed 13 years ago by dmethvin

Resolution: worksforme
Status: newclosed

What would you expect it to do? Once the body is closed after page load, any document.write will do the same thing. So jQuery hasn't changed the browser's handling of the situation at all.

http://javascript.about.com/library/blwrite.htm

Note: See TracTickets for help on using tickets.