From: Greg E. <ged...@gm...> - 2013-09-14 22:15:29
|
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 <ha...@st...> 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 <ged...@gm...> 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 <ha...@st...> 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 <ged...@gm...>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 >>>> ged...@gm... >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> 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 >>>> Jmo...@li... >>>> 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 >>> Jmo...@li... >>> https://lists.sourceforge.net/lists/listinfo/jmol-users >>> >>> >> >> >> -- >> Greg Edwards, >> Port Jackson Bioinformatics >> ged...@gm... >> >> >> ------------------------------------------------------------------------------ >> 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 >> Jmo...@li... >> 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 > Jmo...@li... > https://lists.sourceforge.net/lists/listinfo/jmol-users > > -- Greg Edwards, Port Jackson Bioinformatics ged...@gm... |