Click here to Skip to main content
15,890,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
In my Application i need the script to run for long time since i need to fetch huge amount of data. but the browser alerts the error because the script used in the application loads for more time. how to solve this error.
Posted
Comments
Santosh K. Tripathi 5-Feb-15 5:57am    
Hi,

Could you tell me 'error message' is comes from database or from browser itself.
Chrisraj 5-Feb-15 6:36am    
Hi thanx for your reply its from the browser... wat shall i do..
Sinisa Hajnal 5-Feb-15 6:35am    
Split fetching into chunks that will execute in order.
Chrisraj 5-Feb-15 6:37am    
how do i split because am using the single SP for the whole...
Sinisa Hajnal 5-Feb-15 6:51am    
You could define fixed page size and retreive fixed number of records for each page and on each successive request increase page by one. You'd have to add page parameter into the SP OR add in some table a field current_page...

You could also run ajax (asynchronous) call and keep doing other stuff until it returns. Not sure if this would keep the browser from complaining.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900