Skip to main content
Participating Frequently
Dec 19, 2013 6:14 PM UTC
Question

event.target.data is html instead of JSON string

Hi,

I'm getting different results on Windows and Mac OS for an api request sending back JSON.

This is my request :

sServicePath = API_URL + "theMethod/?";

urlRequest.method = URLRequestMethod.GET;

urlRequest.url = sServicePath;

urlVars = new URLVariables();

urlVars.someVar = someVar;

urlRequest.data = urlVars;

 

loader = new URLLoader()

loader.load(urlRequest);

protected function completeHandler(evt:Event) : void

{

     // this traces the JSON string on Mac OS and HTML on Windows

     trace(evt.target.data);

}

My app is Air 3.5.

My requests that use POST are working fine on both Windows And Mac.

Any ideas ?

Thank you.

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Adobe Employee
Dec 25, 2013 7:36 AM UTC

Could you please open a new bug report on this over at https://bugbase.adobe.com?  When adding the bug, please include your sample code or a sample application so we can quickly test this out internally.

Once added, please post back with the URL so that others effected can add their comments and votes.

Thanks

-Bo

Translate