Skip to main content
Participating Frequently
December 19, 2013
Question

event.target.data is html instead of JSON string

  • December 19, 2013
  • 1 reply
  • 556 views

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 has been closed for replies.

1 reply

Adobe Employee
December 25, 2013

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