//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03A
TN_Widget.CreateTable([['98 Degrees','Spotlight 29 Casino','Coachella, CA','Friday','5/3/2024','8:00 PM','6269474','98-Degrees-5-3-2024'],['Mark Normand','Spotlight 29 Casino','Coachella, CA','Saturday','5/4/2024','8:00 PM','6200293','Mark-Normand-5-4-2024'],['AHL Pacific Division Semifinals: Coachella Valley Firebirds vs. Calgary Wrangler - Home Game 2 (If Necessary)','Acrisure Arena','Thousand Palms, CA','Friday','5/10/2024','7:00 PM','6353904','AHL-Pacific-Division-Semifinals--Coachella-Valley-Firebirds-vs--Calgary-Wrangler---Home-Game-2--If-Necessary--5-10-2024'],['Blues Traveler','Spotlight 29 Casino','Coachella, CA','Friday','5/10/2024','8:00 PM','6200416','Blues-Traveler-5-10-2024'],['Amanda Miguel','Spotlight 29 Casino','Coachella, CA','Saturday','5/11/2024','8:00 PM','6324356','Amanda-Miguel-5-11-2024'],['AHL Pacific Division Semifinals: Coachella Valley Firebirds vs. Calgary Wrangler - Home Game 3 (If Necessary)','Acrisure Arena','Thousand Palms, CA','Sunday','5/12/2024','3:00 PM','6353907','AHL-Pacific-Division-Semifinals--Coachella-Valley-Firebirds-vs--Calgary-Wrangler---Home-Game-3--If-Necessary--5-12-2024'],['Bee Gees Gold - A Tribute to The Bee Gees','Spotlight 29 Casino','Coachella, CA','Friday','5/31/2024','7:00 PM','6249270','Bee-Gees-Gold---A-Tribute-to-The-Bee-Gees-5-31-2024'],['Bill Maher','Spotlight 29 Casino','Coachella, CA','Saturday','6/1/2024','8:00 PM','6205180','Bill-Maher-6-1-2024'],['Selena The Show - Tribute To Selena','Spotlight 29 Casino','Coachella, CA','Friday','6/14/2024','8:00 PM','6301597','Selena-The-Show---Tribute-To-Selena-6-14-2024'],['Voyage - A Journey Tribute','Spotlight 29 Casino','Coachella, CA','Friday','6/21/2024','8:00 PM','6248194','Voyage---A-Journey-Tribute-6-21-2024'],['Todd Rundgren','Spotlight 29 Casino','Coachella, CA','Saturday','6/22/2024','8:00 PM','6215230','Todd-Rundgren-6-22-2024'],['Hotel California - A Salute to The Eagles','Spotlight 29 Casino','Coachella, CA','Saturday','7/6/2024','7:00 PM','6328891','Hotel-California---A-Salute-to-The-Eagles-7-6-2024'],['Ralph Barbosa','Spotlight 29 Casino','Coachella, CA','Saturday','7/13/2024','8:00 PM','6375315','Ralph-Barbosa-7-13-2024'],['Flo Rida','Spotlight 29 Casino','Coachella, CA','Friday','7/19/2024','8:00 PM','6284422','Flo-Rida-7-19-2024'],['Average White Band','Spotlight 29 Casino','Coachella, CA','Friday','8/23/2024','7:00 PM','6285674','Average-White-Band-8-23-2024'],['Tom Segura','Spotlight 29 Casino','Coachella, CA','Friday','9/6/2024','8:00 PM','6341848','Tom-Segura-9-6-2024'],['Ludacris','Spotlight 29 Casino','Coachella, CA','Saturday','9/7/2024','8:00 PM','6373947','Ludacris-9-7-2024'],['Sara Evans','Spotlight 29 Casino','Coachella, CA','Saturday','9/21/2024','8:00 PM','6350757','Sara-Evans-9-21-2024'],['Iliza Shlesinger','Spotlight 29 Casino','Coachella, CA','Saturday','10/12/2024','8:00 PM','6372805','Iliza-Shlesinger-10-12-2024'],['Coachella Valley Cactus Cup 2025 - Day 1','Acrisure Arena','Thousand Palms, CA','Friday','1/3/2025','3:30 PM','6392538','Coachella-Valley-Cactus-Cup-2025---Day-1-1-3-2025'],['Coachella Valley Cactus Cup 2025 - Day 2','Acrisure Arena','Thousand Palms, CA','Saturday','1/4/2025','3:30 PM','6399698','Coachella-Valley-Cactus-Cup-2025---Day-2-1-4-2025']],'Coachella','http://www.ticketnetwork.com/ticket/Coachella-events.aspx');