On second thought, I think this probably is a legacy issue, at least with Windows. The following should probably be checked by a variety of Mac users:

http://www.stolaf.edu/people/hansonr/jmol/test/testfocus.htm


Bob Hanson wrote:

Be aware that not all browsers support .focus(). I haven't looked at this in a while, and maybe that's just "legacy browser" thinking. But it's something to worry about. See

http://www.quirksmode.org/js/support.html#focus

The following quote from that site is a bit dated, so perhaps there is no longer an issue:
<quote>

*Hotjava 3* has buggy support. The example on this page works, but others on this site don't. I have no idea what the problem is.

*Netscape 4 on Linux* does support it, but when you lay the focus on something that's not currently on the screen, the page does not scroll to show the element you laid the focus on. This is very confusing.

*Opera 3 and 4* refuse to lay the focus on another window when you're cross-window JavaScripting <http://www.quirksmode.org/js/croswin.html>, although in other circumstances it does support the focus. This is solved in Opera 5, except on *Linux*.

*Opera 5 on Mac* says it supports focus() but in fact does nothing.
</quote>

So I recommend doing some further checking before using .focus() on something as public as a wiki method.





Angel Herraez wrote:

El 26 Apr 2006 a las 17:25, Bob Hanson escribió:

Nico, you need a random number in that "windowTitle" variable.

[..snip..]
So the classic solution to this is to assign a unique number in that second parameter of open().


Another choice is to bring tha pop-up window to the front (with the new content). This is done in javascript by
    popWin = window.open(....)
    popWin.focus()
easy enough to implement in the Wiki extension, I guess.

One or the other is better depending on the users' expertise and intentions. I find that most naive users get confused about new windows, so fewer would be better.

And El 26 Apr 2006 a las 17:09, Bob Hanson escribió:
3. Two valuable options we should probably consider building into Jmol for this sort of public use might be:

a) allowPopUpConsole
b) allowShowFile


We already have set DisablePopupMenu
set HideNameInPopup

The latter will probably also block file downloading, right?
So, for consistency, the only need to be added could be:
set DisablePopupConsole
or just
set DisableConsole

Oh, I see Bob's ShowFile may be something different, "show file" as a script? But this is not available to the page user, or is it?



-------------------------------------------------------
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_______________________________________________
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_______________________________________________
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&kid0709&bid&3057&dat1642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to