About Pi Downloads Documentation Plugins Developer Forum Issues

pi.comet.push

Summary

When the target url prints data between "" and "" tags, the data is sent to event.push.

Syntax

request.event.push = function

Example

 var request = pi.comet;
 request.environment.setUrl('push.php');
 request.event.push = function(_response){
 	alert(_response);
 }
 request.send();