Compomaster web interface

15 views
Skip to first unread message

RenegadeWolf

unread,
Nov 23, 2011, 5:19:07 PM11/23/11
to CompoMaster
Hi

Im trying to run compomaster through IIS on my PC.
I have Windows 7 64bit installed.

When I run the html file I made directly on my pc. Compomaster loads
up perfectly.
When I try to browse to my ip/test.html from another machine or to
localhost/test.html on my pc, it loads the compomaster applet fine,
but inside the applet it can't find the two .cmp files.

I added both the .cmp, test.html and the two .jar files to my C:
\inetpub\wwwroot

Any idea how IIS works and how I can get it to recognise the .cmp
files?
Or perhaps some other way of hosting the webinterface for a lan
environment?

Thanks!
RenegadeWolf

This is the code in test.html

<html>
<head>
<title>CompoMaster</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div align=center>
<applet archive="CompoViewer.jar" code="CompoViewer/
CompoViewer.class" height=528 width=1310>
<param name="DataFile0" value="test1.cmp">
<param name="DataFile1" value="test2.cmp">
<param name="PlayerSource1" value="0">

<!-- Specify more tournaments here if you want the applet to
show several competitions
at once. Swapping between them is done by clicking on the
buttons in the applet.
The names on the applet are derived from the tournament
name.
-->
</applet>
</div>
</body>
</html>

Frode Nilsen

unread,
Nov 24, 2011, 1:51:59 PM11/24/11
to compo...@googlegroups.com
I got to admit it's a long time since I've done this, but you should be
checking

1. The security/permission settings in IIS. Try navigating to the .cmp files
directly and see if Internet explorer presents you with a download file
popup. It should.
2. The value of the <param name=datafileX>-tags. Try with relative URLs
(starting with '/') and with absolute URLs (starting with 'http://'). Any
difference?

If it still fails, are you able to provide a screenshot of the error
message? (Or copy/paste?)

Note that it's CompoViewer that tries to load the .CMP files. Not IIS. IIS
doesn't care what format they're on - it only sends the file to the client
browser, which in turn hands them over to CompoViewer.jar which interprets
the contents.

"Hosting the webinterface" for a lan environment is exactly what CompoViewer
is supposed to do. As an Applet... which is a kind of outdated technology,
but it should still work. If I have time, I will rewrite it to pure HTML one
day though. It should be easier to set up.


Frode Nilsen

unread,
Nov 24, 2011, 2:03:37 PM11/24/11
to compo...@googlegroups.com
Btw are you able to see the tournament here:

http://www.compomaster.com/viewpage.php?page_id=1

This page uses the HTML <OBJECT> tag instead of APPLET, which is deprecated
by the W3C. Don't know if it matters, but you could try changing to the
OBJECT syntax as well. View source on the page mentioned and see how it's
built. It's actually more painful to set up than APPLET, but .. well.. it's
the standard.

RenegadeWolf

unread,
Dec 6, 2011, 9:55:30 AM12/6/11
to CompoMaster
FYI if anyone needs it. If I rename the .cmp files to something that
already exists like (.png) and edit the html file accordingly, it
loads fine.
I am going to use this in a tournament this weekend. I'll post my
results.
Reply all
Reply to author
Forward
0 new messages