Linked Questions

60 votes
1 answer
63k views

I have a back-end server written in asp.net mvc using Forms Authentication. When the user is not authenticated, the server will automatically send a 302 redirect to a Login action and return a Login ...
Khanh TO's user avatar
  • 49k
21 votes
1 answer
3k views

I have a jquery function that calls a PHP file via AJAX. Inside that PHP file I have header('Location: http://www.google.com'); However this doesn't work, the page is not redirected and the jQuery ...
David Healey's user avatar
11 votes
3 answers
3k views

Possible Duplicate: How to manage a redirect request after a jQuery Ajax call I have a form that is validated client-side with Jquery. Jquery then passes this data to a php script for server-side ...
Johny's user avatar
  • 369
6 votes
1 answer
9k views

I try to redirect to a new page after ajax post but I have not been successfull yet. My template looks like this: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js">...
user avatar
3 votes
1 answer
6k views

I am trying to call a function in Flask by clicking a button. When the button is clicked, the following script runs. JS $("#load_btn").click(function() { $.get("/callback"); } Flask @app.route('...
Sudeep's user avatar
  • 806
1 vote
2 answers
6k views

I have a page with a button that makes a ajax post to a flask route. I'd like the route to compute a message (simplified by hardcoding for the example) and passes it back to another route and reloads ...
user2242044's user avatar
  • 9,283
0 votes
1 answer
4k views

I know flash is set up properly as all other flash messages are being displayed correctly. I have updated one view. It used to call the flask route from a javascript window.location function but now ...
Philip Butler's user avatar
2 votes
1 answer
4k views

In my MVC3 application there are a couple of situations where I a display a splash screen dynamically load a partial view via jQuery's ajax methods and injecting html into the DOM. The thing is if ...
jcvandan's user avatar
  • 14.4k
1 vote
1 answer
2k views

So I've been working in Flask and ran into an irritating problem. I'm creating a website and using the redirect function the website doesn't switch pages. Each place I'm attempting to go to can ...
Sam Rosenberg's user avatar
12 votes
1 answer
1k views

When the user is validated the client get the page contents of home.html in result instead of redirecting to the home.html. Client side call: $http({ method: "post", url: "http://localhost:2222/...
Shreyas's user avatar
  • 1,935
3 votes
0 answers
2k views

Let's say I have this setup Why after clicking "arrToPython" button flask does not redirect me to "query_result.html"? And more importantly, how can I make it to do so? I tried creating separate ...
Bogdan Kapusta's user avatar
-1 votes
1 answer
891 views

User pushes the button on site and by this ajax request starts than Server returns True or False. If the result is True than another ajax request is to be processed, but I am getting nothing (I guess ...
Ivan's user avatar
  • 51
1 vote
0 answers
490 views

My POST request handler can either return content that I load into a div or the browser is redirected. When I use jQuery's .post(), in the case of a redirect, instead of the entire page redirecting, ...
user2233706's user avatar
  • 7,387
0 votes
1 answer
432 views

I am trying to achieve the following. After a form is submitted successfully I want to run a code after the server response is 302. for this example, I have a form that is waiting to be submitted, ...
user avatar
2 votes
1 answer
327 views

Data is persisting in table but after that page is not redirected to the specified destination. Is redirection through ajax possible? Please check the code and help me out function foodLog(){ ...
Karthikeyan's user avatar

15 30 50 per page
1
2 3 4 5
13