How to hook into UserProfile update event of mysites
-
Tuesday, March 06, 2012 1:45 AM
Hi
I have requirement to act on any change use does to his/her profile after (s)he clicks on "OK" button on Edit user profile page.
I searched, but I did not find any examples to hook into profile update event of edit profile page. Only article which mentions about this is http://www.sharepoint-tips.com/2006/08/user-profile-event-handling.html
can anyone please let me know if there is a way to hook into user profile update event?
Regards,
RK
Radhakrishna
All Replies
-
Thursday, March 08, 2012 3:33 PM
Hi
Just wanted to provide an update and hopefully it helps someone trying do the same thing. Thanks my colleague (Rakesh) who came up with an idea to capture click event of OOTB control "Save and close" link by using jQuery in combination with web service (it can be custom web service or OOTB web service) as shown below
<script language="javascript"> $('a[id$="ProfileSave_i"]').bind('click', function() { alert("img"); //call web service using javascript or SPServices from code plex }); $('a[id$="ProfileSave"]').bind('click', function() { alert("text"); //call web service using javascript or SPServices from code plex }); </script>This may not be give entire flexibility as with overriding or capturing the ok button event but can be use ful to accomplish one time task like clearing server side cache... or perform client side tasks.
Regards,
RK
Radhakrishna
- Marked As Answer by Lhan HanModerator Saturday, March 17, 2012 2:54 PM

