I don't know how to trigger drupal rule from JavaScript code.
lowerLayer[image.feature_nid].on("dragend", function() {
var position = kineticImage.getPosition();
var layerPosition = this.getPosition();
var slotNid = kineticImage.slot_nid;
positionX = position.x + layerPosition.x;
positionY = position.y + layerPosition.y;
//Here I want to call drupal rule
});
I commented the line where I need to trigger drupal rule. Can I call a drupal rule with these parameters (slotNid,positionX,positionY) like I can call some function (someFunction(slotNid,positionX,positionY).
Any solutions are welcome.