I not sure is this error is going to cause any problem at the future:
I use autocomplete in search function, I need to show the k_page_title in autocomplete list, this line - "<cms:show k_page_title />", seems cause some syntax error, as my Dreamweaver point it as error. Is anyone has any idea, how can I fix this, or maybe I already write it in correct syntax and I can just ignore the error?
- Code: Select all
<script>
$(function() {
var availableTags = [
<cms:pages masterpage='en/products.php'>
"<cms:show k_page_title />",
</cms:pages>
];
$( "#s" ).autocomplete({
source: availableTags
});
});
</script>
I use autocomplete in search function, I need to show the k_page_title in autocomplete list, this line - "<cms:show k_page_title />", seems cause some syntax error, as my Dreamweaver point it as error. Is anyone has any idea, how can I fix this, or maybe I already write it in correct syntax and I can just ignore the error?