Hi,
I´m using rails together with activescaffold. In some views the
content needs to get updated periodically and I was happy to find
prototype´s Ajax.PeriodicalUpdater. Here is what my layout looks like:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>My Title</title>
<%= javascript_include_tag :defaults %>
<%= active_scaffold_includes %>
<script>
<!--
pe = new
Ajax.PeriodicalUpdater(''refreshable_content'',
''libretto_job_group'', {method:
''get'', frequency: 3,
decay: 2 });
//-->
</script>
</head>
<body id="refreshable_content">
<script>
<% if params[:refresh] == "false" %>
<!--
pe.stop()
//-->
<% else %>
<!--
pe.start()
//-->
<% end %>
</script>
<%= @content_for_layout %>
</body>
</html>
This works perfectly under FF but when I open the view with IE I can
see the content with styles right before the first refresh and after
the refresh I only get a plain un-styled html page.
Am I doing wrong somehow?
Thanks & Regards,
Christian
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---