Hi,
Thanks for the help. I got something going with JQuery UI. I was in a bit
of a muddle, trying to make a call from the Jmol.js JavaScript gui
facilities, back into Java Jmol, and out again to JavaScript. Better to
just do it in JavaScript/JQuery. Hard to keep a clear picture of all the
layers sometimes :=)
This seems to be a minimal code to get the job done.
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<style>
#helpPanel { font-size: 12px; }
// Can't suss how to reduce big fat font in titlebar
</style>
<input type="button" id="helpButton" value="Help" title="Help page, via
JQuery UI Dialog" />
<div id="helpPanel" title="Help Panel">
A page or two of help information ....
etc etc etc ...
</div>
<script>
$(function() {
$("#helpPanel").dialog( { autoOpen: false, width: 1000, height: 550} );
});
$('#helpButton').click(function() {
$("#helpPanel").dialog('open');
return false;
});
</script>
On 13 September 2013 08:29, Robert Hanson <[email protected]> wrote:
> It's not something that Jmol would do, then. It's something your page
> would do. If you want, you can add something to the Jmol menu that would
> trigger a JavaScript function on your page. Or you could just supply some
> sort of Help button.
>
>
> On Thu, Sep 12, 2013 at 4:42 PM, Greg Edwards <[email protected]> wrote:
>
>> Thanks. Sorry I wasn't very clear there. The help will just be a few
>> paragraphs, or page or two, of help about my own app. Scrollable.
>>
>> JQuery does seem to be the answer for most things.
>>
>> I was going to hack the "popup" on the pages like
>> http://chemapps.stolaf.edu/jmol/docs/examples/lighting.htm
>>
>>
>>
>> On 13 September 2013 05:39, Robert Hanson <[email protected]> wrote:
>>
>>> You are planning to write the help yourself, I presume? JSmol does
>>> implement jQuery, so there are quick ways of doing that, provided you have
>>> the content. If you don't I probably do not, either.... The HELP command
>>> opens http://chemapps.stolaf.edu/jmol/docs
>>>
>>>
>>> On Wed, Sep 11, 2013 at 3:17 AM, Greg Edwards <[email protected]>wrote:
>>>
>>>> Hi folks,
>>>>
>>>> I'd like to have a popup help/documentation panel in my Jmol applet.
>>>> This would be triggered from a jmolButton and pop up a panel of adjustable
>>>> size and position (but any reasonable size/position would be ok for now,
>>>> the user can move & stretch it). It would display plain text (eg. Courier
>>>> 12, black on white) at a minimum, or HTML with variable font/size/colour.
>>>>
>>>> I suspect this is very easy and I've missed it in my travels through
>>>> the doco.
>>>>
>>>> Many thanks
>>>>
>>>> --
>>>> Greg Edwards,
>>>> Port Jackson Bioinformatics
>>>> [email protected]
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> How ServiceNow helps IT people transform IT departments:
>>>> 1. Consolidate legacy IT systems to a single system of record for IT
>>>> 2. Standardize and globalize service processes across IT
>>>> 3. Implement zero-touch automation to replace manual, redundant tasks
>>>>
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Jmol-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>>>
>>>>
>>>
>>>
>>> --
>>> Robert M. Hanson
>>> Larson-Anderson Professor of Chemistry
>>> 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
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> How ServiceNow helps IT people transform IT departments:
>>> 1. Consolidate legacy IT systems to a single system of record for IT
>>> 2. Standardize and globalize service processes across IT
>>> 3. Implement zero-touch automation to replace manual, redundant tasks
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Jmol-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>>
>>>
>>
>>
>> --
>> Greg Edwards,
>> Port Jackson Bioinformatics
>> [email protected]
>>
>>
>> ------------------------------------------------------------------------------
>> How ServiceNow helps IT people transform IT departments:
>> 1. Consolidate legacy IT systems to a single system of record for IT
>> 2. Standardize and globalize service processes across IT
>> 3. Implement zero-touch automation to replace manual, redundant tasks
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> 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
>
>
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. Consolidate legacy IT systems to a single system of record for IT
> 2. Standardize and globalize service processes across IT
> 3. Implement zero-touch automation to replace manual, redundant tasks
> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Greg Edwards,
Port Jackson Bioinformatics
[email protected]
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users