Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Miscellaneous > Archive > Sunrise

Notices

 
 
Thread Tools Search this Thread
Old 08-29-2005, 06:33 PM   #1
---
Junior Member
--- began at the beginning.
 
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");
}
};
--- is offline  
Old 08-30-2005, 05:54 AM   #2
Laurens
Jah Blessed
Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.Laurens is no ebook tyro.
 
Laurens's Avatar
 
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");
	}
};
Laurens is offline  
Old 08-30-2005, 01:06 PM   #3
---
Junior Member
--- began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2005
Device: zire, tungsten, ipaq, axi
Hey, thanks for that all important 'Src' part
--- is offline  
 


Forum Jump


All times are GMT -4. The time now is 09:47 AM.


MobileRead.com is a privately owned, operated and funded community.