jquery ajax url in callback
I am trying to make wowza REST api call from my .net application. I am doing that using jquery ajax method. Could anyone please show me how to do that with digest authentication method? Because your jQuery is on a PHP page, Im guessing that either the correct jQuery library is not loaded or that myajaxobj.ajaxurl is not properly defined.Any call to wpenqueuescript() must occur within a callback to one of a few limited hooks, wpenqueuescripts for front end scripts. .ajax( url: myproxy.html, success: myCallback, context: myVar: my value ) Whatever is passed into context becomes the context of the callback function.YUI.util.Connect.asyncRequest(GET, myproxy.html, callback) In perusing the jQuery source, it seems pretty easy to add this functionality. You could store a mapping from the xhr object to the url in your ajaxSend callback, then in your success callback look it up given the xhr object that it provides you with. This has the advantage of not having to modify each .
ajax() object. The jQuery ajax() method provides core functionality of Ajax in jQuery. It sends asynchronous HTTP requests to the server.This value will be used instead of callback in the callback? part of the query string in the url. As mentioned earlier, you can also call the .ajax() method by passing it a URL and an optional configuration object.You can also use the .getJSON() convenience method to make a JSONP request if the URL includes callback? or similar, then jQuery will treat it as a JSONP request. Here I have pass dataType as jsonp and important is to pass callback into url otherwise your code will not work.