Questions tagged [krl]

KRL stands for Kinetic Rule Language. Use this tag for questions regarding KRL applications.

The Kinetic Rule Language was developed by Kynetx and runs on the Kinetic Event Architecture platform. KEA is a cloud-based platform for building real-time, context-aware applications that connect web services across multiple browsers and devices. It is the event layer that glues services like Twilio, Twitter, Google, Facebook, Amazon and others.

KRL is particularly useful for creating Evented systems. KRL is also used for writing Browser Applications. As such, KRL questions frequently overlap with questions about CSS, JavaScript, HTML, and jQuery.

Some places to start:

126 questions
2
votes
2 answers

URI-encoding a string

I need to send a GET request. One of the parameters has URL query characters in it (e.g., ?, &, and =). How do I URI-encode that in KRL before sending the request? Here's the pseudocoded idea: params = "key=value&key=value"; encoded_params =…
Steve Nay
  • 2,819
  • 1
  • 30
  • 41
2
votes
1 answer

Ternary operator changing "true" to literal true

I'm trying to assign a string literal to a variable using a ternary operator with the following code in the pre block: texta = "approve"; textd = "deny"; aAction = texta eq "approve" => "true" | "false"; dAction = textd eq "approve" => "true" |…
Steve Nay
  • 2,819
  • 1
  • 30
  • 41
2
votes
1 answer

http:get adding "&" before getting

Not sure what is going on. When I perform the following code... it runs fine... but it is producing an error. If I paste the following into my browser address bar and hit it, I get one URL. If I put the same url through the KRL http:get, I get a…
frosty
  • 21,036
  • 7
  • 52
  • 74
2
votes
1 answer

KRL gem and msvcrt-ruby*.dll

When I run the KRL command line tool from the KRL gem on Windows it complains that I don't have the right msvcrt-ruby dll. When I'm set up to run Ruby 187 it complains that it can't find the ruby191 dll. When I'm set up for Ruby 191 it complains…
Randall Bohn
  • 2,597
  • 2
  • 16
  • 20
2
votes
2 answers

Extension not working in IE

I'm having a hard time getting my installed extension to work in IE 8. When i run it through a bookmarklet everything loads correctly and the extension works as intended. When installing the extension it won't run automatically on the pages it…
trumans1
  • 183
  • 2
  • 10
2
votes
1 answer

KRL: Replace HASH val

I can see plenty of example of how to read from a hash or add to a hash (using put), but how do I replace a current value? Any simple examples would be cool.
frosty
  • 21,036
  • 7
  • 52
  • 74
2
votes
2 answers

Working with KRL & Ajax

I'll be very specific here. If you go to UtahRealEstate.com and do a search and look at the results in the map view, there are plots all over the map and listings off to the right. If you click a pin on the map you get a pop-up, then click the MLS #…
Dustin
  • 3,965
  • 5
  • 27
  • 33
2
votes
1 answer

KRL: How to fire on all domains

I have been working on a personal project for a few months. A large majority of my frustration stems from the fact that I am building my own extension from scratch. I am only half way done with the project, and I am nervous that getting the code to…
frosty
  • 21,036
  • 7
  • 52
  • 74
2
votes
1 answer

KRL: Truncating a string

I'm pulling in an RSS feed from a Tumblr blog. Unlike WordPress, which gives a condensed version of the post in the tag, Tumblr dumps the whole post into the feed with no shortened version at all. I'd like my Kynetx app only to output…
Steve Nay
  • 2,819
  • 1
  • 30
  • 41
2
votes
1 answer

KRL RSS parser: Handle encoding issues?

I'm importing an RSS feed from Tumblr into a Kynetx app. It appears that the RSS feed has some encoding issues, as apostrophes appear like this: The feed (which you can find here) claims to be encoded in UTF-8. Is there a way to specify the…
Steve Nay
  • 2,819
  • 1
  • 30
  • 41
2
votes
1 answer

Handling Google Instant inside Kynetx

How is the Kynetx plugin triggered? Is it by the page onload event? Google Instant is interfering with the Kynetx plugin. WebScarab shows multiple GETs to Google on a search (Instant is ON) but no calls back to cs.kobj.net. Does Kynetx have a plan…
jkreth
  • 21
  • 1
2
votes
2 answers

Calling a javascript function defined in KRL from outside a KRL closure

I'm defining a Javascript function in my KRL global block that I want to call when the user clicks a link. Here are the relevant parts of the ruleset: global { emit <| function clear_hold() { app = KOBJ.get_application("a421x26"); …
Randall Bohn
  • 2,597
  • 2
  • 16
  • 20
2
votes
1 answer

How do I call javascript functions defined in the global block of my KRL ruleset?

I tried to define a javascript function in the global block of my ruleset, but when I try to run the function I get 'f() is not defined'. global { emit <| function f() { return 42 }; |>; } rule use_function { select when pageview ".*" …
Randall Bohn
  • 2,597
  • 2
  • 16
  • 20
2
votes
1 answer

Getting the user's timezone in KRL

A follow-up question to Mike's question about getting the time in KRL. Is it possible to get the user's timezone? There is a timezone predicate, time:timezone() but it looks like it requires an argument. How do I use that?
Steve Nay
  • 2,819
  • 1
  • 30
  • 41
2
votes
2 answers

Getting RSE stats for Kynetx apps

How do I get stats on ruleset evaluations (RSEs) for my Kynetx apps? It used to be a standard feature of AppBuilder, but I can't seem to find it anywhere in the new one or in the command line tool.
Steve Nay
  • 2,819
  • 1
  • 30
  • 41
1 2 3
8 9