getJSON callback not firing

Posted by Marty Trenouth on Stack Overflow See other posts from Stack Overflow or by Marty Trenouth
Published on 2010-04-26T20:00:37Z Indexed on 2010/04/26 20:03 UTC
Read the original article Hit count: 143

Filed under:
|
|

I'm making the call using the following script which is called on click of an anchor tag

   function GetToken(videoId) {
        debugger;
        var json = $.getJSON("/Vod/RequestAccessToken/"+videoId, function(result){
            alert("token recieved: " + result.token);
        });
   }

In the server application I recieve the call so I know it is a valid URL, but the callback is not being invoked. If i set though the jquery code (f11/f10) the callback is called??!!!?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX