خرید بک لینک

Vote count: 0

   public    function Link()
    {
        $id=$this->params['id'];
        $url=$this->params['url'];
        $dviId=$this->params['divId'];
 $url=Yii::$app->urlManager->createAbsoluteUrl($url);
           $js2="$('#".$id."').on('click', function() { $.ajax({url: '".$url."',type: 'POST',success : function(res){ $('#".$dviId."').html(res);}});});";


        $view = $this->getView();
        AjaxAsset::register($view);

        if ($js2 !== '') {
            $view->registerJs($js2);
        }
        retu ;
    }

i am using ajax for send active form by this function And want to show error if any happened else send form

asked 4 mins ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 11 ارديبهشت 1395 ساعت: 23:42

صفحه بندی