You have to turn off the escaping in the link functions, it auto escapes. Check out:
http://www.donutczar.com/blog/?p=4 http://api.cakephp.org/1.2/class_html_helper.html On May 22, 4:56 am, jimbo <[EMAIL PROTECTED]> wrote: > Hi, > > can anybody help me with this problem, I am creating a simple link in > one of my views and I am having a problem giving an onClick option/ > attribute for the link, as it seems cake is escaping/encoding the > javascript function special characters like this: > > echo $html->link("foo", '#', > array('onClick'=>"myObj.select(document.getElementById('". > $element."')); return false;")); > > prints out something like: > > <a href="#" > onClick="myObj.select(document.getElementById('element0')); > return false;">foo</a> > > On the view, I have specified to use ISO-8859-1 encoding, is this the > problem? > > <meta http-equiv="Content-Type" content="text/html; > charset=ISO-8859-1" /> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---