How do I Reload Ajax Call Parameters without Reloading the webpage

Posted by Snowright on Stack Overflow See other posts from Stack Overflow or by Snowright
Published on 2010-06-14T21:47:12Z Indexed on 2010/06/14 21:52 UTC
Read the original article Hit count: 188

Filed under:
|
|

I'm working with Extjs 2.2.1 with Alfresco 3.2 enterprise.

I would like to update the ticket that handles authentication to the alfresco server on components that have been loaded during login. This ticket expires after a set time and this is why I will need to update the ticket.

Options that do not seem viable for me(but please let me know if I'm wrong):

  1. Reload the components to reload the call parameters - I can't do this because it resets whatever the user was previously working on (ie. Tree panel gets reloaded, grid filters reset, etc). The actual webpage never reloads as everything uses ajax calls to update things on the page.

  2. Create a global variable that stores the ticket and attach it as a call parameter with any ajax calls - Any components that were loaded during login will still use the original ticket to make calls to the server.

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about extjs