I have a EXT JS application, I am learning EXT JS and Ajax, My knowledge is basic and limited, I need to go forward with my application.
I need to encapsulate the entire Ajax request, in order to implement error wrapping, session lost, etc.
For now, in my code, each EXT component has its own [url removed, login to view], so I am not able to reuse code.
I like a solution that use a OOP logic, and I could call it like:
MyAjaxInstance myInstance = new ….
callback: function myInstance .success…
callback: function myInstance.sessionend..
callback: function myInstance.timeout..
(Just a suggestion I am open to experts advice about the best way)
Attached one code sample of my actual code.