Hi all!<br><br>I'm developing a Seaside app that needs to retrieve a translation from google translator, so I thought I'd use Soup.<br><br>So i go like: <br><br><div style="margin-left: 40px;"><i style="font-family: courier new,monospace;">aSoup := Soup fromUrl: '<a href="http://translate.google.com/#en|ca|">http://translate.google.com/#en|ca|</a>'</i><br>
</div><br>but i find that the fetched string is a bit different from the actual source code i can see in Mozilla...<br><br><div style="margin-left: 40px;"><i style="font-family: courier new,monospace;">results := aSoup findAllTags: </i><i style="font-family: courier new,monospace;">[:aTag | <br>
</i><div style="margin-left: 40px;"><i style="font-family: courier new,monospace;">aTag name = 'span' and: <br></i><div style="margin-left: 40px;"><i style="font-family: courier new,monospace;">[(aTag attributeAt: 'id') asString beginsWith: 'result_box']].</i><br>
</div></div></div><br><span style="font-family: courier new,monospace;">results</span> contains the correct tag, but the tag contains an empty string, instead of the translation (it holds the translated string when I check the HTML source in firefox)<br>
<br>Any ideas? I find it really awkward, I've worked with soup before and never had such problem... so I'm kinda clueless.<br><br>Sorry if the question is a bit off-topic (not exactly a Seaside issue...), I just guessed that a lot of seasiders sure must have dealt with Soup quite a few times :)<br>
<br>Thanks!<br><br>Bernat Romagosa.<br>