but I get DIFFERENT versions in IE and FireFox !!!! BOTH are truncating
the string (because the string contains marktup) and neither give me the
verbetim string generated by my action.
Any ideas how to circumvent using div as return value mechanism for
link_to_remote?
Is the only way to get a "return value" from the action called through a
div tag via the :update => 'my_div' entry?
I want the value returned to be put into a string that I can manipulate
in my :complete => 'my_complete_function()'
It's already there. The context in which that javascript runs includes an object called request, which the is Ajax request object.
In particular response.responseText is what you would expect it to be.
It's already there. The context in which that javascript runs includes
an object called request, which the is Ajax request object.
In particular response.responseText is what you would expect it to be.
Thanks, Fred! However, I just can't get it to work. If I'm reading
your comment accurately, it looks like "response" is global?
I'm trying this and it doesn't work. The first alert fires but the
second one does not. Plus, there are NO JavaScript errors in FF or
IE... just "nothing at all"