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

Pages: (2): « First « 1 [ 2 ] Last »
Problem with Twitter-PHP and My Script
Author: Message:
m0nst3rkill3r
Junior Member
**

Avatar

Posts: 51
Joined: Sep 2009
O.P. RE: Problem with Twitter-PHP and My Script
Fehler: 'xmldom.documentElement' is null or not an object (Code: -2146823281)
       Datei: I Love Twitter.js. Zeile: 50.

it's very embrassing to ask that.
Its so Easy. but i dont get it :(
09-15-2009 03:13 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Problem with Twitter-PHP and My Script
I am now contemplating my code.

You can try removing the documentElement piece from the code and try. Therefore the code would look like this:
js code:
            Debug.Trace (  xmldom.selectSingleNode ( '//statuses/status/text' ).text );
instead of this:
js code:
            Debug.Trace (  xmldom.documentElement.selectSingleNode ( '//statuses/status/text' ).text );

This post was edited on 09-15-2009 at 06:40 PM by matty.
09-15-2009 06:40 PM
Profile E-Mail PM Find Quote Report
m0nst3rkill3r
Junior Member
**

Avatar

Posts: 51
Joined: Sep 2009
O.P. RE: Problem with Twitter-PHP and My Script
You are Wonderful!
Thank you much!
09-18-2009 11:48 AM
Profile E-Mail PM Find Quote Report
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
m0nst3rkill3r
Junior Member
**

Avatar

Posts: 51
Joined: Sep 2009
O.P. RE: Problem with Twitter-PHP and My Script
No, i just need the first post.
anyway, thank you.. again :D
09-18-2009 02:31 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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