Raise_event from a client not working in dev

I have the following code, and raising a web event does not do what it should do. I disabled all my extensions to make sure that this is not something. Please help. It’s hard for me to create an application if I cannot debug my garbage. HELP ME !!!

dispatch { // Some example dispatch domains // domain "example.com" domain "google.com" } global { } rule temp_rule is active{ select when pageview ".*" pre{ } { notify("111",'123'); emit<< var tempapp = KOBJ.get_application("a710x19"); tempapp.raise_event("temp2"); >>; } } rule temp2 is active{ select when web temp2 pre{ } { notify("222",'<div id="fbp_fblogo">123</div>'); emit<< try{ console.log("TEMP2'd"); }catch(e){} >>; } } 
+4
source share
1 answer

The problem is that your event name contains a number. Event names must contain only letters.

Remove 2 from your raise_event call in your emitting and from your select statement, and it will work.

+4
source

Source: https://habr.com/ru/post/1346678/


All Articles