Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Miscellaneous > Archive > Sunrise

Notices

 
 
Thread Tools Search this Thread
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  
Old 01-24-2006, 03:22 PM   #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
Wait for the documentation or look in the "scripts" subdirectory.
Laurens is offline  
Advert
Old 01-24-2006, 05:03 PM   #3
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
Ah, Ok. Seems easy enough. I was looking through the GUI, didn't think to check the actual install directory. Thanks again. Looking forward to start working with the new XP.

Now, how about an SDL to SXL converter?
bsquare is offline  
Old 01-25-2006, 02:09 AM   #4
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
Quote:
Originally Posted by bsquare
Now, how about an SDL to SXL converter?
Next alpha, or use the stylesheet mentioned in the "alpha 1" thread.
Laurens is offline  
 


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sunrise .42j or SunriseXP? evwool Reading and Management 3 05-15-2009 09:35 AM
SunriseXP for Geocaching gr82no Reading and Management 0 12-03-2008 03:36 PM
New Plucker/SunriseXP User vger Introduce Yourself 0 10-09-2007 03:02 PM
SunriseXP via wine on linux?? zachofalltrades Reading and Management 3 09-19-2007 03:51 PM


All times are GMT -4. The time now is 01:24 PM.


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