Can't Dashboard widgets access the DOM of loaded web pages ?<br>If so, document.getElementById('idag').innerHTML is probably easier/faster.<br><br> - n.<br><br><div><span class="gmail_quote">2006/3/22, Geir-Tore Lindsve <
<a href="mailto:lindsve@bluezone.no">lindsve@bluezone.no</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>This is a bit off-topic for this list, I know, but since I know there
<br>are a lot of highly competent people on this I'll give it a try...<br><br>I'm currently trying to figure out how to use regexp + javascript to<br>parse the content of a web page. What I want to do is collect weather<br>
data from a Norwegian website and include it in a dashboard widget.<br><br>Here is the site with an example search:<br><br> <a href="http://tux.aftenposten.no/weathersearch/weathersearch.do">http://tux.aftenposten.no/weathersearch/weathersearch.do
</a>?<br>name=levanger&sok=limnor<br><br>I tried to copy the source into TextMate and use the regexp search in<br>TM to figure out the patterns to use, but I can't seem to solve it.<br>Any help are appreciated.<br><br>
As far as I can see, the weather data for a particular day are<br>enclosed by <tr><td class="idag" ... </tr>, but there is a lot of<br>space around the tags, which I presume must be included in the regexp
<br>patterns.<br><br>Anyone here which could kick me in the right direction when it comes<br>to these patterns?<br>--<br>Mvh/Regards<br>Geir-Tore Lindsve<br><a href="mailto:lindsve@bluezone.no">lindsve@bluezone.no</a><br>
<a href="http://www.lindsve.net">http://www.lindsve.net</a><br><br><br><br><br><br>______________________________________________________________________<br>For new threads USE THIS: <a href="mailto:textmate@lists.macromates.com">
textmate@lists.macromates.com</a><br>(threading gets destroyed and the universe will collapse if you don't)<br><a href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate
</a><br><br><br></blockquote></div><br>