Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
loadComplete event function takes no arguments
16/07/2009
11:50
Avatar
icfantv
Member
Members
Forum Posts: 5
Member Since:
16/07/2009
sp_UserOfflineSmall Offline

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

16/07/2009
11:53
Avatar
icfantv
Member
Members
Forum Posts: 5
Member Since:
16/07/2009
sp_UserOfflineSmall Offline

Crap, didn't mean to post this in the bugs section - moved to Feature Requests.

20/07/2009
10:28
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information