Re: [webmin-devel] Select button
Emma wasanzy <[email protected]> Wed, 20 Mar 2013 20:11:44 +0000
| Newsgroups | gmane.comp.web.webmin.devel,gmane.comp.web.webmin.general |
|---|---|
| Message-ID | <CALgYh1EDTjTyje51Fm0BAC4mHKppf9kuLW1yqn-kuMVSqPL5pA@mail.gmail.com> |
--===============0687430369479112686== Content-Type: multipart/alternative; boundary=bcaec54a383ef0f94a04d860d5c2 --bcaec54a383ef0f94a04d860d5c2 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Yea, I did but didn't find anything closer to it. I based on the download and upload module to write the jsp uploading module but only that part I am struggling with. On Wed, Mar 20, 2013 at 7:23 PM, PEOPLES, MICHAEL P <[email protected]> wrote: > What I always do is look through all of the other modules to see if I > can find a function like the one I want, or at least one that is similar.= * > *** > > ** ** > > Then, examine the code in that module and modify it to your requirements. > **** > > ** ** > > If you=92re curious as to which modules might contain such functions, sea= rch > for JavaScript references in the files. You can do this finding all the > files containing source code, creating a list of them, then looping throu= gh > the list, searching each file for the =93jsp=94 or other relevant tags.**= ** > > ** ** > > This may not always work for you, but it=92s how I created my custom modu= les. > **** > > ** ** > > Michael Peoples (mp4783)**** > > iGEMS COE, Deployment, Engineering, Application Support and Security**** > > Global Service Assurance, M5**** > > AT&T Business Solutions**** > > Office: +1 614-886-0923**** > > Mobile: +1 614-886-0923**** > > ** ** > > Senior Systems Manager**** > > [email protected]**** > > ** ** > > *This e-mail and any files transmitted with it are AT&T property, are > confidential, and are intended solely for the use of the individual or > entity to whom this email is addressed. If you are not one of the named > recipient(s) or otherwise have reason to believe that you have received > this message in error, please notify the sender and delete this message > immediately from your computer. Any other use, retention, dissemination, > forwarding, printing, or copying of this e-mail is strictly prohibited."*= * > *** > > ** ** > > *From:* Emma wasanzy [mailto:[email protected]] > *Sent:* Wednesday, March 20, 2013 3:15 PM > *To:* Webmin development list; Webmin users list > *Subject:* [webmin-devel] Select button**** > > ** ** > > Hello,**** > > ** ** > > In the module am writing for tomcat, I want to provide two select > menu(dropdown menu). There a so many tomcat instance and each of them has > applications under them. Now, if someone want to upload a new jsp to a > particular tomcat say /var/lib/tomcat5/webapps/myapp is where the jsp wil= l > be uploaded to. I want the first select menu to provide the list of all t= he > tomcat instances on the server(This I have done successfully).**** > > The second select menu should contain all the applications under the > selected tomcat instance from the first menu select. so if I select > tomcat5, the second select menu should load automatically all the > applications under tomcat5.**** > > ** ** > > I know there is a javascript function that can do something like that > (onchange or so). But how can I do this? Any help will be appreciated muc= h. > **** > > ** ** > > I have my two menu select with the code below:**** > > ** ** > > print &ui_table_row($text{'inst_select'},**** > > &ui_select("inst", $in{'inst'},**** > > [ map { [ $_ ] } @insts ] ) );**** > > ** ** > > This is not working yet.**** > > print &ui_table_row( $text{'select_app'},**** > > &ui_select("ap", $in{'inst'},**** > > [ map { [ $_ ] } @apps ] ) );**** > > ** ** > > ** ** > > ** ** > > ** ** > > I will be using the two select menu to construct the directory to which > the jsp is to be saved.**** > > ** ** > > ** ** > > Cheers!**** > > ** ** > > ** ** > > ** ** > > ** ** > > ** ** > > > -------------------------------------------------------------------------= ----- > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > - > Forwarded by the Webmin development list at [email protected] > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel > > --bcaec54a383ef0f94a04d860d5c2 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Yea, I did but didn't find anything closer to it. I ba= sed on the download and upload module to write the jsp uploading module but= only that part I am struggling with.</div><div class=3D"gmail_extra"><br><= br> <div class=3D"gmail_quote">On Wed, Mar 20, 2013 at 7:23 PM, PEOPLES, MICHAE= L P <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blan= k">[email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quote= " style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div lang=3D"EN-US" link=3D"blue" vlink=3D"purple"> <div> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:#0707b9">What I always do is look through all of the other modules to = see if I can find a function like the one I want, or at least one that is s= imilar.<u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:#0707b9"><u></u>=A0<u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:#0707b9">Then, examine the code in that module and modify it to your r= equirements.=A0 <u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:#0707b9"><u></u>=A0<u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:#0707b9">If you=92re curious as to which modules might contain such fu= nctions, search for JavaScript references in the files.=A0 You can do this = finding all the files containing source code, creating a list of them, then looping through the list, searching each file for the= =93jsp=94 or other relevant tags.<u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:#0707b9"><u></u>=A0<u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:#0707b9">This may not always work for you, but it=92s how I created my= custom modules.<u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:#0707b9"><u></u>=A0<u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:blue">Michael Peoples (mp4783)<u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:blue">iGEMS COE, Deployment, Engineering, Application Support and Secu= rity<u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:blue">Global Service Assurance, M5<u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:blue">AT&T Business Solutions<u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:blue">Office:=A0<a href=3D"tel:%2B1%20614-886-0923" value=3D"+16148860= 923" target=3D"_blank">+1 614-886-0923</a><u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:blue">Mobile: <a href=3D"tel:%2B1%20614-886-0923" value=3D"+1614886092= 3" target=3D"_blank">+1 614-886-0923</a><u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:blue"><u></u>=A0<u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:blue">Senior Systems Manager<u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Co= urier New";color:blue"><a href=3D"mailto:[email protected]" target=3D"_= blank"><span style=3D"font-size:12.0pt;color:blue">[email protected]</span><= /a></span><span style=3D"font-size:11.0pt;font-family:"Courier New&quo= t;;color:#0707b9"><u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#0707b9"><u></u>=A0<u></u></span><= /p> <p class=3D"MsoNormal"><i><span style=3D"font-size:10.0pt;font-family:"= ;Arial","sans-serif"">This e-mail and any files transmitted = with it are AT&T property, are confidential, and are intended solely fo= r the use of the individual or entity to whom this email is addressed. If you are not one of the named recipient(s) or otherw= ise have reason to believe that you have received this message in error, pl= ease notify the sender and delete this message immediately from your comput= er. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.&qu= ot;</span></i><span style=3D"font-size:11.0pt;font-family:"Calibri&quo= t;,"sans-serif";color:blue"><u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New";c= olor:#0707b9"><u></u>=A0<u></u></span></p> <div style=3D"border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in = 0in 0in"> <p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"= ;Tahoma","sans-serif"">From:</span></b><span style=3D"font-s= ize:10.0pt;font-family:"Tahoma","sans-serif""> Emma was= anzy [mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">em= [email protected]</a>] <br> <b>Sent:</b> Wednesday, March 20, 2013 3:15 PM<br> <b>To:</b> Webmin development list; Webmin users list<br> <b>Subject:</b> [webmin-devel] Select button<u></u><u></u></span></p> </div><div><div class=3D"h5"> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> <div> <p class=3D"MsoNormal">Hello,<u></u><u></u></p> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal">In the module am writing for tomcat, I want to provi= de two select menu(dropdown menu). There a so many tomcat instance and each= of them has applications under them. Now, if someone want to upload a new = jsp to a particular tomcat say /var/lib/tomcat5/webapps/myapp is where the jsp will be uploaded to. I want the first select menu to prov= ide the list of all the tomcat instances on the server(This I have done suc= cessfully).<u></u><u></u></p> </div> <div> <p class=3D"MsoNormal">The second select menu should contain all the applic= ations under the selected tomcat instance =A0from the first menu select. so= if I select tomcat5, the second select menu should load automatically all = the applications under tomcat5.<u></u><u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal">I know there is a javascript function that can do so= mething like that (onchange or so). But how can I do this? Any help will be= appreciated much.<u></u><u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal">I have my two menu select with the code below:<u></u= ><u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal">=A0print &ui_table_row($text{'inst_select= 9;},<u></u><u></u></p> </div> <div> <p class=3D"MsoNormal">=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 &ui_select("= ;inst", $in{'inst'},<u></u><u></u></p> </div> <div> <p class=3D"MsoNormal">=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [ map { [ $_= ] } @insts ] ) );<u></u><u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal">This is not working yet.<u></u><u></u></p> </div> <div> <p class=3D"MsoNormal">print &ui_table_row( $text{'select_app'}= ,<u></u><u></u></p> </div> <div> <p class=3D"MsoNormal">=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0&ui_s= elect("ap", $in{'inst'},<u></u><u></u></p> </div> <div> <p class=3D"MsoNormal">=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [ ma= p { [ $_ ] } @apps ] ) );<u></u><u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal">I will be using the two select menu to construct the= directory to which the jsp is to be saved.<u></u><u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal">Cheers!<u></u><u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> <div> <p class=3D"MsoNormal"><u></u>=A0<u></u></p> </div> </div> </div></div></div> </div> <br>-----------------------------------------------------------------------= -------<br> Everyone hates slow websites. So do we.<br> Make your web apps faster with AppDynamics<br> Download AppDynamics Lite for free today:<br> <a href=3D"http://p.sf.net/sfu/appdyn_d2d_mar" target=3D"_blank">http://p.s= f.net/sfu/appdyn_d2d_mar</a><br>-<br> Forwarded by the Webmin development list at <a href=3D"mailto:webmin-devel@= webmin.com">[email protected]</a><br> To remove yourself from this list, go to<br> <a href=3D"http://lists.sourceforge.net/lists/listinfo/webadmin-devel" targ= et=3D"_blank">http://lists.sourceforge.net/lists/listinfo/webadmin-devel</a= ><br> <br></blockquote></div><br></div> --bcaec54a383ef0f94a04d860d5c2-- --===============0687430369479112686== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar --===============0687430369479112686== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline - Forwarded by the Webmin development list at [email protected] To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel --===============0687430369479112686==--