View Single Post
Old 01-24-2006, 03:00 PM   #1
bsquare
Member
bsquare knows what time it isbsquare knows what time it isbsquare knows what time it isbsquare knows what time it isbsquare knows what time it isbsquare knows what time it isbsquare knows what time it isbsquare knows what time it isbsquare knows what time it isbsquare knows what time it isbsquare knows what time it is
 
Posts: 24
Karma: 2128
Join Date: Dec 2002
SunriseXP Link Rewriting?

Sorry if I sound ignorant, but can someone explain how the SunriseXP link rewriting works (or where it is for that matter)?

For example the ESPN (from the regular Sunrise showcase) had a script:

var idPattern = /id=\d+/
var storyPattern = /story\?.*id=\d+/

document.onanchorlink = function(link) {
if (link.uri.match(storyPattern) != null) {
var id = link.uri.match(idPattern)[0];
link.referrer = link.uri;
link.uri = "http://sports.espn.go.com/espn/print?" + id + "&type=story";
}
};


So how would a similar feed be created using XP?
bsquare is offline