Home  Beta programs 
  Welcome to Mobipocket Developer Center
Home | Show TOC | Download Sample | Add to Favorites updated: 2005-01-15

Mobipocket specific URLs

Using these special URL's in the window.open() function or with the 'href' attribute of the <a> tag, you can access special documents and features within the Mobipocket Reader.
Examples:
<a href="oeb:library">Go to the Library</a>
<a onclick= "window.open('oeb:help')">Go to the Help file</a>


Contents
oeb:redirect
oeb:cart
oeb:library
oeb:about
oeb:help
oeb:license
oeb:database requires Reader 4.8

oeb:redirect

This is the most useful type of Mobipocket-specific URLs. It allows you to link to an ebook. You do not have to know the exact location of the book on the user's device. The only requirement is that it be listed in the library of the Mobipocket reader. The book can be in main memory, or on a removable card, as lons as the library can find it, oeb:redirect will work.

The syntax is:

oeb:redirect?title=MyBook#anchor1

"title" is the database name of the ebook file. It is derived from the title of the ebook by prcgen and displayed at the end of each build.
You can also retrieve it from an ebook file using a Hex editor or simply the notepad: it is contained in the first 32 bytes of an ebook file.
Finally, you can use the<x-metadata><DatabaseName></DatabaseName><x-metadata> tag in the publication file (.opf) to specify your own database name. If you do so, be sure to use latin a-z characters only, and to use the _(underscrore) character rather than spaces.

In URL requests, you might want to access data tables inside of other ebooks. You can do that using the $ operator in a URL identifying a book. The $ operator gives you acces to object embedded in ebooks. For a data table, the yntax is $table=MyTable.

oeb:redirect?title=MyBook$table=MyTable

oeb:cart

URL of the interactions window.

oeb:cart?name=interactions&title=MyDB

oeb:library

Opens the library.

oeb:about

Opens the About box of the Reader.

oeb:help

Opens the Reader Help file (same as the Help menu).

oeb:license

Opens the Reader license information file if there is one.

oeb:database requires Reader 4.8

Used to open the wordlist, the search history list or an other database, provided the database view can display it.

oeb:database?name=mobipocket_history
oeb:database?name=mobipocket_wordlist

Copyright 2000-2007 Mobipocket.com