> Hi
>
> Well I amm trying to load an xyz file placed somewhere on the server
> (outside the jmol directory and also outside the public_html
> directory). I tried using relative path as well as absolute path to
> load the file, but nothing worked.
>
> I am using somrhting like this
>
> jmolApplet(300, "load
> ../../../../../lusr/eon/runs/eon0087/data/r0001.xyz");
>
> I also tried
> jmolApplet(300, "load /lusr/eon/runs/eon0087/data/r0001.xyz");
>
> But both dont work. Please advise.

The applet runs on the client.

The client can only access data through a URL.

You must use a URL that is accessible to the client or to a web browser.

Configure your web server so that it can access your 'data' directory.

The parameter to 'load' should be a relative path from the directory of
the HTML page that is executing.

http://www.web.server/foo/bar/testPage.html

load "data/baz.xyz"
->
http://www.web.server/foo/bar/data/baz.xyz

It is OK to make the path 'server-relative' by starting with a '/' character.

http://www.web.server/foo/bar/testPage.html

load "/molecules/foo.xyz"
 ->
http://www.web.server/molecules/foo.xyz


Miguel




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to