EJS.update with json URL, eval throws a parse error
114 views
Skip to first unread message
Bradley
unread,
Jun 11, 2010, 2:04:13 PM6/11/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Embedded JavaScript
I can't EJS.update working with a url to a json stream. The eval of
the returned json throws a parse error. I've never used eval before
so I don't really know how it parses json, but from what I understand
it's a bit dangerous to do so.
Has anyone used update with a url and had it work? I've subbed (for
now) the eval with jquery's implementation of a json parser. Any
thoughts on this? Is there any plan for using a more robust json
parser rather than straight up eval?