using ajax in rails with periodically_call_remote -


I am trying to reload partially on one page from time to time but this does not work. Partial load correctly when I first load the page but it will not be updated when presenting the new information without reloading the view. Looks like this:

  & lt; Div id = "menuarea" style = "height: 39 9px; width: 181px" & gt; & Lt;% = periodically_call_remote (: url = & gt; {= action = & gt;: find} ,: frequency => '20' ,: update = & gt; 'menu' ')% & gt; & Lt; P & gt; Please select a color & lt; / P & gt; & Lt;% # partil color table% & gt; & Lt;% = Render: Partial = & gt; "Colorable"% & gt; & Lt; / Div & gt;  

And the controller looks like this:

  def findnew bunny = Xparsing :: Xmlparse.new @ fuzzybunny = @bunny.hex1 @bolbibinae = @ bunny. Pantone1 @ blackbunny = @ bunny.description1 render (: partial = & gt; 'colortable') end  

All I'm trying to do is reload partial colortable without reloading the page . I am looking at the color table in the comrade line every 20 seconds but the table is not being reloaded on the page. Why do I need to fix it?

Are you sure that you & lt; Div & gt; When updating , do not overwrite javascript with periodically_call_remote ?

Do you want to remove that script from & lt; Div & gt; Do not want to exclude from updating? Or put it in partially and remove it from now on.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -