¡@

Home 

2014/10/16 ¤W¤È 12:03:29

jquery Programming Glossary: fooid

Set Timeout For Controller Action

http://stackoverflow.com/questions/6184752/set-timeout-for-controller-action

link function response var finishedlink 'CheckFooFinished fooId ' response Check to see if we're finished in 1 second setTimeout.. String fooBar if Request.IsAjaxRequest Guid fooId Guid.NewGuid var result new FooResult FooId fooId HasFinishedProcessing.. Guid fooId Guid.NewGuid var result new FooResult FooId fooId HasFinishedProcessing false Uris new List string This needs..

Set Timeout For Controller Action

http://stackoverflow.com/questions/6184752/set-timeout-for-controller-action

var link 'BeginFooProcessing fooBar ' fooBar var jqxhr .post link function response var finishedlink 'CheckFooFinished fooId ' response Check to see if we're finished in 1 second setTimeout CheckIfFinishedYet ' finishedlink ' 1000 function CheckIfFinishedYet.. response And in your controller public ViewResult BeginFooProcessing String fooBar if Request.IsAjaxRequest Guid fooId Guid.NewGuid var result new FooResult FooId fooId HasFinishedProcessing false Uris new List string This needs to.. BeginFooProcessing String fooBar if Request.IsAjaxRequest Guid fooId Guid.NewGuid var result new FooResult FooId fooId HasFinishedProcessing false Uris new List string This needs to go to persistent storage somewhere as subsequent requests..