Also make sure that if you have any ajax function calling your form that you set the "script"=>true option for example if you had used link_to_remote():
link_to_remote("Link Text", array( "url"=>"module/action", "update"=>"div_to_update", "script"=>true )) On Thu, Jul 23, 2009 at 2:09 PM, Roland Cruse <cruses...@gmail.com> wrote: > > Hi > > Anyone know how to avoid filtering of javascript code in attributes > passed to a widget? > > For example array( 'onclick' => > "javascript:setFilterCbValue('foobar');") gets sent but when the > filter renders to html: > > onclick=""javascript:setFilterCbValue('foo');"" > > I think it is the htmlspecialchars (or something like that) inside the > widget but how would I override it? > > Thanks in advance for any clues, tips, links. > > > > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---