Buy Now
Sign in

Use gcb in link

webcrea , October 22 2020, 12:47
webcrea 623
October 22 2020, 12:47 #394444
Hi,
I try to add gcb [] in a link with ...&gcb={data:gcb}
but this is not that...?
Do you have any idea please?
Regards
Chris
Christophe
http://www.webcrea.fr
healyhatman 9
October 25 2020, 22:05 #394516
{data.join[,]:gcb} maybe
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
webcrea 623
October 26 2020, 08:34 #394524
Thanks but not
I need to open in new window with tvout=view
Regards
Christophe
http://www.webcrea.fr
admin 30
October 26 2020, 14:09 #394532
the problem is opening in a new link or getting the gcb value ? where do you use this code ?
webcrea 623
October 26 2020, 14:49 #394535
getting the gcd but I solved this issue with js...
jQuery(document).ready(function($){
diplomas_btn = jQuery("#diplomas_btn");

diplomas_btn.on('click', function(){
check_list();
});
});

function check_list(){
var tbrows = new Array();
jQuery('input[name="gcb[]"]').each(function(){
if( this.checked ){
v = this.getAttribute("value");
tbrows.push(v);
}
});
listrows = tbrows.join(',');

console.log(listrows);
if(listrows.length){
console.log('ok');
strUrl = "https://your_url?event=your_event&tvout=view&gcb=" + listrows;
var win = window.open(strUrl, "Diplomas");
}
}
Christophe
http://www.webcrea.fr