08-29-2005, 06:33 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Aug 2005
Device: zire, tungsten, ipaq, axi
|
informationweek.js
Hi, I'm trying to get the print version of this feed, but only the main document is downloaded.
The links open fine in a browser however. Could someone have a quick glimpse ? the feed: http://www.informationweek.com/rss/wireless.jhtml my sdl file: mysites.sdl var Pattern = /story\/showArticle/; document.onanchorlink = function(link) { if (link.depth == 1) { link.uri = link.uri.replace(Pattern, "shared\/printableArticle"); } }; |
08-30-2005, 05:54 AM | #2 |
Jah Blessed
Posts: 1,295
Karma: 1373
Join Date: Apr 2003
Location: The Netherlands
Device: iPod Touch
|
The "printableArticle" page uses framesets, for some reason I cannot fathom. (This requires two HTTP requests, one for the frames page and another for the actual content.)
This is the frames page: http://www.informationweek.com/share...leID=170101331 And the actual content is here: http://www.informationweek.com/share...leID=170101331 The script should therefore be: Code:
var Pattern = /story\/showArticle/; document.onanchorlink = function(link) { if (link.depth == 1) { link.uri = link.uri.replace(Pattern, "shared\/printableArticleSrc"); } }; |
08-30-2005, 01:06 PM | #3 |
Junior Member
Posts: 2
Karma: 10
Join Date: Aug 2005
Device: zire, tungsten, ipaq, axi
|
Hey, thanks for that all important 'Src' part
|