and, of course

http://chemapps.stolaf.edu/jmol/jsmol/test2.htm?USE=HTML5


On Sun, Dec 23, 2012 at 11:08 PM, Robert Hanson <[email protected]> wrote:

> OK! We have a popup menu in JavaScript. Thank you, Michael Evans!!! jQuery
> UI to the rescue. All relevant code is in jsmol/j2s/java/coremenu.js
>
>
> Check it out. http://chemapps.stolaf.edu/jmol/jsmol/test2.htm and
> http://chemapps.stolaf.edu/jmol/jsmol.zip
>
> Right-click for the menu -- not sure about Macs or tablets yet.
>
> I still need to remove some of the menu items such as Console that do not
> relate to JavaScript.
>
>
>
> Bob
>
>
>
> On Tue, Dec 18, 2012 at 11:57 AM, Michael Evans <[email protected]>wrote:
>
>> Jmol community,
>> Here's a simple example of a context menu in JSmol:
>>
>> http://www.metallacycle.com/play/netmol/tests/popupMenu/popupMenu.html
>>
>> Dig into the document ready function and jmolPopupMenu.js for details.
>> The whole kit and kaboodle (including jQueryUI menu, which I used to handle
>> the visuals) is 165 KB at the moment. The JS file adds Jmol.Menu with its
>> associated functions:
>>
>> initializeMenu
>> menuAddItem(menu, item)
>> menuRemoveItem(menu, itemId)
>> menuAddSubmenu(menu, submenu)
>> menuAddSeparator(menu)
>> menuEnableItem(menu, itemId, boolEnable)
>>
>> Should the "items" sent to menuAddItem, etc. just be HTML, or something
>> more abstract like Javascript objects? There are no jQueryUI objects for
>> things like radio groups and checkboxes...these would have to be handled by
>> us somewhere on the path from abstract menu object to final rendered menu.
>> Would be interested to hear your thoughts on the best way to implement
>> addItem.
>>
>> Cheers, Mike
>>
>> ---
>> Michael Evans
>> Organic Chemistry Graduate Student, Moore Group
>> University of Illinois, Urbana-Champaign
>>
>>
>>
>> ------------------------------------------------------------------------------
>> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>> Remotely access PCs and mobile devices and provide instant support
>> Improve your efficiency, and focus on delivering more value-add services
>> Discover what IT Professionals Know. Rescue delivers
>> http://p.sf.net/sfu/logmein_12329d2d
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Chemistry Department
> 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
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
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
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to