Home > Mobile >  jQuery Ajax Background Process
jQuery Ajax Background Process

Time:02-22

I have to process a large image file and I'd like to set this process in motion than have the user be able to continue on with other things. If I make an AJAX call with: async: true, can I redirect the users to another page and that function will continue on the server until finished?

CodePudding user response:

When you redirect to another url, the server kill the process! If you want to do image processing on the server, its a different story, but if you want to do it on the browser, you can do it in the background, but you have to just stay in the same page and url. if you change the page or url, you will lost it.

  • Related