From: Miguel H. <mt...@mt...> - 2004-01-03 15:36:20
|
You need to decide how closely you need to adhere to the current HTML spe= c. Read this part carefully: > Note. While the > restriction on subdirectories is a departure from common practice and > the HTML 3.2 specification, the HTML Working Group has chosen to leave > the restriction in this version of the specification for security > reasons. Basically, all implementations that I am aware of will allow you to read from the same web server. They have introduced this for 'security reasons', but I am not aware of anyone who adheres to this. My recommendation is that you not worry about it. Put the applet on the same web server and you will be fine. The spec is ridiculous and impractical. No web browser will ever comply with it. My two cents. >> The primary problem is that you cannot put the JmolApplet.jar in your >> cgi-bin directory. >> > > Apparently, as far as an applet is concerned, there is no defined > directory for the cgi-created document. No, that is not the case. The 'current directory' for the cgi-created document is the directory where the cgi came from. This is determined by the browser. It strips off the path of the URL. It doesn't know whether it is a CGI or a static HTML page. > So, even though the server is > reporting a problem finding the applet code in the cgi-bin directory > that isn't really where it needs to find it. It is looking in the CGI directory because that is the directory where it= is supposed to look. This default 'codebase' directory is determined by the browser. It looks at the URI and strips off the leading path. The server doesn't know anything about applets and doesn't do anything special with them. The server is complaining because it is trying to execute the .jar file. It is trying to do that because the JmolApplet.jar file is inside an ExecCGI directory. > I guess I had better > reconsider using cgi-generated pages. Go ahead and use the CGI ... trust me ... don't worry about it. Give it a codebase and write your code. Let me know if you need more assistance. Miguel > Rich > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for > IBM's Free Linux Tutorials. Learn everything from the bash shell to sy= s > admin. Click now=21 http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&o= p=3Dclick > _______________________________________________ > Jmol-users mailing list > Jmol-users=40lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users -------------------------------------------------- Miguel Howard miguel=40howards.org c/Pe=F1a Primera 11-13 esc dcha 6B 37002 Salamanca Espa=F1a Spain -------------------------------------------------- telefono casa 923 27 10 82 movil 650 52 54 58 -------------------------------------------------- To call from the US dial 9:00 am Pacific US =3D home 011 34 923 27 10 82 12:00 noon Eastern US =3D cell 011 34 650 52 54 58 6:00 pm Spain -------------------------------------------------- |