Looking to get a link to work that goes to
http://www.bradyfamilytree.org/genealogy/documents/Series4162_cons101_item1_p002_resize.jpg
with Series4162_cons101_item1_p002 being what I list in the database but can't seem to get the code to add the _resize.jpg to the end…
currently getting
http://www.bradyfamilytree.org/genealogy/documents/Series4162_cons101_item1_p002
can anyone see the error in my $col
$col["formatter"] = "function(cellval,options,rowdata){ return '<a target="_blank" href="/genealogy/documents/'+cellval+'"_resize.jpg">'+cellval+'</a>'; }";
$col["unformat"] = "function(cellval,options,cell){ return $('a', cell).attr('href').replace('/genealogy/documents/',''); }";
thanks
Darryl
I think there is extra " before _resize.jpg
$col["formatter"] = "function(cellval,options,rowdata){ return '<a target="_blank" href="/genealogy/documents/'+cellval+'_resize.jpg">'+cellval+'</a>'; }";
Thanks Abu
Worked a treat…
Working page at
http://www.bradyfamilytree.org/genealogy/1859YorkCensus.php