Hello,
I use the showlink option and I would like the url to be in a new window (href target_blank).
What is the option to use?
Here is the code that does not work for a pdf file
The display of the pdf file is done on the same window (target_self)
Best regards
Christian
$grid->setColProperty(“fic_1”, array(“label”=>”Un”, “width”=>90, “align”=>”left”, “formatter”=>”showlink”, “formatoptions”=>array(“baseLinkUrl”=>”#”, “target”=>”_blank”), “editable”=>false, “sortable”=>false, “searchoptions”=>array(“clearSearch”=>false)));
…
$myevent = <<<ONLOAD
function(form_omsi) {
var ids = $(this).jqGrid(‘getDataIDs’);
for (i=1;i<4;i++) {
var myGrid = $(“#fic_”+i);
for (var i = 0, idCount = ids.length; i < idCount; i++) {
$(“#”+ids+” a”,myGrid[0]).click(function(e) {
var hash=e.currentTarget.hash;// string like “#?id=0”
if (hash.substring(0,5) === ‘#?id=’) {
var id = hash.substring(5,hash.length);
var text = this.textContent || this.innerText;
location.href=”$location/fupload/”+text;
}
e.preventDefault();
});
} }
}
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top