Author Topic: xmlToJson  (Read 3577 times)

sbryan

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 6
    • View Profile
xmlToJson
« on: March 20, 2015, 01:13:26 am »
I downloaded the Pro evaluation and when I try to use xmlToJson
Code: [Select]
var data = $.paramquery.xmlToJson(dataXMLDoc, obj);
I get the error: "TypeError: $.paramquery.xmlToJson is not a function"

If I use
Code: [Select]
var data = $.paramquery.xmlToArray(dataXMLDoc, obj);   it works

I've made sure I'm using the correct pqgrid.min.js file that came with the Pro evaluation but it looks like the function isn't in there.
« Last Edit: March 20, 2015, 03:02:41 am by sbryan »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6313
    • View Profile
Re: xmlToJson
« Reply #1 on: March 20, 2015, 09:43:27 pm »
xmlToJson method is used in this demo.

http://paramquery.com/pro/demos/grid_xml

Evaluation version is fully functional and contains this method. Have you cleared browser's cache, there is a good chance that your scripts are still referencing base version of grid.

sbryan

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: xmlToJson
« Reply #2 on: March 21, 2015, 01:05:54 am »
Clearing the browser cache worked. Thanks!