From: Dennis D. <den...@ya...> - 2016-02-17 13:34:38
|
Thank you very much, will look at that . On Wednesday, February 17, 2016 1:02 PM, "PEOPLES, MICHAEL P" <mp...@at...> wrote: #yiv6980342334 #yiv6980342334 -- _filtered #yiv6980342334 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv6980342334 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv6980342334 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv6980342334 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv6980342334 #yiv6980342334 p.yiv6980342334MsoNormal, #yiv6980342334 li.yiv6980342334MsoNormal, #yiv6980342334 div.yiv6980342334MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv6980342334 a:link, #yiv6980342334 span.yiv6980342334MsoHyperlink {color:blue;text-decoration:underline;}#yiv6980342334 a:visited, #yiv6980342334 span.yiv6980342334MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv6980342334 span.yiv6980342334EmailStyle17 {color:blue;}#yiv6980342334 .yiv6980342334MsoChpDefault {font-size:10.0pt;} _filtered #yiv6980342334 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv6980342334 div.yiv6980342334WordSection1 {}#yiv6980342334 It has been a while since I’ve created a custom module, but I believe you need to examine other code within Webmin that provides a similar function. For example, the “Software Packages” module has an icon next to the “From local file” input box. If you click this icon, you get a file listing from which you can select a file to installation. What you need to do is look at the underlying web page code using a tool like Firefox’s firebug. There you will see that clicking that icon invokes the “chooser.cgi” script. In this case I believe that is pointing to /usr/libexec/webmin/chooser.cgi. You should then examine how this code is used for your particular application. Hope this helps. Michael Peoples (mp4783) Global Customer Service Dev Ops Office: +1 614-886-0923 Mobile: +1 614-886-0923 Principal Applications Developer mp...@at... From: Dennis Damalie [mailto:den...@ya...] Sent: Wednesday, February 17, 2016 6:04 AM To: web...@li... Subject: [webmin-devel] View files(.conf,.txt etc) in webmin module Hello All, I am developing a custom webmin module which includes the option of viewing files that been created within the module . I would be grateful if I am can be pointed how I can approach this . What I would like to know is , if there are a number of files in the directory how can I click on a particular file for it to show its file contents . Thank you . |