![]() ![]() The jQuery code to do this looks something like: $. I perform an AJAX request that has 2 possible responses: one that redirects the browser to a new page and one that replaces an existing HTML form on the current page with a new one. ![]() The JavaScript on the client can then use the JSON object to decide what it needs to do. ![]() Her dialogue and interaction are dependent by four states: Negative Insanity, Positive Karma: She would be similar to Act 1 Yuri, she will be more passive, and will love you unconditionally. In this case, all responses to AJAX requests have the status code 200 and the body of the response contains a JSON object that is constructed on the server. SuperDeluxe is a debug feature that we left in the mod by accident. Even though this worked, I was a little dissatisfied as it is a bit of a hack.Īfter more digging around, I ditched this approach and used JSON. I read this question and implemented the approach that has been stated regarding setting the response HTTP status code to 278 in order to avoid the browser transparently handling the redirects. ![]()
0 Comments
Leave a Reply. |