From: PEOPLES, M. P <mp...@at...> - 2013-03-20 21:49:59
|
I've been where you're at and gave up on some things. Your best bet may be to go out and find a JavaScript framework (Dojo, JQuery, etc.) and try to incorporate that functionality into your code. I'm not entirely sure how the Webmin web server will react to this however. This won't be easy, but once you've figured out how to make it work within the Webmin environment, you can use other functionality it provides to enhance your modules. There are lots of neat widgets and components to work with. Then, you can share what you did with the rest of us and be a hero! 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 mpe...@at...<mailto:mpe...@at...> 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:emm...@gm...] Sent: Wednesday, March 20, 2013 4:12 PM To: Webmin development list Cc: Webmin users list Subject: Re: [webmin-devel] Select button 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 <mp...@at...<mailto:mp...@at...>> 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're curious as to which modules might contain such functions, search for JavaScript references in the files. 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 "jsp" or other relevant tags. This may not always work for you, but it's how I created my custom modules. Michael Peoples (mp4783) iGEMS COE, Deployment, Engineering, Application Support and Security Global Service Assurance, M5 AT&T Business Solutions Office: +1 614-886-0923<tel:%2B1%20614-886-0923> Mobile: +1 614-886-0923<tel:%2B1%20614-886-0923> Senior Systems Manager mpe...@at...<mailto:mpe...@at...> 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:emm...@gm...<mailto:emm...@gm...>] 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 will be uploaded to. I want the first select menu to provide the list of all the 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 much. 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 web...@we...<mailto:web...@we...> To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel |