Tuesday 2 September 2008

Dojo/JS Error: unterminated string literal

As of Dojo version 1.1.1, the nice debug console Dojo provides does not properly show where abouts the error occured. So make sure you bring up the Web browser's javascript console also.

Don't forget to clear the javascript console log and re-run your page.

Example Error

The Quotes, at around t=i&id='????' is causing the trouble. Basically cuasing the intoNode to break.
dojo.xhrGet(intoNode('ajaxingredientlist', '/ajax/categories/?ajax=true&mode=l&t=i&id='????'))

No comments: