Hi,
I'm trying to update the content of a div with a form. So I did (the form
comes from an Ajax.Request):
new Ajax.Request('return_form.php', {
evalScripts:true,
parameters:{ foo:\'bar\' },
onSuccess:function(res){
alert(res.responseText); // Here I can see the form.
$('my_div').update(res.responseText);
alert($('my_div').innerHTML); // Here I can't see the form :(
}
});
It seems that update() method is parsing out the form or something....Can
that be possible?
Saludos,
Fede.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---