I have this block of javascript in a file.
[removed]
var options, a;
jQuery(function(){
options = { serviceUrl:'{site_url}directory/suggest_names' };
a = $('#query').autocomplete(options);
});
[removed]It renders just fine in v1.7
When I move it to v2.1.3 it renders:
[removed]
var options, a;
jQuery(function(){
options = ;
a = $('#query').autocomplete(options);
});Specifically note the “options = ” line.
I also tried hard coding the site_url. For some reason EE is not rendering whats between the {} . Is there some way to escape the {}? Weird that it doesn’t effect the other parts between {}.
Any ideas?
Thanks,
Jim
fyi I tried setting $config[‘protect_javascript’] = “y”;