1: | <?php |
2: | /** |
3: | * Description of CorsTemp |
4: | * |
5: | * @author SARTAJ |
6: | */ |
7: | |
8: | class CorsTemp extends \Sphp\tools\Control{ |
9: | private $url = ""; |
10: | |
11: | public function onjsrender(){ |
12: | if($this->url == "") $this->url = getEventURL("cfrm" . $this->name); |
13: | \SphpBase::JSServer()->getAJAX(); |
14: | addHeaderJSFunctionCode("ready", "cors" . $this->name, 'getURL("'. $this->url .'");'); |
15: | } |
16: | } |
17: | |
18: |