>>Someone suggested using document.write to write a new script element. I
>>don't see how this helps because I am not aware of any way to write to a
>>completed page without overwriting the page. This appears to me to be
>>simply a page reload.
Wonder why you remember Martin's name and not mine..lol /joke
Why don't you start with a simple case and do the following.
Suppose you have a page 1.html that issues the ajax call.
On that page you call contents of 2.html that has a script tag in which it does
document.write('hello');
Now in 1.html define the following -
//overwrite browsers default document.write
//to prevent new output stream to be opened
document.write = function(text){
myVariable = text;
};
So, when content from 2.html will come that has document.write() it will go
into myVariable and you can manipulate as you like.
Hope this helps!
Remember my name :)
-Mandy.
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs