snippets / viewContactInfoActual

Language: Javascript - First posted by willowdan on 2008-05-9 09:57 (1 month, 3 weeks)
Link to the snippet: http://www.friendsnippets.org/snippet/297/

viewContactInfoActual

 1 function viewContactInfoActual(contactIDGlobal){
2
3 if (connectionObj.forcedLogout) {
4 isDisconnectedForcedLogout();
5 return false;
6 }
7
8 selFullAddress = contactIDGlobal;
9 var paramViewContactInfo= 'viewContactProfile='+'&contactID='+selFullAddress;
10
11 new Ajax.Request(viewContactInfoUrl, {
12
13 method : 'post',
14 onSuccess : function(xh) {
15 var output = JSON.parse(xh.responseText);
16
17 if (!connectionObj.forcedLogout) {
18 if (isDisconnectedForcedLogout(output)) {
19 return false;
20 }
21 } else {
22 isDisconnectedForcedLogout(output);
23 return false;
24 }
25
26 viewContactInfo(output);
27
28 },
29 onFailure : function(xh) {
30 alert("Oops, there's been an error.");
31 },
32 parameters : paramViewContactInfo
33
34 });
35 }
In order to post a comment, you should have a friendsnippet account. Please sign-in.

0 comments

May '08

Common Tags


Related snippets

0 snippets in relation for now.


snippet History

May '08