Сообщение от Vaska
|
Что я делаю не так?
|
Во всех примерах, что я видел, про $.ajaxSetup(), он используется в паре с $.ajax()...
В доке есть вот такие строки
Цитата:
|
The settings specified here will affect all calls to $.ajax or Ajax-based derivatives such as $.get(). This can cause undesirable behavior since other callers (for example, plugins) may be expecting the normal default settings. For that reason we strongly recommend against using this API. Instead, set the options explicitly in the call or define a simple plugin to do so.
|
https://api.jquery.com/jQuery.ajaxSetup/
Т.е. он работает с $.ajax() и ему подобным, таким как $.get().
Т.ч. .load() явно не такой метод.
Так же обрати внимание что сами авторы не рекомендуют использовать $.ajaxSetup(). Советуют явно указывать "настройки" в запросах.
