OK, I've fixed it. It was a problem with how IE and Netscape differ in the way they encode line endings in a textarea. The key was to use

 model="|"+model
 model=model.replace(/\r\n/g,"|")
 model=model.replace(/\n/g,"|")
 model=model.replace(/\r/g,"|")
 model=model.replace(/\|/g,"\n|")

The first replace is a fix for IE, the second for Netscape, and the third (maybe?) for macs. Needs testing to be sure.

http://www.stolaf.edu/people/hansonr/jmol/

now works in both my browsers.


Bob


Miguel wrote:

Did that. Now I get the grey screen, which turns into a black screen,
but no model. Do others see a model when you click "Load" using I.E.?
(version 6.0)


Try out the pages underneath:
  http://jmol.sf.net/preview

They should be stable and should work fine on your IE.

Under your 'Tools' menu you should find two interesting things.

Tools -> Sun Java Console

and

Tools -> Internet Options... -> Advanced -> Java(Sun) ->
  Use Java 2 v 1.4.* for <applet> *SHOULD BE CHECKED*


Miguel


Dave Chandler wrote:

Hi Bob,

Goto

http://www.java.com/en/download/windows_automatic.jsp

Not sure if you heard the recent news RE: microsoft and sun settling
issues
RE: java.  SO windows doesn't come with a jvm by default.  The above
link
will install the JVM for you.

Cheers

Dave Chandler

PhD Student
Western Australian Biomedical Research Institute
Curtin University of Technology

Phone: (08) 9361 5027
Web: www.wabri.org.au; www.curtin.edu.au

View my postgraduate profile at http://members.iinet.net.au/~egene/





-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

--

Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr

"Imagination is more important than knowledge."  - Albert Einstein



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers




-------------------------------------------------- Miguel Howard [EMAIL PROTECTED] c/Pe�a Primera 11-13 esc dcha 6B 37002 Salamanca Espa�a Spain -------------------------------------------------- telefono casa 923 27 10 82 movil 650 52 54 58 -------------------------------------------------- To call from the US dial 9:00 am Pacific US = home 011 34 923 27 10 82 12:00 noon Eastern US = cell 011 34 650 52 54 58 6:00 pm Spain --------------------------------------------------


------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers

--

Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr

"Imagination is more important than knowledge."  - Albert Einstein



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to