timothy driscoll wrote:
to address your question, one can write content to a div using javascript
after the container document has fully loaded. I vaguely recall the ability
to load that content from an external file as well, but I may be mistaken on
the latter point. in any case, unless you are using server scripts to
generate your external file content, you should be able to accomplish the
same result in divs without iframes.
Right, that's what my most recent applications do -- interact with the server
via forms within iframes. The other case is relatively large static files that
one wants to transmit only as needed, but still be part of the web application.
The <iframe> element has a document.location property; I don't think divs have
that.
It would be a sweet little applet that just delivers web content to a specified
javascript variable (WITHOUT a callback!). For example:
<applet name="loader" archive="fileloader.jar" mayscript="true"></applet>
<script...>
fileinfo=document.loader.getContents("myfilename.whatever")
</script>
Someone must have thought of that besides the Jmol team.... Still, I'm wondering
if there's a way JavaScript can do this directly now. Maybe I'm behind the times.
Bob
--
Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr
"Imagination is more important than knowledge." - Albert Einstein
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users