no dice, but thanks - good thought...
On Aug 6, 2007, at 4:18 PM, Bob Hanson wrote:
> try
>
> jmolApplet(["100%", "95%"]
>
> instead of
>
> jmolApplet("100%, 95%"
>
>
> [EMAIL PROTECTED] wrote:
>
>> Quoting Frieda Reichsman <[EMAIL PROTECTED]>:
>>
>>
>>
>>> Anybody got a cure for these css blues?
>>>
>>> I have a Jmol layout that works solidly with the resizable applet in
>>> Firefox and Safari. However, in Internet Explorer (I know you are
>>> all
>>> shocked) the div that contains the applet is flat, and does not load
>>> the applet (no output at all in the Java console).
>>>
>>> The problem is with using div height in percent. IE will not take a
>>> percent height *unless* I put it inside of a "container" div
>>> that gets
>>> its height from elsewhere. Voila, problem solved! However when I
>>> put
>>> in the container div, Safari's applet disappears. (And the Java
>>> console has output that is truncated compared to when the applet
>>> loads.) Very frustrating.
>>>
>>> Other options -
>>> Feeding in the height in pixels, using inner window width etc., via
>>> javascript - I think that would pretty much kill the resizable
>>> applet
>>> feature, right? Even if not, it would be a challenge because the
>>> layout is for a 3rd party and there are other elements on the page
>>> that I do not control.
>>>
>>> Using position:absolute would also solve the problem, but again, the
>>> other content prevents me from using this, I think.
>>> -----
>>>
>>> A simplified page that works in IE and not in Safari (that is,
>>> it uses
>>> a container div) is here:
>>>
>>> http://moleculesinmotion.com/containerSimple.htm
>>>
>>> The "real" test pages with all the other content and code are
>>> available too, in case anyone wants to see. (But the code is crowded
>>> and complex here.)
>>>
>>> http://moleculesinmotion.com/container.htm
>>> http://moleculesinmotion.com/noContainer.htm
>>>
>>>
>>>
>>
>> In my experience a lot of problems with different browser behaviour
>> results from different error tolerance and different error correction
>> strategies.
>>
>> This means for example that you developed a page in a specific
>> browser
>> and it works as desired. Then you try a different browser and the
>> page
>> doesn't work as desired. And if you look more carefully with your
>> development browser you notice that there are also error messages
>> there.
>>
>> This might also be the problem in this case. When I opened the
>> "http://moleculesinmotion.com/test/noContainer.htm" page in Firefox
>> 1.5.0.12 on WinXP I got 3 javascript errors, but the Jmol applet was
>> loaded.
>> One of the error messages "MM_preloadImages is not defined"
>> corresponds to the less clear error message from Internet Explorer
>> for
>> line 83 "Object expected" which points to this (truncated) source:
>> "<body
>> onLoad="SetGutterWidth(1);MM_preloadImages('/images/
>> BJCentral_nav_on.gif',..."
>>
>> So the first thing I would try would be to get rid of these error
>> messages also in Firefox. And with some luck the applet related part
>> might work also in IE.
>>
>> Regards,
>> Rolf
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>>
>> ---------------------------------------------------------------------
>> ----
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems? Stop.
>> Now Search log events and configuration files using AJAX and a
>> browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>
>
> --
> Robert M. Hanson
> Professor of Chemistry
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
>
>
> 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
>
>
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users