DjVu gadget

Developers
Anonymous
2007-06-20
2012-11-08
  • Anonymous

    Anonymous - 2007-06-20

    I have tryed to make a Google's gadget based on javadjvu. I'm not a programmer and the code is very bad (I just copied and pasted code).

    You can see the result at:
    http://mantiel.wikidot.com/djvu
    (at least it works witk linux-opera)

    It's very easy to embed Google's gadget at web page: you make the configuration and they give you the code (something like):
    <script src="http://gmodules.com/ig/ifr?url=http://mantiel.wikidot.com/local--files/djvu/djvu.xml&amp;up_TITLE=Eventos%3A%20d%C3%ADas%20que%20faltan&amp;up_SHOW_CD=1&amp;synd=open&amp;w=640&amp;h=480&amp;title=__UP_TITLE__&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>

    You have to have in the same directory:
    DjvuApplet.class
    javadjvu.jar
    xxx.djvu

    The code of the google's gadget is:
    http://mantiel.wikidot.com/local--files/djvu/djvu.xml

    ------
    I think it wouldn't be difficult for any of you (programmers) to make an improved version of this google gadget. It will make easier for anybody to use this code. As an example of a Google Gadget, take a look at:
    http://gmodules.com/ig/creator?synd=open&url=http%3A//www.ljmsite.com/google/gadgets/worldclocks.xml&pt=%26context%3Dd%26synd%3Dopen%26lang%3Den%26.lang%3Den%26country%3Dus%26.country%3Dus%26cat%3Dall%26num%3D1%26start%3D-1%26cols%3D1%26objs%3DOC&sn=OC&lang=en

    Then:
    - Configure
    - Press "Get The Code" and you will get:
    <script> .... </script>
    for your webpage.

    You can take a look to the code of this gadget at:
    http://www.ljmsite.com/google/gadgets/worldclocks.xml

     
    • Anonymous

      Anonymous - 2007-06-21

      It crash my Linux-Mozilla too. You can see a photo showing how it works here:
      http://mantiel.wikidot.com/djvu3

      Most people doesn't know java, html, javascript (just like me). It is easier for people to work with "wikis" or "blogs" that to learn a software to create a web page.

      It's usual that wikis doesn't allow to work directly with java or javascript, but most of them allow to work with Google's gadgets or Yahoo's widgets. The advantage is:
      - The way you install a gadget is always the same. Take a look at:
      http://www.google.com/ig/directory?synd=open
      There are a lot of gadgets and all of them are installed in the same way:
      1. Look for a gadget. (for example: djvu :oP )
      2. Configure the gadget using a menu. Quiet similar to your "Test page".
      3. Obtain the code you need for your webpage, wiki, blog, ...

      Probably is not better, it just allow to reach more users (the ones that doesn't know programming).

      I don't know why it only works on Opera.

      Best regards and congratulations for all your work.
      Jose M.

       
    • Dr Bill C Riemers

      I don't have opera. But I have tried all the browsers I do have under Fedora 7, RHEL5, and Windows XP. On some platforms your page crashes my browser, on others I just get a blank frame where the DjVu image should be. Under firefox, Windows XP the java console reported a security exception. That is not surprising since the security scope of a frame component is not clearly defined ever browser probably does something different. I am not familiar with Google's gadget. How is it better, when it works, than just using an applet tag?

      Bill

       

Log in to post a comment.