CodeIgniter Forums

Full Version: calling xml file in Ajax
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hi All

i have two xml files. i need to use them in loding data. here i strucked where i need place the two xml files. that wheter in views folder, or out side of the Application folder?

and how i called the two files in ajax. because, i am loading data from xml files through ajax calling.

  type: "GET",
  url: "configData.xml?file="+dateTime.getTime(),
  dataType: "xml",
  success: function(configXML) {



configData.xml, is my one of the xml file name.

thank you

El Forum

You can echo the XML from your controller, or put it into a view. It's up to you. Just be sure that you disable error reporting and the profiler if they're enabled.

El Forum

i am not clear. elaborate your answer