javascript - easyXDM rpc with HashTransport callback not being fired -


i'm using easyxdm 2.4.17. i've setup rpc remote 'tunnel.html' makes ajax calls using jquery.

for modern browsers (those postmessage) working fine. when test on ie7 easyxdm falls hashtransport , still works fine except never see ajax response. can see request coming fine callback never being fired reason.

my tunnel.html file looks this:

<!doctype html> <html>     <!--[if lt ie 9]>     <script type="text/javascript" language="javascript" src="https://mydomain.net/json2.min.js"></script>     <![endif]-->     <script src="https://mydomain.net/easyxdm-2.4.17.js"></script>     <script src="https://mydomain.net/jquery-1.10.2.min.js"></script>     <script>         function apitunnel (endpoint, params, method, callback) {             var options = {                 url: endpoint,                 data: params,                 type: method,                 complete: function (xhr) {                     var response = {};                     try {                         response.data = json.parse(xhr.responsetext);                     } catch (ex) {                         response.error = xhr.responsetext;                     }                     callback(response);                 }             };             jquery.ajax(options);         }         var rpc = new easyxdm.rpc({}, {local: { apitunnel: apitunnel }, serializer: json});     </script> </html> 

update: after debugging looks response getting stuck in queue. tunnel side failing on image host page. clogs queue , never lets ajax response through. ideas?

update 2 if set timer remove waiting lock , dispatch queue after 2 seconds works. don't feel great work. i'm not sure why initial call failing -- i'd rather fix root issue if possible, i'm not sure understand root issue is.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -