I simply want to set up an ajaxurl in javascript to pass to my controller.
When trying to setup the url, it evaluates to 0 during the below attempts: Note that attrs.attachmentType & attrs.attachmentId have values associated with them.
var hoser = attrs.attachmentType & attrs.attachmentId;
ajaxUrl = root + 'FileUpload/upload?' & 'Type=' & attrs.attachmentType & 'ID=' & attrs.attachmentId;
If I just include the following, a proper value is seen inside the hoser variable.
var hoser = attrs.attachmentType;
What am I doing wrong where the url will not come out correctly?