on 06-12-2014 5:54 PM
We have been modifying our MII pages to minimize use of applets and maximize use of AJAX.
With the example Javascript code I have, there is one thing I don't know how to do: get the UserID of the logged-in user without the use of applets.
With any applet on the page, I can use this syntax:
var username = document.[AppletName].getPropertyValue("IllumLoginName");
How can I do the same thing without the use of applets?
Thanks,
Greg
I think you can make a call to this service to get the current users info: /XMII/Illuminator?service=admin&mode=CurrentProfile
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This was a step in the right direction.
(For my AJAX purposes it was important to add "&Content-Type=text/xml" to the end:
/XMII/Illuminator?service=admin&mode=CurrentProfile&Content-Type=text/xml)
However, this worked only when the logged-in user also happens to be an administrator. It doesn't work for just any user. Is there a way of obtaining the name of the logged-in user (and other info such as their roles would also be helpful!) even if that user isn't an administrator?
Greg
Sorry I forgot about the PropertyAccessServlet which is what I think you really need. See if this thread helps:
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.