Skip navigation
avnaveen
Currently Being Moderated

HTTP Request Error

Mar 26, 2008 11:32 PM

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">

<mx:Script>
<![CDATA[
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.*;

[Bindable]
public var orXmlList:XMLList;

[Bindable]
public var orXml:XML;
[Bindable]
public var orderCount:String = "0";

private function getOrXML():void{
orRPC.cancel();
orRPC.send();
}



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:Script>

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


<mx:PieChart x="0" y="46.95" id="orPieChart" width="168" height="126" dataProvider="{orXmlList}" creationComplete="getOrXML();" showDataTips="true">
<mx:series>
<mx:PieSeries nameField="name" field="count" />
</mx:series>
</mx:PieChart>
<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">
</div>

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

More Like This

  • Retrieving data ...

Bookmarked By (0)