Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8366 (closed defect: untested)

Opened 2 years ago

Last modified 2 years ago

document.write(newDocumentHere) with Firefox 2.0 fail to "reload" (it loses Prototype definitions)

Reported by: jacsistemas Assigned to: thomas@fesch.at
Priority: normal Milestone: 1.x
Component: script.aculo.us Version: edge
Severity: normal Keywords: firefox, prototype
Cc:

Description

When "rewrite" page with scripting like:

.... <script type="text/javascript">

function Intialization() {

...here Ajax scripting that setting to handleResponse() like response event handler and request to server for full content page (html tag, head tag, script tags -including Prototype & Scriptaculous- and body tag) ...

function handleResponse(newDocContent) {

document.write(newDocContent); document.close();

}

</script>

</head> <body onload="initializar()"> ....

Firefox dont work because throws 4 errors that they indicate the lack of definition of the Prototype objects (Effect and so on). That behavior is only observed in Firefox but not in IE (its Ok). I assume that its cause is Scriptaculous because when comment its script tag, Prototype Objects are well and de page dont fail.

See ticket #7919 -- I believe that it is similar cause.

Change History

05/16/07 11:16:21 changed by Tobie

  • status changed from new to closed.
  • resolution set to untested.

Hi, please give a more precise example, maybe a live one, as I just don't understand what you are trying to do or what your issue is.

Thanks!