1

I'm fairly new to Joomla. I've been working on a site that retrieve data from MySQL and display it using google chart API. The page works fine on a stand alone, however it fails to operate inside Joomla. So far, from the research and the trials I've made, I'm convinced it has something to do with the HTTP Ajax Post method. Currently I'm using Jumi extension to inject my html page to joomla and the part of the script that retrive the data looks like this.

function generateChartData(){

    var jsonData = $.ajax({
      url: "getdata.php",
      dataType: "json",
      async: false
      }).responseText;

      var data = new google.visualization.DataTable(jsonData);        
      }

Any Help is highly appriciated.

Ammar
  • 73
  • 1
  • 11
  • What does your browser's developer console show? Are you including jquery twice? (both the injected HTML as well as the page you are injecting it into) Or possibly no jquery included at all? – NickAndrews Mar 15 '19 at 19:12
  • @Nicolay my page simple shows nothing [i.e Black]. As for Jquery the html page I'm trying to open inside joomla has one refrence to "jquery.min.js". – Ammar Mar 16 '19 at 09:40

0 Answers0