[jQuery] missing ] after element list
Hi everyone,
I'm pretty new to Javascript and Jquery. Despite my ignorance about
Javascript basics, Jquery lets me do useful stuff.
I've created a join statement and get a "missing ] after element list"
error in Firefox for PC. I also have a setTimeout statement to
prevent unresponsive script messages in Firefox. The setTimeout idea
came from this group, so thanks for that.
Here's my code:
//unresponsive scripts prevention after 2 seconds
if(new Date().getTime()-start>2000){
setTimeout($(this).append([
left_link_html,
code,
"?title=",
right_link_html
].join("")),0);
}
left_link_html and right_link_html are long strings with html markup.
code is a string with a barcode in it that I have scraped from the
page that is loading.
It might be basic syntax structure that I'm missing. Thanks in
advanced.