execute javascript on every reload - ruby on rails

I am reloading partial using ajax this way: new Ajax.PeriodicalUpdater('content', '/shouts/update.js', { method: 'get', frequency: 1}); The reload is working great. I added this javascript code to update.js to make the partial content fade: $('content').fade({ duration: 3.0, from: 0, to: 1 }); And the problem is that nothing happens (the content doesn't fade). What do you think is the problem?
What is the content of '/shouts/update.js' ?

以上就是execute javascript on every reload - ruby on rails的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准