QuickLink

Extension Information
Extension File Name: 
QuickLink.js
Author: 
Matt Machell
Extension Class Name: 
QuickLink
Function Parameters: 

 /*
 * Constructor arguments:
 * arg: items - An array of objects [{link:'', linktext:''}] to set links
 * arg: opts - An object containing options to override default settings
 */

Dependencies: 

Requires an HTML page which will refresh automatically to redirect to a 3rd party page. HTML page should look like:
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="refresh" content="1;url=http://www.netlibrary.org/" />
        <title>Forward to Netlibrary</title>
    </head>
    <body>
        <p>If this page does not redirect, <a href="http://www.netlibrary.org">click here for NetLibrary</a></p>
    </body>
</html>
 

Example Code: 

 new quickLink('h1.title', [{link:'http://prism.talis.com/talis-consultancy/assets/-/forward_netlibrary.html',title:'NetLibrary'}, {link:'http://prism.talis.com/talis-consultancy/assets/-/forward_bsi.html', title:'British Standards Institution'}],{text:'We also give access to',type:'after'});

 This extension will add text links to an interim forwarder page to allow Prism 3 pages to redirect to HTTP pages.

AttachmentSize
QuickLink.js.txt1.1 KB