I am new to Dojo and tyrign out some code below. I am getting a syntax issue on line 9:
"a"{
Full code:
Code:
//Auto Download Tracking
/*Regex list of download file extensions, pipe and backslash delimited. Looks for the period before the file type so it will work on download links with query parameters after it */
var downloadTypes = /\.pdf|\.doc|\.xls|\.zip|\.csv|\.ppt|\.rtf|\.pptx|\.docx|\.xlsx|\.wmv|\.mpg|\.mov|\.avi|\.exe|\.mp3|\.wma|\.txt|\.rar|\.wav/i;
/*Regex list of on-site domains, pipe and backslash delimited. */
var onsiteDomains = /bluecrossma\.|ahealthyme\.|livinghealthybabies\.|paramisalud\.|whygetit\.|indigo-insurance\.|healthy-actions\.|javascript|#/i;
dojo.behavior.add({
"a"{
onclick:function(dom){
if( dom.href.match(downloadTypes) )
ntptEventTag('ev=download&eventPage=Download From: ' + escape( wa.currentDomain + wa.currentURL ) + '&downloadFile=' + escape( dom ));
if(!dom.href.match(onsiteDomains) )
ntptEventTag('lk=1&ev=Exit Link&eventPage=Exited From: ' + escape( wa.currentDomain + wa.currentURL ) + '&exitTo=' + escape(dom));
};
}
});
dojo.behavior.apply();
Is there a simple fix for this?
Thanks!