Re: [Rails-spinoffs] document.write() in ajax response

2006-03-23 Thread Martin Bialasinski
On 3/22/06, Maninder, Singh <[EMAIL PROTECTED]> wrote: > I am not able to follow what you suggested. > > Could you take this example and explain? There is nothing special with document.write. It can be redeclared like any normal property. Just try this in normal page: document.write("written");

RE: [Rails-spinoffs] document.write() in ajax response

2006-03-22 Thread Maninder, Singh
Martin - This is my server response - **cript> page="from ajax"; document.write('test'); <**cript> Test I am not able to follow what you suggested. Could you take this example and explain? Thanks in advance, Mandy. <>___ Rails-spinoffs mailing

Re: [Rails-spinoffs] document.write() in ajax response

2006-03-22 Thread Martin Bialasinski
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, do

[Rails-spinoffs] document.write() in ajax response

2006-03-22 Thread Maninder, Singh
Hi, I am facing a problem and the description is as follows - I have a page 1.html that does an Ajax.Updator & calls stuff from 2.html (that has some html snippet & some javascript). So far so good - things work fine. However, if 2.html had any document.write code - eg document.write('hello')