Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

event.target.data is html instead of JSON string

$
0
0

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);

 

 

protectedfunction 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.


Viewing all articles
Browse latest Browse all 2010

Trending Articles