View Full Version : Quoting error when compiling Template

18 Jun 2007, 7:45 AM
When using a template, I get an error that I narrowed down to the quoting in the template. The error I get (in Firefox on Mac OSX, using Firebug) is this:

missing ; before statement:
" : values['identifier'])+') <a href="javascript:void(0)" onclick="App.currentTab..." ... in ext-all.js (line 11)

The surrounding template code is this:

"...<span class="emphasize">{last_name}</span> ({identifier}) <a href="javascript:void(0)" onclick="App.currentTabForObject('person', {id})">View..."

The problem only shows up when I have a set of quotes inside of another set of quotes, like the 'person' inside of the quoted onclick value. If I switch the quote types, I get the same error. If I try to escape the same quote types, I get a different error. Is it possible to get the quoting algorithm fixed to allow for at least embedded quoting?

18 Jun 2007, 9:30 AM
Try replacing the inner single quotes with escaped double quotes. I've noticed that the Template html frags dont work if they have single quotes.