Hi William, Try prefixing the relative paths with '/adore-djatoka/' to the following lines in...
adore-djatoka/javascript/iipmooviewer-1.1.js: lines 785, 789, 799, 911 adore-djatoka/css/iip.css: line 22 adore-djatoka/css/images.css: lines 56, 68 e.g. ../images/button_span.gif to /adore-djatoka/images/button_span.gif Firebug <http://getfirebug.com/> is really helpful when debugging Javascript apps; letting you know when resources aren't found and various Javascript exceptions. Hope this helps, Ryan Foster, William wrote: > I am having some trouble getting the djatoka IIPImage Viewer working > correctly. Specifically, the controls are not showing up when the viewer is > opened as a result of the GetImageView function in Fedora 3.2. > > So, for object changeme:2 which contains a managed content jp2 file, a copy > of http://memory.loc.gov/gmd/gmd433/g4330/g4330/np000066.jp2 : > > http://localhost:8080/adore-djatoka/viewer.html?rft_id=http://localhost:8080/fedora/get/changeme:2/source > This url was created with the index.html included in the viewer distribution. > this url results in a functional image viewer with controls and the ability > to call up the uri of the present view. > > http://localhost:8080/fedora/get/changeme:2/djatoka:jp2SDef/getImageView > This url results in a somewhat functional viewer with the ability to zoom in > and pan, as well as use the inset thumbnail to pan. However, the panning > arrows, zoom controls and current uri control are absent. the viewer appears > to be failing to load the images that compose these controls. But, as stated > above, they load and display normally using the first method. This is quite > puzzling and any insight would be appreciated. > > The viewer.html file I am using is reproduced below. > > Thanks, > William > > > Begin Viewer.html: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > > > <head> > <meta name="author" content="Ruven Pillay > <[email protected]>"/> > <meta name="author" content="Ryan Chute > <[email protected]>"/> > <meta name="keywords" content="djatoka IIPImage Ajax IIP Zooming Streaming > High Resolution Mootools"/> > <meta name="description" content="djatoka IIPImage Viewer: High Resolution > Remote Image Streaming Viewing"/> > <meta name="copyright" content="© 2003-2008 Ruven Pillay"/> > > <link rel="stylesheet" type="text/css" media="all" > href="http://localhost:8080/adore-djatoka/css/iip.compressed.css" /> > <link rel="shortcut icon" > href="http://localhost:8080/adore-djatoka/images/djatoka.16x16.png" /> > <title>djatoka Viewer, based on IIPMooViewer 1.1</title> > > <script type="text/javascript" > src="http://localhost:8080/adore-djatoka/javascript/mootools-1.2-core-compressed.js"></script> > <script type="text/javascript" > src="http://localhost:8080/adore-djatoka/javascript/mootools-1.2-more-compressed.js"></script> > <script type="text/javascript" > src="http://localhost:8080/adore-djatoka/javascript/iipmooviewer-1.1.js"></script> > > <script type="text/javascript"> > > // The iipsrv server path (/fcgi-bin/iipsrv.fcgi by default) > var server = 'http://localhost:8080/adore-djatoka/resolver'; > > // The *full* image path on the server. This path does *not* need to be > in the web > // server root directory. On Windows, use Unix style forward slash paths > without > // the "c:" prefix > var images = > location.href.substring(0,location.href.indexOf("/djatoka:jp2SDef/getImageView")) > + "/source"; > > // Copyright or information message > var credit = ''; > > // Obtain URL Parameters if present > var query = location.href.substring(location.href.indexOf("?")+1); > var vars = query.split("&"); > for (var i=0;i<vars.length;i++) { > var pair = vars[i].split("="); > if (pair[0] == "url" || pair[0] == "rft_id") > images = pair[1]; > if (images.indexOf("#") > 0) > images = images.substring(0,images.length-1); > } > > // Create our viewer object - note: must assign this to the 'iip' > variable. > // See documentation for more details of options > iip = new IIP( "targetframe", { > image: images, > server: server, > credit: credit, > zoom: 1, > render: 'random', > showNavButtons: true > }); > > </script> > > </head> > > <body> > <div style="width:99%;height:99%;margin-left:auto;margin-right:auto" > id="targetframe"></div> > </body> > > </html> > > > > > > > > > ------------------------------------------------------------------------------ _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
