how to use Jquery AJAX in Joomla Components?

后端 未结 8 1669
野趣味
野趣味 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:31

    Nothing worked for me from all given solutions above(Joomla 3.1). So I used this solution. Add tmpl=component in url.

    index.php?option=com_photos&view=intphoto&id=1&tmpl=component
    
    0 讨论(0)
  • 2020-12-16 07:37

    You can use:

    url: "index.php?option=com_test&view=check_user&format=raw",

    which will prevent loading of entire template, but will load only component's output, which you actually want when you call your ajax functions.

    Also, you might check index2.php (instead of index.php) which has been designed in a similar fashion to provide the simple output, without rendering entire template.

    0 讨论(0)
提交回复
热议问题