I'm getting a javascript error when trying to invoke a clientside function with a JSONLiteral. Note that I am using jquery as my foundation framework. When my component renders via a page request, it works. When my component renders inside an AJAX request, it fails.
eg: @Inject JavaScriptSupport jss; void afterRender() { JSONObject config = new JSONObject(); config.put("date", new JSONLiteral("new Date()")); jss.require("someModule").invoke("someFunction").with(config); } In the console, I can see the following: - Request to "myapp/item/list.tabgroup:tabchange/map?t:ac=$007b$007d/details failed with status parsererror -- OK." failed with status parsererror -- OK. [ajax.js (line 26)] - SyntaxError: JSON.parse: unexpected keyword [jquery-library.js (line 514)] As a workaround, I'm using simple types in my JSON object and converting to custom clientside objects in my js. -- View this message in context: http://tapestry.1045711.n5.nabble.com/5-4-alpha2-Can-t-use-JSONLiteral-in-JavaScriptSupport-invoke-tp5719934.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org