A problem setting timeout feature in with Jquery AJAX -


I have a jquery html page that loads a form.

The form has a bunch of settings, but eventually a form is deposited using a post command (see below) which gives the HTML page created by a script running on the server.

It works fine, except when the script runs for more than 5 minutes.

$ AjaxSetup ({cache: false, timeout: 18000000});

But do not you think this is a work to do?

There is a post command here:

  $ Post ('/ cgi-bin / tw_lookup_3.cgi', lookupdata, function (data) {var page = $ (data) .find ('input [name = result_dir]'). Val (); $ ('# results' $ ('+' # SubmitQuery ''. $ ('Background code', ''); $ ('#' submit '). CSS ( 'Color', '');}, "html");  

It is possible that the server expires on time and it is just returning an error? Set an error in handling the function and determine whether it is being called or not.

if you are up Decisive for long (like 5 minutes!) Are expected, especially in dealing with the errors should be a standard practice.

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -