Oh, sure --- the old Java string problem, this time with JME.

make that:

( "" + document.getElementById(jme1).jmeFile()).split("|");

with parens around the converted string

On Thu, Sep 16, 2010 at 9:28 PM, Otis Rothenberger <[email protected]>wrote:

>  Bob,
>
> > what's doing the split? Your JavaScript?
>
> I should have given you the JavaScript that set up that Jmol Script:
>
>         mods = document.getElementById(jme1).jmeFile().split("|");
>         var modA = mods[0]; var modB = mods[1];
>         jmolScript("mod1 = '" + modA + "';mod2 = '" + modB + "';load
> '@mod1';" + loadScpt + "hover off;set appendNew false;load APPEND
> '@mod2';select *;wireframe 0.15;spacefill 23%;boundbox {*};centerat
> boundbox;");
>
> As I look at it now, I see the problem. I don't know how long it's going
> to take me to get this in my head. Safari can't handle the Java string.
> I need to do:
>
>  "" + document.getElementById(jme1).jmeFile().split("|");
>
> OK, thanks on the jmeString informtion. That was my real question.
>
> Otis
>
>
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> 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
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to