HaiderMalik12 / embeddedjavascript

Automatically exported from code.google.com/p/embeddedjavascript
Other
0 stars 0 forks source link

EJS.update from json url #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
EJS.update throws javascript error: 'expected ;' in case you pass json url as 
second parameter to update function. It should enclose json string into 
parentheses to work properly(at least in IE9). The fix is to replace line 112 
with var object = eval( '('+request.responseText+')' );

Original issue reported on code.google.com by alber...@gmail.com on 11 Jul 2012 at 12:25

GoogleCodeExporter commented 8 years ago
Hi, I've got the same error in Chrome, so your comment helped me a lot, thanks!

Original comment by alexey.m...@gmail.com on 27 Mar 2013 at 9:30