[Rails] page.update_html not executed

Budi Irawan
2006-06-12T06:31:55Z

oh..maybe you forgot to include

javascript_include_tag :defaults

in your layout

On 6/11/06, Jean-Etienne <etienne.durand@woa.hu>
wrote:
>
> Hi,
>
> when doing:
>     render :update do |page|
>       page.replace_html ''suggested_contractors'', :partial
=>
> ''contractors''
>       page.visual_effect :highlight,
''suggested_contractors''
>     end
>
>
> I got js as output, it is not executed, return html *contains*:
> try { Element.update("suggested_contractors", "
> \n 12345678910\n
> \n
> "); new Effect.Highlight("suggested_contractors",{}); }
catch (e) {
> alert(''RJS error:\n\n'' + e.toString());
> alert(''Element.update(\"suggested_contractors\", \"
> \n 12345678910\n
> \n
> \");\nnew
Effect.Highlight(\"suggested_contractors\",{});''); throw e }
>
> Any idea?
>
> Thank you,
> Jean-Etienne www.novAgora.hu
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...