how to use Jquery AJAX in Joomla Components?

后端 未结 8 1700
野趣味
野趣味 2020-12-16 07:15

i m developing site in Joomla, meanwhile i stuck in a problem,please help me in below problem

here is my folder structure for component

htdocs/Joomla         


        
8条回答
  •  执笔经年
    2020-12-16 07:23

    I found the solution. You must prevent the joomla to attach the templates and modules and ... to your output ajax data. for this you must add this code after displaying your data

    //after $this->display($tpl);
    
    global $mainframe;
    
    $mainframe->close();
    

提交回复
热议问题