Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 3 made on Sunday January 20, 2008 at 18:39
brettd
Lurking Member
Joined:
Posts:
January 2008
6
Hi,

Yes the above code works for me. The only thing I had to do was trim the first part of the returned data. As the ECMAScript didn't seem to like the header:

Weather.COM provides a header like this:

<?xml version="1.0" encoding="ISO-8859-1"?>

So I excluded it before making the XML object:
    if (xmlData.indexOf("= 0)  // Trim the XML tag off if it was included.
xmlData = xmlData.substring(xmlData.indexOf("?>")+2);
var weather = new XML(result); // Make ECMAScript object

Were you assigning the value straight into a widget label like I am?

Brett


Hosting Services by ipHouse