How to retrieve data from the DB via Ajax without controller

For Joomla! 2.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
jumlancer
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Jul 17, 2014 7:55 pm

How to retrieve data from the DB via Ajax without controller

Post by jumlancer » Thu Apr 23, 2015 7:18 am

I need to retrieve some data from #__virtuemart_order_histories in templates/active_tmpl/html/com_virtuemart/orders/details_history.php via Ajax. I know that I can do it with a new &task= in controller but is it possible to make the ajax query to the DB in the above file without touching Virtuemart core?

User avatar
VMCheckout
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 213
Joined: Wed Mar 25, 2015 9:41 am
Location: 76, Abbottswood Way, Hayes, London UB3 3PQ
Contact:

Re: How to retrieve data from the DB via Ajax without contro

Post by VMCheckout » Thu Apr 23, 2015 8:56 am

You can use VM Import/Export Tools.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17443
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: How to retrieve data from the DB via Ajax without contro

Post by toivo » Thu Apr 23, 2015 9:41 am

If you want to write your own PHP code, you can respond to the AJAX call in an external script that loads just the Joomla framework and accesses the database independently.
Toivo Talikka, Global Moderator


Locked

Return to “Joomla! 2.5 Coding”