Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthormarvin.s
     
    like the title
    •  
      CommentAuthorbermi
     

    Adding

    'script' => true
    
    • CommentAuthormarvin.s
     

    How to write?

    <%= link_to_remote '新闻信息', {:url=>{:action=>'news'},:update=>'DivContent',{:script=>true}} %>
    

    and

    <%= link_to_remote '新闻信息', {:url=>{:action=>'news'},:update=>'DivContent',:script=>true} %>
    

    is wrong

    • CommentAuthormarvin.s
     
    bermi, help me!
    Thanks!
    •  
      CommentAuthorbermi
     

    Try this

    <%= link_to_remote '新闻信息', {:url=>{:action=>'news'}},:update=>'DivContent', :script=>true %>
    
    • CommentAuthormarvin.s
     
    <%= link_to_remote '新闻信息', {:url=>{:action=>'news'}},:update=>'DivContent', :script=>true %>
    display this error:
    Notice: Undefined index: evalScripts in /akelosapp/carCompany/lib/AkActionView/helpers/prototype_helper.php on line 486
    •  
      CommentAuthorbermi
     

    marvin,

    There was a bug on the prototype helper. And my previous example was completelly wrong, try

    <%= link_to_remote '新闻信息', :url=>{:action=>'news'}, :update=>'DivContent', :script=>true %>