• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
calling xml file in Ajax

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

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.

i am not clear. elaborate your answer

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.