Hi all,
I want to use kdb and web sockets but will be confined to use the browser IE. IE doesn’t support web sockets. I want to display data using html querying for data from kdb. Is this actually possible in IE?
Thanks and regards,
Mark
Hi all,
I want to use kdb and web sockets but will be confined to use the browser IE. IE doesn’t support web sockets. I want to display data using html querying for data from kdb. Is this actually possible in IE?
Thanks and regards,
Mark
Hi Mark,Yes, you can query a kdb process from a browser using standard GETrequests.I use the kdb-wc[1] framework for building real-time dashboards with websockets, but it also supports polled GET requests in both binary andJSON format, so it should still work in IE.[1] https://github.com/quintanar401/kdb-wcRobOn 14 January 2017 16:10 UTC, Mark wrote:> Hi all,>> I want to use kdb and web sockets but will be confined to use the browser > IE. IE doesn’t support web sockets. I want to display data using html > querying for data from kdb. Is this actually possible in IE?>> Thanks and regards,>> Mark
Thanks Rob,
The kdb-wc framework is great! The examples use static queries when pulling data from kdb - they will always run the same kdb command. What if I wish to have a dynamic query? e.g. use
www.example.com?param1=foo¶m2=bar
and use param1 and param2 as parameters to a function
<kdb-srv>someQFunc[param1;param2]</kdb-srv>
Is there a way to actually do this? What I’ve managed to do is build the function with the parameters, but only as a string, so it doesn’t actually evaluate the function.
BR,
Mark
Hi Rob,
You should use <kdb-query> object. In it you may add parameters like $param1$ or `$“$param1$” and etc.
Default param names and their sources are explained in the help. Or you can run KDB.rerunQuery(“queryKID”,{ param1: data1, param2: data2 }) in JavaScript.
WBR, Andrey.