I would kill the comma after the true. Not sure if this is an issue,
but evalscripts works all the time for us!
Deco
On Mar 21, 2006, at 1:00 PM, Guillermo Movia wrote:
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
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs