Tomo

Members
  • Content count

    3
  • Joined

  • Last visited

About Tomo

  • Rank
    Forum Newbie
  1. the sample is simple: <html> <head> <script type="text/javascript" src="./static/lib/jQuery/jquery-1.4.4.js"></script> <script type="text/javascript" src="./static/lib/MooTools/mootools-big.js"></script> <script type="text/javascript" src="./static/lib/MooTools/mootools-compat-big.js"></script> <script type="text/javascript" src="./static/lib/FusionCharts/JSClass/FusionCharts.js"></script> <script type="text/javascript"> $(document).ready(function(){ people = {"name": "tomo"}; console.log(people); alert(JSON.encode(people)); }); </script> </head> <body> </body> </html> the console raise this error: SCRIPT438: Object doesn't support property or method 'encode' Do you need the mootools or the fusioncharts js?
  2. I use Mootools and FusionCharts the same time. When I include FusionCharts.js after including Mootools.js, the JSON object in Mootools seems be overwriten by JSON defined in FusionCharts. Otherwise, when I include FusionCharts.js before including Mootools.js, the JSON object is properly handled (mootools append attributes to the JSON object, not overwrite the JSON object). I test this and find that only IE7 has this behavior. code in FusionCharts: var JSON;JSON||(JSON={}); code in Mootools: if (!this.JSON) this.JSON = {};