I am trying to duplicate the build_default_tpl dropdown menu and have the
action simply 'refresh' the page I am on with t=template added to the url.
I would prefer the 'switch' to take place when the menu is released
without having to hit a submit button.
I have a dropdown menu of template sets displaying properly, but
when I hit the "go" button. It lands me on the appropriate admin page
with a message stating that the the change was successful. And it was! <g>
It switched the default template set as expected, but I want to just 'refresh'
the page I am on and switch templates.
<input type="hidden" name="do" value="setup_build" />
<%Links::Tools::tpl_dir_select($cfg_build_default_tpl, '(?:browser|admin)', '', 1)%>
<select name="build_default_tpl"><%loop template_set_loop%><option<%if directory = config.build_default_tpl%> selected<%endif%>><%directory%></option><%endloop%></select>
<div class="submit">
<input type="submit" value="Go" />
</div>
</form>
I think this will require a javascript onmenu or something like that.
Also that the menu will have to have the urls added to it?
If someone could walk me through creating a menu whose action
happens when the menu is released. I would appriciate it.
Thanks,
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
action simply 'refresh' the page I am on with t=template added to the url.
I would prefer the 'switch' to take place when the menu is released
without having to hit a submit button.
I have a dropdown menu of template sets displaying properly, but
when I hit the "go" button. It lands me on the appropriate admin page
with a message stating that the the change was successful. And it was! <g>
It switched the default template set as expected, but I want to just 'refresh'
the page I am on and switch templates.
Code:
<form method="post" action="admin/setup.cgi"> <input type="hidden" name="do" value="setup_build" />
<%Links::Tools::tpl_dir_select($cfg_build_default_tpl, '(?:browser|admin)', '', 1)%>
<select name="build_default_tpl"><%loop template_set_loop%><option<%if directory = config.build_default_tpl%> selected<%endif%>><%directory%></option><%endloop%></select>
<div class="submit">
<input type="submit" value="Go" />
</div>
</form>
I think this will require a javascript onmenu or something like that.
Also that the menu will have to have the urls added to it?
If someone could walk me through creating a menu whose action
happens when the menu is released. I would appriciate it.
Thanks,
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com