You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Ferdinand Soethe <fe...@apache.org> on 2006/03/21 21:14:28 UTC

Bookmarklets: Quick alternative to Forrestbar for debugging Forrest 0.7-sites

Since Forrestbar has already progressed to Version 0.8, I needed an
alternative for debugging my Forrest 0.7x pipelines.

Here is a set of bookmarklets that I created for that purpose.

To use

- save text below as html-file
- open in any browser
- drag (don't open) the links to your bookmark/favourites-bar
- open any dynamically hosted Forrest page (Forrest run)
- Click bookmark to see desired view of that page.

<html>
    <meta>
        <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
            <TITLE>Forrest 0.7 Bookmarklets</TITLE>
    </meta>
    <body>
        <H1>Forrest 0.7 Bookmarklets</H1>
        <dl>
          <DT><A HREF="javascript:void(window.open('view-source:' + location.href.substring(0,location.href.lastIndexOf('/')+1) + 'menu-' + location.href.substring(location.href.lastIndexOf('/')+1)))" ADD_DATE="1141312821" LAST_MODIFIED="1141316108" ID="rdf:#$cWEzj2">Menu-*.html</A>
          <DD>Source of menu before final skinning
          <DT><A HREF="javascript:void(window.open('view-source:' + location.href.substring(0,location.href.lastIndexOf('/')+1) + 'body-' + location.href.substring(location.href.lastIndexOf('/')+1)))" ADD_DATE="1141312821" LAST_MODIFIED="1141316298" ID="rdf:#$dWEzj2">body-*.html</A>
          <DD>Source of body before final skinning
          <DT><A HREF="javascript:void(window.open('view-source:' + location.href.substring(0,location.href.lastIndexOf('/')+1) + 'tab-' + location.href.substring(location.href.lastIndexOf('/')+1)))" ADD_DATE="1141312821" LAST_MODIFIED="1141316414" ID="rdf:#$HXEzj2">tab-*.html</A>
          <DD>Source of tabs before final skinning
          <DT><A HREF="javascript:void(window.open('view-source:' + location.href.substring(0,location.href.lastIndexOf('/')+1) + 'book-' + location.href.substring(location.href.lastIndexOf('/')+1)))" ADD_DATE="1141312821" LAST_MODIFIED="1142970870" ID="rdf:#$IXEzj2">book-*.html</A>
          <DD>First step of menu creation pipeline
          <DT><A HREF="javascript:void(window.open( location.href.substring(0,location.href.lastIndexOf('.')+1) + 'xml'))" ADD_DATE="1141312821" LAST_MODIFIED="1141316755" ID="rdf:#$KXEzj2">content as document-v13: *.xml</A>
          <DD>Source of document in document-v13
          <DT><A HREF="javascript:void(window.open( location.href.substring(0,location.href.lastIndexOf('.')+1) + 'xml'))" ADD_DATE="1141312821" LAST_MODIFIED="1141316862" ID="rdf:#$8WEzj2">page in xsl-fo: *.fo</A>
          <DD>formatting objects source of current page (used to generate pdf-document).
        </dl>
    </body>
</html>

--
Ferdinand Soethe






















Re: Bookmarklets: Quick alternative to Forrestbar for debugging Forrest 0.7-sites

Posted by David Crossley <cr...@apache.org>.
Ferdinand Soethe wrote:
> Since Forrestbar has already progressed to Version 0.8, I needed an
> alternative for debugging my Forrest 0.7x pipelines.

You have the source to the 0.7 Forrestbar in tools/forrestbar,
so can add abilities to that. If they are relevant to 0.8-dev
then we can add them there too.

Still, your technique is interesting. Thanks.

By the way, i am currently fixing the website
so that we have access to both 0.7 and 0.8 versions
http://forrest.apache.org/tools/forrestbar.html
(currently it is the 0.8-dev version which is wrong).

-David

> Here is a set of bookmarklets that I created for that purpose.
> 
> To use
> 
> - save text below as html-file
> - open in any browser
> - drag (don't open) the links to your bookmark/favourites-bar
> - open any dynamically hosted Forrest page (Forrest run)
> - Click bookmark to see desired view of that page.
> 
> <html>
>     <meta>
>         <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
>             <TITLE>Forrest 0.7 Bookmarklets</TITLE>
>     </meta>
>     <body>
>         <H1>Forrest 0.7 Bookmarklets</H1>
>         <dl>
>           <DT><A HREF="javascript:void(window.open('view-source:' + location.href.substring(0,location.href.lastIndexOf('/')+1) + 'menu-' + location.href.substring(location.href.lastIndexOf('/')+1)))" ADD_DATE="1141312821" LAST_MODIFIED="1141316108" ID="rdf:#$cWEzj2">Menu-*.html</A>
>           <DD>Source of menu before final skinning
>           <DT><A HREF="javascript:void(window.open('view-source:' + location.href.substring(0,location.href.lastIndexOf('/')+1) + 'body-' + location.href.substring(location.href.lastIndexOf('/')+1)))" ADD_DATE="1141312821" LAST_MODIFIED="1141316298" ID="rdf:#$dWEzj2">body-*.html</A>
>           <DD>Source of body before final skinning
>           <DT><A HREF="javascript:void(window.open('view-source:' + location.href.substring(0,location.href.lastIndexOf('/')+1) + 'tab-' + location.href.substring(location.href.lastIndexOf('/')+1)))" ADD_DATE="1141312821" LAST_MODIFIED="1141316414" ID="rdf:#$HXEzj2">tab-*.html</A>
>           <DD>Source of tabs before final skinning
>           <DT><A HREF="javascript:void(window.open('view-source:' + location.href.substring(0,location.href.lastIndexOf('/')+1) + 'book-' + location.href.substring(location.href.lastIndexOf('/')+1)))" ADD_DATE="1141312821" LAST_MODIFIED="1142970870" ID="rdf:#$IXEzj2">book-*.html</A>
>           <DD>First step of menu creation pipeline
>           <DT><A HREF="javascript:void(window.open( location.href.substring(0,location.href.lastIndexOf('.')+1) + 'xml'))" ADD_DATE="1141312821" LAST_MODIFIED="1141316755" ID="rdf:#$KXEzj2">content as document-v13: *.xml</A>
>           <DD>Source of document in document-v13
>           <DT><A HREF="javascript:void(window.open( location.href.substring(0,location.href.lastIndexOf('.')+1) + 'xml'))" ADD_DATE="1141312821" LAST_MODIFIED="1141316862" ID="rdf:#$8WEzj2">page in xsl-fo: *.fo</A>
>           <DD>formatting objects source of current page (used to generate pdf-document).
>         </dl>
>     </body>
> </html>
> 
> --
> Ferdinand Soethe
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>