Bob,

I didn't think of AJAX, probably because I'm at the low end of the learning curve on that. My server is limited to ASP.NET <http://ASP.NET>, but that should work with the approach you suggest.

Am I correct on the following assumption? To use AJAX in place of the iFrame, I would have to write the NIH data to a temp text file on my server. Then AJAX could access that text file without a JavaScript security violation. Am I on the right track with this thought?

Other Questions: What I'm doing at present is reading the NIH data into a dynamic page that resides on my server. This dynamic page is loaded to the iFrame so that I can use the data. Can I use AJAX to read this dynamic page and bypass the iFrame? I should note that a call to the dynamic page must have the appropriate query string that triggers the appropriate NIH data read. I've used AJAX to read static files. Is the current problem that simple?

Otis

Otis Rothenberger
chemagic.com


On 8/25/2010 9:54 AM, Robert Hanson wrote:
Otis, you can use an "applet proxy" -- that is, a stub of code on your web site that relays the data from another site, which is basically what you seem to be using.

In addition, there is a JavaScript server at St. Olaf that allows you to read a page from anywhere in the world into the unsigned Jmol applet. You can use that. Check Jmol.js to see how that is used -- the unsigned applet can read from the American Mineralogist or RCSB this way. I don't advertise it because it's a browser version headache. The key for that is that it uses a JavaScript link.

Actually, though, if you have access to your own site and php, you should use AJAX - that's what it's for. Get rid of the iframe!

I'm trying to think of a good example where I have used that....

Bob


On Wed, Aug 25, 2010 at 12:21 AM, Otis Rothenberger <[email protected] <mailto:[email protected]>> wrote:


    Otis

    --
    Otis Rothenberger
    chemagic.com <http://chemagic.com>


------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to