This is a discussion on How do we stop the ajax request? within the PHP Programming forums, part of the Web Development category; hi all, I have two seperate php pages. 1. main.php, 2. result.php main.php have div tag , ok &...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| hi all, I have two seperate php pages. 1. main.php, 2. result.php main.php have div tag , ok & cancel button & ajax function, div tag for display the result from result.php page. result.php only return some string for display when its call by ajax function. if i click the ok button then it will call the ajax function , then ajax function send to http request to result.php & waiting request for result.php ? after getting request from result.php -> show the result to main.php (ajax doing this functionality generally) i want to stop the ajax http request: - user click ok button then ajax function will be call, that time user immediately click the cancel button that ajax request should be terminate, is it possible? Last edited by raj : 07-17-2007 at 05:12 AM. |
| Sponsored Links |
| |||
| hi raj, yes... possibleThanks -Kathir |
| |||
| Hi, Because AJAX is normally processed asynchronously we may have situations where we want to stop waiting for the responce to come back from the server because it is no longer relevant. If u want to stop the Ajax request process, you can manually call as Kathir said obj.abort().
__________________ With, J. Jeyaseelan Everything Possible |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to use ajax in asp.net and how to install ajax in my system | vel.m8 | ASP and ASP.NET Programming | 5 | 04-08-2008 08:55 PM |
| New Topic head request | prasannavigneshr | Discussweb HQ | 6 | 02-10-2008 03:04 AM |
| what is change request, how u use it? | Shanthi | Software Testing | 1 | 11-16-2007 04:33 AM |
| Suppose server object is not loaded into the memory, and the client request for it , | oxygen | Java Programming | 1 | 07-27-2007 04:15 AM |
| New Topic head request | Karpagarajan | Discussweb HQ | 2 | 07-16-2007 07:32 AM |