Re: [Jmol-users] Dynamic base64 decoding

2008-09-09 Thread Robert Hanson
Well, if you want, give it a try. You will have to use the latest version of Jmol -- http://chemapps.stolaf.edu/jmol/docs/examples-11/JmolApplet.jar Just issue var x = jmolGetPropertyAsJavaObject("image") That "AsJavaObject" ensures that the image created is returned as a byte array -- the actua

[Jmol-users] Dynamic base64 decoding

2008-09-09 Thread Steven R. Spilatro
Bob, Well, I'm not sure... In the demo web page I sent earlier I assign the base64-encoded Jmol image, to a image element in the same page: var jmlImgB64 = jmolGetPropertyAsString('image'); document.getElementById("jmlImage").innerHTML = ''; I'm wondering if Jmol could deliver a non-base64 encod

Re: [Jmol-users] Dynamic base64 decoding

2008-09-07 Thread Robert Hanson
the feature just doesn't exist for browsers. You can set a JavaScript variable to any memory-constrained length, but you are asking for something different, I think. Bob On Sun, Sep 7, 2008 at 12:03 PM, Paul Pillot < [EMAIL PROTECTED]> wrote: > It should directly trigger an error (in that case

Re: [Jmol-users] Dynamic base64 decoding

2008-09-07 Thread Paul Pillot
It should directly trigger an error (in that case you don't even provide a source file for the image src property)... unless... no one really knows with Internet Explorer ;). Paul Le 7 sept. 08 à 18:44, Steven R. Spilatro a écrit : > Oh, of course! testimg.src = B64path + "?" + imgB64; involv

[Jmol-users] Dynamic base64 decoding

2008-09-07 Thread Steven R. Spilatro
Oh, of course! testimg.src = B64path + "?" + imgB64; involves a URL, sorry I missed that. Would a feature like "testimg.src=jmolGetImage ("jpeg")" involve similar contraints? Steve >I don't think you can put that many bytes on a URL line. Better would be to >put the base64 data into a texta

Re: [Jmol-users] Dynamic base64 decoding -- legible

2008-09-07 Thread Robert Hanson
On Sun, Sep 7, 2008 at 9:48 AM, Steven R. Spilatro <[EMAIL PROTECTED]>wrote: > > > Could the issue be the size of the jmol-derived image? > Yes, I'm pretty sure that's it. The way to test, of course, is to use the same base64 info from Jmol in an img data: - aware browser. There's a link under the

[Jmol-users] Dynamic base64 decoding -- legible

2008-09-07 Thread Steven R. Spilatro
(Sorry about some earlier messages with cryptic punctuation -- I believe I have it resolved; I'm sending this one again.) 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

Re: [Jmol-users] Dynamic base64 decoding

2008-09-06 Thread Robert Hanson
I don't think you can put that many bytes on a URL line. Better would be to put the base64 data into a textarea in a form and submit it using method="post". Even that might have some limitations. Bob On Sat, Sep 6, 2008 at 12:19 PM, <[EMAIL PROTECTED]> wrote: > Hi Bob, > > Aha, jmolScriptwait

[Jmol-users] Dynamic base64 decoding

2008-09-06 Thread spilatrs
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 n