<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16981" name=GENERATOR>
<STYLE>
<!--
font-face
        {font-family:"Cambria Math";}
font-face
        {font-family:Calibri;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY lang=EN-GB vLink=purple link=blue>
<DIV id=idOWAReplyText70422 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Work up the chain:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>does<FONT size=2><FONT face=Arial> </FONT><FONT face="Courier New">panel.sendAndLoad(req, feedURL);</FONT><FONT face=Arial> work? </FONT></FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Does the onSendAndLoad event reach the xerte code - can you see the response match in rss.rlm? Does it appear to have loaded anything? if so,<FONT face="Courier New"> inspect(panel.serverXML)</FONT> - what do you get? The ensuing code makes some assumptions that it gets data back in the right format. If you are right, and the problem is with rss_proxy (maybe twitter can tell we are a bot), this event won't fire. Best check in the engine if there are any clues:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>So put some debugs in here and see what happens - does onLoad get called? What is <FONT face="Courier New">success </FONT><FONT face=Arial>if it does:</FONT></FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>//Line 339 ish in the Engine</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>ICON.prototype.sendAndLoad = function(req, url) {<BR> this.serverXML = new XML();<BR> this.serverXML.ignoreWhite = true;<BR> this.serverXML.clip = this;<BR> req.sendAndLoad(url, this.serverXML);<BR> this.serverXML.onLoad = function(success) {<BR> if (success == true) {<BR> this.clip.templateData = this.toObject();<BR> this.clip.broadcast('onSendAndLoad');<BR> }<BR> };<BR>};</FONT></DIV>
<DIV dir=ltr><FONT face="Courier New" size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Any clue? What about if you handle this.serverXML.onData instead of this.serverXML.onLoad?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>If not, what can rss_proxy tell us? Over to Pat - but test those things first.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of RonM<BR><B>Sent:</B> Wed 10/03/2010 19:39<BR><B>To:</B> 'Xerte discussion list'<BR><B>Subject:</B> [Xerte] debugging misc > rss page?<BR></FONT><BR></DIV>
<DIV>
<DIV class=Section1>
<P class=MsoNormal>Hi Pat/Julian</P>
<P class=MsoNormal>I’ve been trying to resolve the twitter rss issue that I mentioned on Monday morning and in testing have some more accurate details...</P>
<P class=MsoNormal> </P>
<P class=MsoNormal>I created an LO with a toolkits installation added a couple of rss pages and added a twitter search url to the first page and the notts rss feed to the second page. I used the following urls:</P>
<P class=MsoNormal> </P>
<P class=MsoNormal><A href="http://search.twitter.com/search.atom?lang=en&q=xerte&rpp=50">http://search.twitter.com/search.atom?lang=en&q=xerte&rpp=50</A></P>
<P class=MsoNormal> </P>
<P class=MsoNormal><A href="http://www.nottingham.ac.uk/xerte/rss/rssfeed.xml">http://www.nottingham.ac.uk/xerte/rss/rssfeed.xml</A> </P>
<P class=MsoNormal> </P>
<P class=MsoNormal>The page with the twitter url doesn’t work via toolkits now but the page with the notts feed does work via toolkits.</P>
<P class=MsoNormal> </P>
<P class=MsoNormal>If export the LO and view locally both pages work. Also pages with twitter feeds added always worked previously which is how and why I also built my dedicated twitter model.</P>
<P class=MsoNormal> </P>
<P class=MsoNormal>So it seems like there is an incompatibility now between a twitter feed and the code used with rss_proxy.php </P>
<P class=MsoNormal>Probably something that’s changed at the twitter end but I can’t spot what’s causing it to fail when using rss_proxy.php </P>
<P class=MsoNormal> </P>
<P class=MsoNormal>I’m not sure if the problem is in rss_proxy itself or in the code inside the xerte model which gets the feed from rss_proxy. This might be a dumb question but how can I use the equivalent of debug to track what’s happening via toolkits rather than locally?</P>
<P class=MsoNormal> </P>
<P class=MsoNormal>Cheers</P>
<P class=MsoNormal>Ron</P></DIV></DIV></BODY></HTML>