[webmin-devel] Select button
Emma wasanzy <[email protected]> Wed, 20 Mar 2013 19:14:47 +0000
| Newsgroups | gmane.comp.web.webmin.devel,gmane.comp.web.webmin.general |
|---|---|
| Message-ID | <CALgYh1FfekVzhNUYw=hqa-mq4gK3JH+_xZRJw8tjhvbUW+_tLw@mail.gmail.com> |
--===============4256137719493781599==
Content-Type: multipart/alternative; boundary=bcaec54860f03e143a04d8600a64
--bcaec54860f03e143a04d8600a64
Content-Type: text/plain; charset=ISO-8859-1
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!
--bcaec54860f03e143a04d8600a64
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hello,<div><br></div><div style>In the module am writing f=
or tomcat, I want to provide two select menu(dropdown menu). There a so man=
y tomcat instance and each of them has applications under them. Now, if som=
eone want to upload a new jsp to a particular tomcat say /var/lib/tomcat5/w=
ebapps/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 h=
ave done successfully).</div>
<div style>The second select menu should contain all the applications under=
the selected tomcat instance =A0from the first menu select. so if I select=
tomcat5, the second select menu should load automatically all the applicat=
ions under tomcat5.</div>
<div style><br></div><div style>I know there is a javascript function that =
can do something like that (onchange or so). But how can I do this? Any hel=
p will be appreciated much.</div><div style><br></div><div style>I have my =
two menu select with the code below:</div>
<div style><br></div><div style>=A0print &ui_table_row($text{'inst_=
select'},</div><div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 &ui_select(&quo=
t;inst", $in{'inst'},</div><div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 [ map { [ $_ ] } @insts ] ) );</div>
<div><br></div><div style>This is not working yet.</div><div>print &ui_=
table_row( $text{'select_app'},</div><div>=A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0&ui_select("ap", $in{'inst'},</div=
><div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [ map { [ $_ ] } @app=
s ] ) );</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div style>I wi=
ll be using the two select menu to construct the directory to which the jsp=
is to be saved.</div><div style><br></div><div style><br></div><div style>
Cheers!</div><div style><br></div><div style><br></div><div style><br></div=
><div style><br></div><div style><br></div></div>
--bcaec54860f03e143a04d8600a64--
--===============4256137719493781599==
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
--===============4256137719493781599==
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
--===============4256137719493781599==--