Re: [Jmol-users] revision of Jmol.js -- was Re: help displaying jvxl MO

2010-01-24 Thread Grossman, Robert B
Couldn't you do something along the lines of encodeURIComponent()?  Convert all 
% to %25, and convert all \n and \r symbols to %0A and %0D ?


On 1/24/10 5:33 PM, Robert Hanson hans...@stolaf.edu wrote:

I've altered Jmol.js when it finds that a model has a vertical bar in it to 
substitute the string \\/n -- escaped backslash - forward slash - n  -- sort 
of along the lines of what your server is doing. This would be a VERY unusual 
thing to have in a model file. (I suppose it's not impossible, so technically 
this is still a hack.)

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] revision of Jmol.js -- was Re: help displaying jvxl MO

2010-01-24 Thread Robert Hanson
JVXL includes those characters.

On Sun, Jan 24, 2010 at 4:48 PM, Grossman, Robert B robert.gross...@uky.edu
 wrote:

 Couldn't you do something along the lines of encodeURIComponent()?  Convert
 all % to %25, and convert all \n and \r symbols to %0A and %0D ?


 On 1/24/10 5:33 PM, Robert Hanson hans...@stolaf.edu wrote:

 I've altered Jmol.js when it finds that a model has a vertical bar in it to
 substitute the string \\/n -- escaped backslash - forward slash - n  --
 sort of along the lines of what your server is doing. This would be a VERY
 unusual thing to have in a model file. (I suppose it's not impossible, so
 technically this is still a hack.)


 --
 Throughout its 18-year history, RSA Conference consistently attracts the
 world's best and brightest in the field, creating opportunities for
 Conference
 attendees to learn about information security's most important issues
 through
 interactions with peers, luminaries and emerging and established companies.
 http://p.sf.net/sfu/rsaconf-dev2dev
 ___
 Jmol-users mailing list
 Jmol-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-users




-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] revision of Jmol.js -- was Re: help displaying jvxl MO

2010-01-24 Thread Grossman, Robert B
Yes, of course it does, but the point is you look for any string beginning with 
% and you know it is an encoded character.  Kind of like using  in HTML.  
ChemAxon uses it to pass parameters to the Marvin applets.


On 1/24/10 5:57 PM, Robert Hanson hans...@stolaf.edu wrote:

JVXL includes those characters.

On Sun, Jan 24, 2010 at 4:48 PM, Grossman, Robert B robert.gross...@uky.edu 
wrote:
Couldn't you do something along the lines of encodeURIComponent()?  Convert all 
% to %25, and convert all \n and \r symbols to %0A and %0D ?


On 1/24/10 5:33 PM, Robert Hanson hans...@stolaf.edu wrote:

I've altered Jmol.js when it finds that a model has a vertical bar in it to 
substitute the string \\/n -- escaped backslash - forward slash - n  -- sort 
of along the lines of what your server is doing. This would be a VERY unusual 
thing to have in a model file. (I suppose it's not impossible, so technically 
this is still a hack.)

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users




--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] revision of Jmol.js -- was Re: help displaying jvxl MO

2010-01-24 Thread Robert Hanson
I was figuring on a simpler process, but of course something like that would
be optimal.

On Sun, Jan 24, 2010 at 5:01 PM, Grossman, Robert B robert.gross...@uky.edu
 wrote:

 Yes, of course it does, but the point is you look for any string beginning
 with % and you know it is an encoded character.  Kind of like using  in
 HTML.  ChemAxon uses it to pass parameters to the Marvin applets.


 On 1/24/10 5:57 PM, Robert Hanson hans...@stolaf.edu wrote:

 JVXL includes those characters.

 On Sun, Jan 24, 2010 at 4:48 PM, Grossman, Robert B 
 robert.gross...@uky.edu wrote:
 Couldn't you do something along the lines of encodeURIComponent()?  Convert
 all % to %25, and convert all \n and \r symbols to %0A and %0D ?


 On 1/24/10 5:33 PM, Robert Hanson hans...@stolaf.edu wrote:

 I've altered Jmol.js when it finds that a model has a vertical bar in it to
 substitute the string \\/n -- escaped backslash - forward slash - n  --
 sort of along the lines of what your server is doing. This would be a VERY
 unusual thing to have in a model file. (I suppose it's not impossible, so
 technically this is still a hack.)


 --
 Throughout its 18-year history, RSA Conference consistently attracts the
 world's best and brightest in the field, creating opportunities for
 Conference
 attendees to learn about information security's most important issues
 through
 interactions with peers, luminaries and emerging and established companies.
 http://p.sf.net/sfu/rsaconf-dev2dev
 ___
 Jmol-users mailing list
 Jmol-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-users





 --
 Throughout its 18-year history, RSA Conference consistently attracts the
 world's best and brightest in the field, creating opportunities for
 Conference
 attendees to learn about information security's most important issues
 through
 interactions with peers, luminaries and emerging and established companies.
 http://p.sf.net/sfu/rsaconf-dev2dev
 ___
 Jmol-users mailing list
 Jmol-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-users




-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] revision of Jmol.js -- was Re: help displaying jvxl MO

2010-01-24 Thread Grossman, Robert B
I see only a blank page when I go there.  I don't even see the text in the body.

On 1/24/10 5:33 PM, Robert Hanson hans...@stolaf.edu wrote:

I've put your file up as a sample at 
http://chemapps.stolaf.edu/jmol/docs/examples-11/appletInline.htm



--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] revision of Jmol.js -- was Re: help displaying jvxl MO

2010-01-24 Thread Robert Hanson
I just forgot the

   // --

tag.

Should be working now.



On Sun, Jan 24, 2010 at 5:55 PM, Grossman, Robert B robert.gross...@uky.edu
 wrote:

 I see only a blank page when I go there.  I don't even see the text in the
 body.

 On 1/24/10 5:33 PM, Robert Hanson hans...@stolaf.edu wrote:

 I've put your file up as a sample at
 http://chemapps.stolaf.edu/jmol/docs/examples-11/appletInline.htm




 --
 Throughout its 18-year history, RSA Conference consistently attracts the
 world's best and brightest in the field, creating opportunities for
 Conference
 attendees to learn about information security's most important issues
 through
 interactions with peers, luminaries and emerging and established companies.
 http://p.sf.net/sfu/rsaconf-dev2dev
 ___
 Jmol-users mailing list
 Jmol-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-users




-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] revision of Jmol.js -- was Re: help displaying jvxl MO

2010-01-24 Thread Robert Hanson
nah. Really? Check for JavaScript errors or something. Maybe you have to
close your browser and reopen it.

On Sun, Jan 24, 2010 at 5:55 PM, Grossman, Robert B robert.gross...@uky.edu
 wrote:

 I see only a blank page when I go there.  I don't even see the text in the
 body.

 On 1/24/10 5:33 PM, Robert Hanson hans...@stolaf.edu wrote:

 I've put your file up as a sample at
 http://chemapps.stolaf.edu/jmol/docs/examples-11/appletInline.htm




 --
 Throughout its 18-year history, RSA Conference consistently attracts the
 world's best and brightest in the field, creating opportunities for
 Conference
 attendees to learn about information security's most important issues
 through
 interactions with peers, luminaries and emerging and established companies.
 http://p.sf.net/sfu/rsaconf-dev2dev
 ___
 Jmol-users mailing list
 Jmol-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-users




-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] revision of Jmol.js -- was Re: help displaying jvxl MO

2010-01-24 Thread Grossman, Robert B
Now it works.


On 1/24/10 9:36 PM, Robert Hanson hans...@stolaf.edu wrote:

I just forgot the

   // --

tag.

Should be working now.



On Sun, Jan 24, 2010 at 5:55 PM, Grossman, Robert B robert.gross...@uky.edu 
wrote:
I see only a blank page when I go there.  I don't even see the text in the body.

On 1/24/10 5:33 PM, Robert Hanson hans...@stolaf.edu wrote:

I've put your file up as a sample at 
http://chemapps.stolaf.edu/jmol/docs/examples-11/appletInline.htm



--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users




--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users