0 Replies Latest reply on Mar 26, 2008 11:32 PM by avnaveen

    HTTP Request Error

      Hi Iam using Flex to display pie chart in my application. Im getting the pie chart in Mozilla firefox but in IE iam getting Http Request Error. Iam giving the code what i wrote. Please find. can anybody help me in this? thanks

      mxml file

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" width="300" height="232" backgroundColor="white" usePreloader="true">

      import mx.messaging.channels.StreamingAMFChannel;
      import mx.charts.series.LineSeries;
      import mx.rpc.events.ResultEvent;
      import mx.rpc.events.FaultEvent;
      import mx.controls.Alert;
      import mx.controls.*;
      import mx.events.*;

      public var orXmlList:XMLList;

      public var orXml:XML;
      public var orderCount:String = "0";

      private function getOrXML():void{

      public function handleXML(event:ResultEvent):void
      orXml = event.result as XML;
      orXmlList = event.result.orderResultsData.order as XMLList;
      var orMetaString:String = "orMeta";
      orderCount = orXml.orderResultsData[0].orMeta[0].orderCount;

      public function handleFault(event:FaultEvent):void
      Alert.show(event.fault.faultString, "Error");

      <mx:HTTPService result="handleXML(event);" fault="handleFault(event);" id="orRPC" resultFormat="e4x"
      method="POST" url="/global/corpOrderResults.csc" useProxy="true">

      <mx:PieChart x="0" y="46.95" id="orPieChart" width="168" height="126" dataProvider="{orXmlList}" creationComplete="getOrXML();" showDataTips="true">
      <mx:PieSeries nameField="name" field="count" />
      <mx:Legend dataProvider="{orPieChart}" x="141.25" y="56.6" verticalGap="0"/>

      <mx:Label id="orInfoLabel" x="0" y="20.95" text="Orders updated in the last 30 days: {orderCount}" width="283.4" height="18"/>

      </mx:Application> Text

      And my JSp page is:

      <div id="flashcontent">

      <script type="text/javascript">
      var so = new SWFObject("/global/flash/litigationByNoc.swf", "mymovie", "400", "200", "8", "#336699");