Forum
11:50
16/07/2009
I realize that the problem we are trying to solve here is because of our authentication mechanism (we are using JAAS), but I'm wondering if anyone has any argument against adding the XMLHttpRequest object to the loadComplete() function call?
Looking at the source code, it's a VERY easy change as the populate function simply defers to jQuery's $.ajax(…) function and the code that calls the jqGrid loadComplete function can simply take the first parameter passed (the request object) to the $.ajax(…).complete(…) function.
The problem is that when JAAS detects that a request is made to a protected resource and the user's session has expired, it redirects the request to the login page. Agreeably in a somewhat hacky fashion, we add a response header indicating that the user's session is still valid – if the header is missing, we know it's not and can redirect the browser to the login page.
However, because we don't have access to the request object, we can't look for this header. Obviously, by modifying the grid.base.js file we can “fix” this, but then we have to remember to do this every time we upgrade jqGrid.
So, I'm wondering if anyone has any pushback on making this modification. Comments are welcome.
–adam
10:28
Moderators
30/10/2007
Hello,
In the 3.5 version to the loadComplete event we pass the request.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
76 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66