а что именно не работает? Firebug что выдает ?
У меня лично все работало с запросом:
$j.ajax({
url: "index-ajax.php",
dataType : "html",
data: "q=assets/snippets/ajax/ajax.php&id="+id,
type: "POST",
success: function(msg){show(msg);}
});
How could number of mysql queries be more than number of tables in DB???
Сам скрипт вмпринципе работает, а именно в среде MODX отказывается
How could number of mysql queries be more than number of tables in DB???
Там в файле сниппета assets/snippets/n2_galery/tpl_prevew.php 1 строчка кода написана для тестирования
echo $_POST[’type’];
Я всегда первую строчку пишу
header('Content-type: text/html; charset=utf-8',TRUE);
В Firebug проверяли, идет ли запрос, может у Вас Quick Manager подключает jQuery еще раз и перекрывает вашу функцию?
How could number of mysql queries be more than number of tables in DB???
предъявите весь код ajax.js, плз

А то непонятно, что находится в тех строчках, на которые выбивает ошибка.
Prototype и motools отключен?
How could number of mysql queries be more than number of tables in DB???
Текст этого файла в моем первом посте.
А где в MODX отключаются эти библиотеки????
попробуйте так
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery("a.menu").click(function(){
var type = jQuery(this).attr("id");
var location = "assets/snippets/n2_galery/tpl_prevew.php";
var sendData = "q="+location+"&type="+type;
jQuery.ajax({
type: "POST",
url: "http://modx/index-ajax.php",
data: sendData,
beforeSend: waiton(),
complete: waitoff(),
success: function(result){
jQuery(".content").html(result);
}
});
});
});
How could number of mysql queries be more than number of tables in DB???