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?
|