PDA

View Full Version : Store take the first response and ignore others



Sadd
12 Jul 2012, 10:30 AM
I'm working with a grid and i need to take the first response of the server and kill others responses, f.e. the grid loads with no filters, i make a request with id=3, the grid loads this data and when the first response ends the grid loads the new response data...

Is any way to override this behaivor?

Thanks.
- Sadd

el_chief
12 Jul 2012, 10:37 AM
That makes zero sense to me.

Can you show us a sample "response"?

Why is your server sending multiple "responses"?

Sadd
12 Jul 2012, 11:11 AM
The problem is not multiple responses, the issue is a normal response without filters can take a lot and look for a particular id takes few secs, then if a do taht i want to kill the first response in the client side and only shows the second one with just 1 row.

scottmartin
12 Jul 2012, 11:31 AM
Have a look at:

Ext.Ajax: abort(), autoAbort
Ext.Connection abort(), autoAbort

Scott.

Sadd
12 Jul 2012, 12:13 PM
Thanks Scott : )