I wonder if anybody can help. In Internet Explorer, I keep getting the 'done but with errors on page' javascript syntax error. Having already searched the forum for a solution, I did find out that this is due to a problem with the autocomplete not being found for the JavaScript search function and the fact that I have transplanted the quicksearch module to the left column from the header. It is not an option for me to put it back to the top of page as the design requires it be in the left column. I also tried the solution posted here:
http://www.prestasho...not_a_function_
but inserting this script into the header.tpl did not fix the error.
I would be really grateful if anybody could help me fix the Javascript error so I can keep the quicksearch in the left column and not have any errors appear in the IE.
I think this is the troublesome code (error line starred):
[removed]
function formatSearch(row) {
return row[2] + ' > ' + row[1];
}
function redirectSearch(event, data, formatted) {
$('#search_query').val(data[1]);
document.location.href = data[3];
}
$('document').ready( function() {
$("#search_query").autocomplete(
'/search.php', {
minChars: 3,
max:10,
width:500,
scroll: false,
formatItem:formatSearch,
******** extraParams:{ajaxSearch:1,id_lang:} *****************
}).result(redirectSearch)
});
[removed]
I am not very experienced with JavaScript or Prestashop so any help with fixing this would be much appreciated. Thanks in advance.



Back to top









