Weird cross-domain behavior work-around - moved example to be with SDK
diff --git a/asterix-examples/src/main/resources/cherry/js/cherry.js b/asterix-examples/src/main/resources/cherry/js/cherry.js
index 1f2ff84..1e2b20e 100755
--- a/asterix-examples/src/main/resources/cherry/js/cherry.js
+++ b/asterix-examples/src/main/resources/cherry/js/cherry.js
@@ -252,20 +252,21 @@
"query_string" : "use dataverse twitter;\n" + f.val()
};
- var a = new AsterixSDK()
- .callback(cherryQuerySyncCallback, "sync")
- .callback(cherryQueryAsyncCallback, "async")
- .send(
- "http://localhost:19002/query",
- {
- "query" : "use dataverse twitter;\n" + f.val(),
- "mode" : build_cherry_mode
- },
- extra
- );
+ f.run(
+ "http://localhost:19002/query",
+ {
+ "query" : "use dataverse twitter;\n" + f.val(),
+ "mode" : build_cherry_mode
+ },
+ {
+ "sync" : cherryQuerySyncCallback,
+ "async" : cherryQueryAsyncCallback
+ },
+ extra
+ );
APIqueryTracker = {
- "query" : "use dataverse twitter;",// buildCherryQuery.parameters["statements"].join("\n"),
+ "query" : "use dataverse twitter;\n" + f.val(),
"data" : formData
};