I need a volunteer with a bit of JavaScript know-how and access to a Mac
that does not work properly with the pop-up LiveConnect at
http://www.stolaf.edu/academics/chemapps/jmol/docs
All we need is one simple example of someone on this machine
successfully doing the following:
1) pop up a window having in it an applet, either <applet> or <object>,
hard-coded or using Jmol-js itself.
2) demonstrate successful code on that page that uses LiveConnect to:
a) change the background color
b) load a file
Show me that example, and I will get this fixed.
Bob
David Leader wrote:
>Bob replied to one of my postings (sorry that this is not automatically marked
>up):
>
><me>
>An interesting difference between FF and Safari in this regard. If you choose
>"View Source" on FF you get the source, on Safari you get blank. Likewise if
>you try to save the page on Safari it says it can't. How are you generating the
>pop-ups, Bob?
></me>
>
><Bob>
>Surely this is true for all pop ups on those systems, right?
>
> var opt="menubar,scrollbars,width=900,height=600,left=100,top=30"
> var sm=""+Math.random()
> sm=sm.substring(3,10)
> var w=open("","DT_"+sm,opt)
> w.document.open()
> w.document.write(s)
> w.document.close()
>
>Maybe that's the whole problem. Other suggestions?
></Bob>
>
>Yes and no, and I'm pretty sure that this is the source of the whole problem.
>
>There are pop-ups and pop-ups. The javascript open.window() method takes four
>arguments - url, name, features, replace - only the first three of which are
>normally used. My own experience with pop-ups has involved either specifying an
>existing html file as the url, or specifying a cgi that returns a file of
>mime-type text/html. Pop-ups of this type allow one to view source, although
>with pages generated by cgis I have had to specify absolute paths to the Jmol
>applet, pdb files and jmol.js = not 'evil', just hindering portability, but
>necessary.
>
>If a cgi returns a file of type plain/text (eg for saving as plain text) then
>in
>Safari it is not possible to view the source - perhaps reasonable, as there is
>no html source - although Firefox does present the plain text. This may appear
>irrelevant, but I think the ability to view source is diagnostic of whether
>Safari (and Opera Mac) are regarding a page as html.
>
>Being only an amateur at javascript, I had not previously encountered the
>omission of a url in a window.open() call, but have just been looking at the
>example in Chapter 14 of Flanagan's Javascript, The Definitive Guide - this is
>of popping up an error feedback. I experimented with this, and it behaves in a
>similar way to Bob's - the source viewed on Safari is blank, whereas on Firefox
>you get the html source.
>
>It seeems to me that Safari, although rendering the generated html to create
>the
>pop-up page, is nevertheless somehow not treating it as an html page
>subsequently. I did try substituting the name of a real html file as the url,
>which IE5 Mac picked up on, but Safari (and Firefox) didn't care whether it was
>there or not and didn't behave differently if it was. So that doesn't seem a
>possible solution.
>
>I rather suspect that the javascript approach Bob is using for generating web
>pages on the fly for his documentation will not support applet/html LiveConnect
>with Safari or Opera on the Mac.
>
>David
>
>
>
>
>----------------------------------------------------------------
>This message was sent using IMP, the Internet Messaging Program.
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users