Hi, i wish to run a function that came inside my Ajax response. I read that i have to use the evalScripts to make this, but still i couldn't make it work. The error said that my function isn't declared. I look at the Sergio Pereira tutorial about use the var xxx = function() but still doesn't work.
Someone could help me? In the response this is the code: for (var i = 0; i < 632; i++) { if (document.newsStoriesForm['storyIDs' + i]) { t.newsFeeds[0]["storyIDs"][i] = document.newsStoriesForm['storyIDs' + i].value; t.newsFeeds[0]["stories"][i] = document.newsStoriesForm['stories' +i].value; } } t.av('0', '632'); ultima2(){ var ultimaNoticia =632; $('lastStory').innerHTML = ultimaNoticia; } And this is the Request function: var consultaAjax = new Ajax.Updater ( 'tabla', url, { method: 'get', parameters: pars, evalScripts: true, }); } Thanks _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs