On 3/22/06, Maninder, Singh <[EMAIL PROTECTED]> wrote:

> response is received it will be rendered till the point document.write is 
> encountered and after that it will write to a new document instead of writing 
> to the same one. I know this is how document.write is supposed to work.
>
> But, does anyone know about a workaround such that I don't have to change my 
> document.writes in the legacy code and still get this to work with Ajax?

Redefine document.write before the ajax call.

document.write = function(text) {
  alert(text); // or whatever
}

Bye,
  Martin
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to