On May 11, 2006, at 2:12 p, Eric Martz wrote:

A word to the wise: in Safari, pickCallback parameter 2 (atom id) must be forced to become a string:
  p2s = "" + p2;
Otherwise it looks like as string, but, for example, p2.indexOf ("]") returns -1 when it should return a value >= 2.


yes, I encountered this a while ago as well. it is returned as an Object, not a string. and, a word to the wiser ;-), you *must* force it to a string using the + operator, as Eric describes. no other method works.

best,

tim

--
Timothy Driscoll                                em: [EMAIL PROTECTED]
Virginia Bioinformatics Institute               ph: 540-231-3007
Bioinformatics I                                im: molvisions
Washington St., Blacksburg, VA 24061

"Pain heals. Chicks dig scars. Glory lasts forever."





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to