Hlo,
Chce uzyc ajax.updater:
function manageCart(task, pid, itemtype, itemid) {
var url = 'cart.php';
var params = 'task=' + task + '&pid=' + pid + '&itemtype=' + itemtype + '&itemid=' + itemid;
var ajax = new Ajax.Updater(
{success: 'ajaxresults'},
url,
{method: 'get', parameters: params, onFailure: reportError});
}
ale niezaleznie od ustawien url (sciezka - jedyne co wg mnie moze byc zle), zawsze przekierowuje do funkcji zdefiniowanej w onFaillure.
carta.php zwraca zwykly html (<table>....</table).
Pytanie - czy mozna to jakos debugowac? Czy ma ktos pomysl co moze byc zle?
Thnx