This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//lookup object | |
var gaKeys = { | |
'tdshs_ems': { | |
'01': 'UA-234234-23', | |
'02': 'UA-234234-24' | |
}, | |
'error' : 'UA-bad-code' | |
}; | |
var configId = '<param>'.toLowerCase(); //error condition is 'error' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
$.ajaxSetup({ | |
type: "POST", | |
contentType: "application/json; charset=utf-8", | |
data:"{}", | |
dataFilter: function(data) { | |
var msg = jQuery.parseJSON(data); | |
return (msg.hasOwnProperty('d')) ? msg.d : msg; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
$.ajaxSetup({ | |
type: "POST", | |
contentType: "application/json; charset=utf-8", | |
data:"{}" | |
}); | |
var geoRequest = { | |
"geoRequest": { | |
"counties": ["Travis"], |