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){} >>; } }
source share