SitePoint Sponsor |
|
User Tag List
Results 1 to 7 of 7
Thread: Add contact / MSN Messenger
-
Apr 9, 2003, 08:40 #1
- Join Date
- Mar 2002
- Location
- Svíþjóð
- Posts
- 4,080
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Add contact / MSN Messenger
Does anyone know how I can open the "Add new contact" dialog (in MSN Messenger) from a script in an html page?
This isn't a javascript question of course, and I guess I will have to use some unsafe JScript/VBScript => will only work in IE (which is all I need)
(And, yes, all clients are supposed to have MSN Messenger installed)
-
Apr 9, 2003, 13:09 #2
-
Apr 9, 2003, 15:02 #3
- Join Date
- Nov 2002
- Location
- tpyge
- Posts
- 1,085
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Do you mean like that AOL/AIM add new contact box?
You could add this code:
<a href="java script:MsgrApp.LaunchAddContactUI(<A href="mailto:'email@email'">'email@email');">Text</a>
If an href shows up for that email, delete '<A href="mailto:'email@email'">'
-
Apr 10, 2003, 09:41 #4
- Join Date
- Mar 2002
- Location
- Svíþjóð
- Posts
- 4,080
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
All I get is this...
"Object doesn't support this property or method"
-
Apr 10, 2003, 10:11 #5
-
Apr 10, 2003, 12:54 #6
- Join Date
- Nov 2002
- Location
- tpyge
- Posts
- 1,085
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Odd... that worked for me, though I am using Windows messenger atm.
-
Apr 10, 2003, 14:54 #7
- Join Date
- Mar 2002
- Location
- Svíþjóð
- Posts
- 4,080
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Problem solved:
Code:var objMsgr = document.getElementById("objMsgr"); var status = objMsgr.MyStatus; if(!status) { alert("Some error accessing MSN Messenger (is it installed?)"); return; } else if(status < 2) { alert("You are not logged in"); return; } else { objMsgr.AddContact(0, name); }
Works in IE6/Win2k + MSN Msgr 5.0 (and that's enough for me)
Bookmarks