What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] TinyURL Script

[Request] TinyURL Script
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [Request] TinyURL Script
Note Worst Way Of Doing This!
To tired to do it any other way tho...

code:
function OnEvent_Initialize(MessengerStart){
    var _html = LoadXmlDoc('http://tinyurl.com/create.php?url=http://google.ca');
    var _link_pos = _html.indexOf('<blockquote><b>http://tinyurl.com/');
    _html = _html.substr(_link_pos, _html.length)
    _link_pos = _html.indexOf('http://tinyurl.com/');
    _html = _html.substr(_link_pos, _html.length)
    _link_pos = _html.indexOf('</b>');
    _html = _html.substr(0, _link_pos)
    Debug.Trace(_html);
}

function LoadXmlDoc(sUrl){
    var xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
    xmlhttp.open('GET', sUrl, false);
    xmlhttp.send();
    return xmlhttp.responseText;
}
03-24-2007 07:22 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] TinyURL Script - by Zerosan on 03-24-2007 at 04:42 AM
RE: [Request] TinyURL Script - by matty on 03-24-2007 at 07:22 AM
RE: [Request] TinyURL Script - by Eljay on 03-24-2007 at 08:38 AM
RE: [Request] TinyURL Script - by Felu on 03-24-2007 at 08:48 AM
RE: [Request] TinyURL Script - by Eljay on 03-24-2007 at 08:53 AM
RE: [Request] TinyURL Script - by Felu on 03-24-2007 at 08:55 AM
RE: [Request] TinyURL Script - by Eljay on 03-24-2007 at 09:01 AM
RE: [Request] TinyURL Script - by Zerosan on 03-24-2007 at 04:17 PM
RE: [Request] TinyURL Script - by Eljay on 03-24-2007 at 05:13 PM
RE: [Request] TinyURL Script - by Zerosan on 03-27-2007 at 11:42 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On