Nawqaan 367

Would it be cleaner to make a base ajax config object here..

    {
        url :  CONFIG.siteAveTargetUrl,
        data : { ... }
        contentType : 'application/json',
        etc, etc
    }

And after that's created:

    if (isVirtual) {
        // do updates to the ajax config object
    }

    $.ajax(ajaxConfigObject);

That way, you can split on the configuration based on it being a virtual site or not but then funnel back into the same ajax request?

Just a suggestion here