Be advised that the following code is not recommended:

function messageProcess(a,b){
 a = a.substring("jmolApplet".length)
...

The variable "a" returned to JavaScript is not a JavaScript string; it 
is a Java string.
You should always handle this by immediately reassigning the value to a 
JavaScript string:

function messageProcess(a_,b){
 var a = "" + a_
 a = a.substring("jmolApplet".length)
...

or, perhaps in this case:

function messageProcess(app,b){
 var a = ("" + app).replace(/jmolApplet/,"")
...

Bob


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to