I am implementing an application which relies upon communication between a JavaScript client and a server which knows how to respond to the client using JSONP notation.  I am attempting to handle the case in my Javascript client where my server retur...
We are currently engaged in a project hosted by our university. We are supposed to open a JSON file with some data in it, provided by a web server.  The code that is used in this scenario is the following:  listeAbrufen: function() {     var load = n...
Should an OPTIONS request ever return a 429?  The problem is really that a Browser client (js) can not detect the 429 correctly when returned from an OPTIONS request. So I'm leaning towards only returning 429 for non OPTIONS requests.  What is be...
Lets say I have a single-page web application with a list of items where a user can click on an item to view more info about it. The actual item info is loaded asynchronously, using an AJAX GET request to the URL http://www.example.com/item/[id] and...
I am building an app in which I am trying to build my own logging system for each request.  For each request, I'd like to log the timestamp, the method used, the route, and finally the response code that has been sent to the client.  I have the f...
I'm trying to handle a Status: HTTP/1.1 204 No Content error. I'm using .fail() to handle all other errors, but 204 is not handled by this function. While trying if (jqXHR.status == "204") {alert("error!");}, the alert is not...
I use this pseudo-class to make Ajax request to server:  function RequestManager(url, params, success, error){     //Save this Ajax configuration     this._ajaxCall = null;     this._url= url;     this._type = params.type;     this._success = functio...
I'm trying to detect when an Ajax (xhr) request gets a status code of 408 in order to direct the user to a login/timeout page.  At the moment I'm using an old version of jQuery (1.3.2) to perform all of my ajax requests and have the following...
I know this will probably lead to a security breach, but is there a way in JavaScript to check the validity of a URL? This has to be done in the client, because I need to check whether the URL is accessible from it. Internal/external network differen...
I'm 100% stumped on this one and don't even know where to begin looking, so if I need to add any detail anywhere please let me know.  I'll start with the main thing: I cannot reproduce this on my localhost; it is only happening on my live...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.