Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

a photo viewer for Jsp?

  • 23-06-2008 10:20pm
    #1
    Registered Users, Registered Users 2 Posts: 18,272 ✭✭✭✭


    any body know a good photo viewer that will work with Jsp's ? I tried to use something called simpleviewer, it works in html format but just gives me an error saying "SimpleViewer requires JavaScript and the Flash Player. Get Flash." when I try to use it in the jsp.
    <!-- saved from url=(0014)about:internet -->
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    
    <title>The Crew</title>
    
    <!-- Download SimpleViewer at www.airtightinteractive.com/simpleviewer -->
    
    <script type="text/javascript" src="swfobject.js"></script>
    
    <style type="text/css">	
    
    	/* hide from ie on mac \*/
    
    	html {
    
    		height: 100&#37;;
    
    		overflow: hidden;
    
    	}
    
    	
    
    	#flashcontent {
    
    		height: 100%;
    
    	}
    
    	/* end hide */
    
    
    
    	body {
    
    		height: 100%;
    
    		margin: 0;
    
    		padding: 0;
    
    		background-color: #181818;
    
    		color:#ffffff;
    
    		font-family:sans-serif;
    
    		font-size:20;
    
    	}
    
    	
    
    	a {	
    
    		color:#cccccc;
    
    	}
    
    </style>
    
    </head>
    
    <body>
    
    	<div id="flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>	
    
    	<script type="text/javascript">
    
    	
    
    		var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "8", "#181818");
    
    		
    
    		// SIMPLEVIEWER CONFIGURATION OPTIONS
    
    		// To use an option, uncomment it by removing the "//" at the start of the line
    
    		// For a description of config options, go to: 
    
    		// http://www.airtightinteractive.com/simpleviewer/options.html
    
    		
    
    		//fo.addVariable("xmlDataPath", "gallery.xml");
    
    		//fo.addVariable("firstImageIndex", "5");	
    
    		//fo.addVariable("langOpenImage", "Open Image in New Window");
    
    		//fo.addVariable("langAbout", "About");	
    
    		//fo.addVariable("preloaderColor", "0xFFFFFF");
    
    		
    
    		fo.write("flashcontent");	
    
    	</script>	
    
    </body>
    
    </html>
    

    thats the html code but and this is the Jsp code
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <!-- saved from url=(0014)about:internet -->
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>My Pictures</title>
    <!-- Download SimpleViewer at www.airtightinteractive.com/simpleviewer -->
    <script type="text/javascript" src="swfobject.js"></script>
    <style type="text/css">	
    	/* hide from ie on mac \*/
    	html {
    		height: 100%;
    		overflow: hidden;
    	}
    	
    	#flashcontent {
    		height: 100%;
    	}
    	/* end hide */
    
    	body {
    		height: 100%;
    		margin: 0;
    		padding: 0;
    		background-color: #181818;
    		color:#ffffff;
    		font-family:sans-serif;
    		font-size:20;
    	}
    	
    	a {	
    		color:#cccccc;
    	}
    </style>
    </head>
    <body>
    	<div id="flashcontent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash.</a></div>	
    	<script type="text/javascript">
    	
    		var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "8", "#181818");
    		
    		// SIMPLEVIEWER CONFIGURATION OPTIONS
    		// To use an option, uncomment it by removing the "//" at the start of the line
    		// For a description of config options, go to: 
    		// http://www.airtightinteractive.com/simpleviewer/options.html
    		
    		//fo.addVariable("xmlDataPath", "gallery.xml");
    		//fo.addVariable("firstImageIndex", "5");	
    		//fo.addVariable("langOpenImage", "Open Image in New Window");
    		//fo.addVariable("langAbout", "About");	
    		//fo.addVariable("preloaderColor", "0xFFFFFF");
    		
    		fo.write("flashcontent");	
    	</script>	
    </body>
    </html>
    </f:view>
    

    Anybody know what the error would be or an easier way to do it?


Comments

  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    not sure about the jsp stuff but why not just create a media RSS feed. People can then use something like Piclens as a viewer.

    http://www.piclens.com/


  • Registered Users, Registered Users 2 Posts: 2,013 ✭✭✭lynchie


    When the JSP page is rendered, is the HTML produced what you expected? I guess there is something different between them.


  • Registered Users, Registered Users 2 Posts: 18,272 ✭✭✭✭Atomic Pineapple


    thanks for the help guys got it working


Advertisement