Thanks for the answers, but It isn't work yet. This is the code in the
ajax response. Before this, the response has a code for an html table
(i don't know if i could mix javascript code and html)

ultima2 = function() {
var ultimaNoticia = 677;
$('lastStory').innerHTML = ultimaNoticia;
};
</script>
<input type=button value='Apretar' onclick='ultima2()' />

Now, my ajax call says:

var consultaAjax = new Ajax.Updater (
        'tabla',
        url,
        {
                method: 'get',
                parameters: pars,
                evalScripts: true
        });
}

But when i press the button, it said ultima2 is not declared. Which
thing i am making bad.
Thanks

Guillermo
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to