watch this  

the official mrchucho blog

Dashboard

Posted 2005 May 07
The interesting thing to note about the TV Tracker plugin is that uses Python for much of the work. The Apple engineers showed significant foresight by allowing the following:
<pre><code>
widget.system("/usr/bin/python main.py",null);
</code>
I’ve already found that this can help get around the restriction on XMLHttpRequest objects that prevents opening “external” URLs:
<pre><code>
            myXMLHTTPRequest = new XMLHttpRequest();
            myXMLHTTPRequest.onreadystatechange = processReqChange;

            widget.system(
                "/usr/bin/curl -o output.xml http://www.example.com/script.php");
            myXMLHTTPRequest.open("GET","output.xml",true);
            myXMLHTTPRequest.send(null);
            data = myXMLHTTPRequest.responseXML;
</code>

Responses to "Dashboard "

No responses yet.

Comments are now closed.
atom rss