Sharon.Danino


Hello All,

I want to know how to create link from my web site on Support Page, to the MSN Messenger by click on that link and go to my support team PC

Thanks




Re: How to link Web Site to Messenger

Kushi


Is this what you are looking for

Start a <a href="msnim:chat contact=admirenature@hotmail.com">conversation</a> with Mother Nature

 -usha






Re: How to link Web Site to Messenger

Sharon.Danino

Hello my Friend,

i need to write this:

<a href="msnim:chat contact=admirenature@hotmail.com">conversation</a>

on my web page

I also need a link to SKYPE from my web page.

Thanks






Re: How to link Web Site to Messenger

J-Thread

Actually this is a Messenger development forum, so skype questions are not very welcome, but I'm in good mood so here you go ;-)
<a href="skype:username">Skype me!</a>
Replace username with your username :-)




Re: How to link Web Site to Messenger

Andres

Hi, I have adapted this to a forum page I have. I tried the link with a PC running windows XP Home and Windows live messenger and it worked fine. When I tried running it with a machine running windows 98 SE and MSN Messenger 7, it did not work. Does any one know what the requirements are for making the link work Can somebody refer me to an official page with information Would you happen to know how to check the system with javascript to avoid prompting a "page cannot be displayed" page.

Thanks in advance to your valuable help






Re: How to link Web Site to Messenger

Jeroen Bransen - J-Thread

In versions before 8, you could do something like:
Code Snippet
function SendIm(email) {
try {
var msn = new ActiveXObject("Messenger.UIAutomation.1");
if(msn != null)
msn.InstantMessage(email);
}
catch(e) { }
}





Re: How to link Web Site to Messenger

Andres

Thank you so much. I just tried it with the older machine, this is a computer running windows 98 Se and Windows Messenger 7, and it worked properly. I want to add that Windows Messenger must be running and the client must be logged in.






Re: How to link Web Site to Messenger

Andres

Hi, again. I was trying to handle exceptions and versioning with the script given before and I came up with the following code

function SendIm(email) {
try {
var msn = new ActiveXObject("Messenger.UIAutomation.1");
if(msn != null){
msn.InstantMessage(email);
}

}
catch(e) {
location.href="msnim:chat contact="+email
}

}

It works but a message is never given if the user is not logged in the Windows Messenger Network. Would any one happen to know how to instantiate an object for Windows Live Messenger. In that case, the code should look like (I indicate what is required):

Code Snippet

function SendIm(email) try {
var msn = new ActiveXObject("Messenger.UIAutomation.1");
if(msn != null){
msn.InstantMessage(email);
}

}
catch(e) {
try {
var msn1 = new ActiveXObject("Messenger.UIAutomation.1"); // The Class to Create Windows Live Messenger Object
if(msn1 != null){
msn.InstantMessage(email); // The method used for Windows Live Messenger
}

}
catch(e) {
alert("You must log in the Windows Messenger Network with your Windows Messenger") }

}

}

}






Re: How to link Web Site to Messenger

Jeroen Bransen - J-Thread

I am afraid you can't. WLM uses a protocol, and I don't know if you can check if a protocol is installed with js.
The "best" solution I came up with, is to try to load the msnim:chat contact=.. in an hidden iframe, that does work is the protocol is installed, and I assume that gives no error if it isn't. So that prevents the user from seeing the page not found error.




Re: How to link Web Site to Messenger

Andres

Thanks Jeroen, your recommendation has been of greater help. I decided to run it with a hidden frame and making a link <a href="javascript:communicate('email')"> where communicate is a function having the following code:

code snippet

function communicate(email){

parent.hiddenframename.location.href="msnim:chat "+email

}

It works properly

Thanks again