I tried using a textarea as the container for Ajax.updater
without luck.
I presume I need to write the js to take the response and put it
in the textarea, but the API just doesn't give me enough detail
to use Ajax.request to do that.
The returned data is plain text.
A bit of assistance would
From the top of my head and totally untested:
new Ajax.Request('http://url-you-want-to-request', {
onSuccess: function(transport) {
$('id-of-your-textarea').setValue(transport.responseText);
}
});
David
Am 22.11.2011 14:19, schrieb bill:
I tried using a textarea as the
On 11/22/2011 8:25 AM, David Behler wrote:
From the top of my head and totally untested:
new Ajax.Request('http://url-you-want-to-request', {
onSuccess: function(transport) {
$('id-of-your-textarea').setValue(transport.responseText);
}
});
David
Thanks David, that's easy
Yes, but ONLY* if the two URLs share a common host (and protocol). Google 'Same
Origin Policy' for more gory details.
Walter
* Absent some other trust framework with allowed endpoints.
On Nov 22, 2011, at 8:25 AM, David Behler wrote:
From the top of my head and totally untested:
new