Каталог JOOMLA:
C:\xampp\htdocs\progetti \dilerooms
Я создаю статью: DASHBOARD и вставляю этот код:
Код: Выделить всё
{source}
var jQueryRepresentatives = jQuery.noConflict();
jQueryRepresentatives(document.body).on('change','#state',function(){
jQueryRepresentatives.ajax({
type: 'GET',
url: "http://localhost/progetti/dilerooms/index.php?option=com_ajax&module=k2_representatives&format=raw&Itemid=111&method=getRepresentatives&state="+jQueryRepresentatives('#state').val(),
success:function(data){
jQueryRepresentatives('#results').html(data);
},
error:function(){
jQueryRepresentatives('#results').html('
error '+jQueryRepresentatives('#state').val()+'
');
}
});
});
[b]DETTAGLI SPESE CONTO[/b]
Seleziona anno
{/source}
Код: Выделить всё
{source}{/source}

и я создаю test.php в каталоге joomla:
Код: Выделить всё

Я ожидаю, что когда я выберу раскрывающееся меню, оно напечатает то, что находится внутри файла test.php; но происходит ошибка: function().

Подробнее здесь: https://stackoverflow.com/questions/790 ... ternal-php
Мобильная версия