Bug Tracker

Modify

Ticket #6965 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.