javascript - jquery ajax success result is null -


I am calling an AJAX call using jquery to get data in jjson format. Success callback function is called but data is empty.

  $ (document) .ready (function () {$ .ajax ({url: "http://apps.sungardhe.com / Student Research / Public / Research SVC / School" Type: "GET", Content Type: "Application / Jason; Charset = UTF-8", Datatype: "Jason", success: CBSschool});}); Function cbSchools (data) {if (data == empty) {warning ("data is empty"); Return; } (Data School in Word) {$ ("# ddSchool") Append ("& lt; option value = '" + data [school]. Shortname + "'>" + data [school]. ShortName + ""); }}  

I understand that the response is actually returning the JSN data, but for some reason the jquery result object is zero. Can anyone tell me?

You are being blocked, preventing cross-domain XMLHttpRequests, since you get JSON back Need to set up headers, in this way Net Web Service, you are in a difficult place, you can not request that kind of browser from a browser, and not from a different domain.

Intelligence may be showing content, but the browser page is not going to see it, for security reasons it will always be empty. There is only one way around it, but unfortunately it does not seem that the service is ready to support it.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -