Hi Bob,
Aha, jmolScriptwait ? that?s the ticket!
Yeah, I know about the MSIE issue, and I?m trying to deal with that
now. Here?s the issue: I'm adding the jmol applet images dynamically
to the open webpage, as opposed to exporting to another window as does
Angel?s code (and very nicely too).
My code for MSEI looks like this:
if (nav64=='nocomp'){
var testimg=document.getElementById("SnpShtImg")
var imgB64 = "image/jpeg;base64," + jmolGetPropertyAsString('image');
var B64path="base64.php"
testimg.src = B64path + "?" + imgB64;
}
Which calls Dean Edwards original base64.php code.
It doesn?t work; the <img> appears empty.
Yet if I manually feed a base64-encoded image (such as this from Dean
Edwards web page), it does work.
imgB64="data:image/gif;base64,R0lGODlhDwAPAKECAAAAzMzM/////wAAACwAAAAADwAPAAACIISPeQHsrZ5ModrLlN48CXF8m2iQ3YmmKqVlRtW4MLwWACH+H09wdGltaXplZCBieSBVbGVhZCBTbWFydFNhdmVyIQAAOw==";
Could the issue be the size of the jmol-derived image?
Thinking about this from another angle? is there a technical reason
why jmol cannot deliver a non-base64 encoded image that could be
dynamically added to the open web page: something like
testimg.src=jmolGetImage (?jpeg?)?
(Have I just fully revealed my lack of understanding of JAVA, or,
is this already possible and I have once again missed it in the
documentation?)
Steve
--
Steven R. Spilatro
Dept of Biology and Environmental Science
Marietta College
Marietta, OH
----------------------------------------------------------------
This message was sent using Marietta College WebMail.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users