What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Problem with Twitter-PHP and My Script

Problem with Twitter-PHP and My Script
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Problem with Twitter-PHP and My Script
Glad it worked. If you wanted to loop through all of the status in the XML file you could do something like this:

js code:
getTwitterStatusFromXML ( 'http://www.twitter.com/status/user_timeline/p3acemak3r.xml' );
   
function getTwitterStatusFromXML ( url )
{
    var xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
    var xmldom = new ActiveXObject('Microsoft.XMLDOM');
    xmldom.async = true;
    xmlhttp.open('GET', url, true);

    xmlhttp.onreadystatechange = function()
    {
        if (xmlhttp.readyState === 4 && xmlhttp.status === 200 )
        {
            xmldom.loadXML ( xmlhttp.responseText );
            var oXmlArray = xmldom.selectNodes ( '//statuses/status/text' );
            for ( var i=0; i<oXmlArray.length; ++i )
            {
                Debug.Trace ( oXmlArray[i].text );
            }
        }
    }
    xmlhttp.send();
}
09-18-2009 01:01 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Problem with Twitter-PHP and My Script - by m0nst3rkill3r on 09-14-2009 at 06:58 PM
RE: Problem with Twitter-PHP and My Script - by matty on 09-14-2009 at 07:17 PM
RE: Problem with Twitter-PHP and My Script - by m0nst3rkill3r on 09-14-2009 at 07:42 PM
RE: Problem with Twitter-PHP and My Script - by matty on 09-14-2009 at 08:03 PM
RE: Problem with Twitter-PHP and My Script - by m0nst3rkill3r on 09-14-2009 at 08:11 PM
RE: RE: Problem with Twitter-PHP and My Script - by matty on 09-15-2009 at 12:46 PM
RE: Problem with Twitter-PHP and My Script - by m0nst3rkill3r on 09-15-2009 at 02:39 PM
RE: Problem with Twitter-PHP and My Script - by matty on 09-15-2009 at 02:42 PM
RE: Problem with Twitter-PHP and My Script - by m0nst3rkill3r on 09-15-2009 at 03:07 PM
RE: Problem with Twitter-PHP and My Script - by matty on 09-15-2009 at 03:10 PM
RE: Problem with Twitter-PHP and My Script - by m0nst3rkill3r on 09-15-2009 at 03:13 PM
RE: Problem with Twitter-PHP and My Script - by matty on 09-15-2009 at 06:40 PM
RE: Problem with Twitter-PHP and My Script - by m0nst3rkill3r on 09-18-2009 at 11:48 AM
RE: Problem with Twitter-PHP and My Script - by matty on 09-18-2009 at 01:01 PM
RE: Problem with Twitter-PHP and My Script - by m0nst3rkill3r on 09-18-2009 at 02:31 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