Posts Tagged with target

Displaying 1-2 of 2 results.
Resolved: Yii CGridView buttons url target _blank not working
posted by admin on April 25, 2016
I try to target _blank my CGridView buttons

<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'media-grid',
'dataProvider'=>$media->searchadmin(),
'filter'=>$media,
'columns'=>array(
'id',
. . .
array(
'class'=>'CButtonColumn',
'template'=>'{view}{update}',
'buttons'=>array
(
'update' => array(
'url'=>'CController::createUrl("/media/update/id/{$data->primaryKey}")',
'target'=>'_blank',
),
'view' => array(
'url'=>'CController::createUrl("/media/view/id/{$data->primaryKey}")',
'target'=>'_blank',
),
),
),

),
)); ?>
Read more
Resolved: JavaScript jQuery add attribute to links, which is not belong to website and locate to another resource
posted by admin on March 11, 2016

<a href="http://isystems.am">sadsa dasd as ds</a>
<a href="http://forum.isystems.am"> sd s f f d f</a>
<a href="http://autoservice.am"> sd s f f d f</a>
<a href="http://classyluxury.ru"> sd s f f d f</a>
<a href="http://polusportpoluklassika.ru"> sd s f f d f</a>
<a href="http://classystyle.ru"> sd s f f d f</a>


I want to add attribute to my all links, which is not locate to my website. I want to open another links in new window, not in self window. I want to do it after page will be loaded.Read more