в вашем коде

я обновляю до jQuery 1.5.1 (или 1.5), всеajax() вызовы на моем сайте приводят к появлению «parserror» в функции опции error. Есть также ошибка скрипта

Uncaught SyntaxError: Unexpected token : jquery-1.5.1.min.js:16

Сайт работает без ошибок, используя 1.4.4. Вот код одного из вызовов ajax ().

$.ajax({
  url: '/CustomerGroup/Get',
  type: 'POST',
  contentType: 'application/json; charset=utf-8',
  dataType: 'json',
  success: function (grp) {
    if (grp != null) {
      clear();
      group = grp;
      load(grp);
    } else{
        showError(
                    'Customer Group',
                    'Whoops, error getting customer group information. Please contact [email protected] and include your username and date/time of the error.'
                    );
            }
  },
  error: function (x,s,e) {
    showError(
      'Customer Group',
      'Whoops, error getting customer group information. Please contact [email protected] and include your username and date/time of the error.'
      );
  }
});

После долгих исследований я не могу понять, почему происходит ошибка. Любые идеи приветствуются.

Отредактировано: с полной версией jQuery я получаю следующее:

Uncaught SyntaxError: Unexpected token :
d.d.extend.globalEvaljquery-1.5.1.js:16
d.ajaxSetup.converters.text scriptjquery-1.5.1.js:16
bJjquery-1.5.1.js:16
wjquery-1.5.1.js:16
d.support.ajax.d.ajaxTransport.send.cjquery-1.5.1.js:16

и ДА я использую jquery.validate.

Ответы на вопрос(2)

Ваш ответ на вопрос