Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Chat and Cute Web Messeng...
»
Re: Chat_OpenContact('<username>') with Oldmessenger (possible?)
Chat_OpenContact('<username>') with Oldmessenger (possible?)
Last post 02-26-2009, 3:34 AM by
guillermobt
. 2 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
02-25-2009, 6:18 AM
49222
guillermobt
Joined on 02-01-2009
Posts 10
Chat_OpenContact('<username>') with Oldmessenger (possible?)
Reply
Quote
Is there a way to make Chat_OpenContact('IE')" function work with the old messenger (not the embeded newmessenger one)?
Regards
Filed under:
dialog messenger
,
oldmessenger
,
Chat_OpenContact
02-26-2009, 1:36 AM
49251
in reply to
49222
cutechat
Joined on 07-22-2004
Posts 2,332
Re: Chat_OpenContact('<username>') with Oldmessenger (possible?)
Reply
Quote
Please check this way:
function
Chat_OpenContact(targetuserloginname)
{
var
winshown=
false
;
function
SendOpenContactCommand()
{
var
xmlhttp=Chat_CreateXmlHttp();
xmlhttp.open(
"POST"
,chatservice_url,
true
);
xmlhttp.setRequestHeader(
"Content-Type"
,
"application/x-www-form-urlencoded; charset=utf-8"
);
var
arr=[];
arr[arr.length]=
"METHOD=OPENCONTACT"
;
arr[arr.length]=
"CONTACT="
+encodeURIComponent(targetuserloginname);
var
data=arr.join(
"&"
)
xmlhttp.send(data);
}
function
CheckMessenger()
{
if
(GetCookie(
"CuteChatIMMainForm"
))
{
SendOpenContactCommand()
}
else
{
setTimeout(CheckMessenger,100);
if
(winshown)
return
;
winshown=
true
;
window.open(
"CuteSoft_Client/CuteChat/Messenger.aspx"
,
"Messenger"
,
'status=1,width=300,height=500,resizable=1'
);
}
}
CheckMessenger()
}
Regards,
Terry
02-26-2009, 3:34 AM
49269
in reply to
49251
guillermobt
Joined on 02-01-2009
Posts 10
Re: Chat_OpenContact('<username>') with Oldmessenger (possible?)
Reply
Quote
Thankyou again Terry.
It works fine!
Regards