-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Il Neofita wrote:
test.html
[...]
<td onclick="new Ajax.Request('/test1.html', {asynchronous:true,
onSuccess: function(t) {
$('replace').innerHTML=t.responseText;}})">R21</td>
^ You are not evaluating response scripts, but merely replacing the
content of "replace". Call t.responseText.evalScripts() to fix it.
A less ugly way would be to use Ajax.Updater instead:
<td onclick="new Ajax.Updater('replace', '/test1.html',
{evalScripts:true})">R21</td>
(OFC, even less ugly would be to move away all those inline scripts, but
that's already a different story).
cheers
- --
Marius Feraru
-----BEGIN PGP SIGNATURE-----
iD8DBQFFlI8ttZHp/AYZiNkRAv2rAKCQwj8+i6ETuWzDY6MQqBWYwSH99ACg55HG
A7b9PISx9tuduOdTqxE8je0=
=Cgci
-----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---