Search form in menu hides dropdown select box
Search form in menu hides dropdown select box
I know it is possible to use a search form box within the menu, and this works fine in your demonstrations on your homepage etc. My site needs to use this feature but with a drop down box, not a text field. How can i stop the menu from hiding everytime something is selected from the drop down box?
thanks
Rich
thanks
Rich
http://newcom.serran.net login sserra / leandra then search on the milonic menu
Hi Rich,
I just went to the URL and tried to log in. The provided username/password didn't work.
I know that you didn't ask for site critiques, but I gotta say that, IMHO, I found the javascript that the login page uses to close opener windows to be a little... um... off putting. The worst part is that, because it replaces the opener with itself, hence re-running the script, it can work it's way back to the original opener. In IE, instead of opening in a new (fourth) window to the login page, which is what I wanted, it closed two of my browser windows and replaced the original starting window with itself. As a result, I completely lost my starting point (in this case, on the forums). It does the same thing with the tabs in Opera 8; closed all of them back to my starting tab, then replaced the content in that tab with itself. Firefox resists a litte, closing only partway back to the original. For people like me, who prefer to open a link in a new window or tab (shift-click), that behavior isn't ideal. I imagine it could irritate many of your users. Just my opinion, FWIW.
Cheers,
Kevin
I just went to the URL and tried to log in. The provided username/password didn't work.
I know that you didn't ask for site critiques, but I gotta say that, IMHO, I found the javascript that the login page uses to close opener windows to be a little... um... off putting. The worst part is that, because it replaces the opener with itself, hence re-running the script, it can work it's way back to the original opener. In IE, instead of opening in a new (fourth) window to the login page, which is what I wanted, it closed two of my browser windows and replaced the original starting window with itself. As a result, I completely lost my starting point (in this case, on the forums). It does the same thing with the tabs in Opera 8; closed all of them back to my starting tab, then replaced the content in that tab with itself. Firefox resists a litte, closing only partway back to the original. For people like me, who prefer to open a link in a new window or tab (shift-click), that behavior isn't ideal. I imagine it could irritate many of your users. Just my opinion, FWIW.
Cheers,
Kevin
Yep, that spot will work. Menu properties can actually be defined anywhere between the openinge-spike wrote:i'm assuming the keepalive=1 is immediatly after the menu decleration (the bit which reads:
with(milonic=new menuname("search"){
keepalive=1
margin=2
...
) is this correct?
Code: Select all
with(milonic=new menuname("search")){
Code: Select all
aI("text= ... ;");
Cheers,
Kevin
Hmmmm... looks like I'm a step behind!e-spike wrote:Now how do i close a named menu?
Here are some functions that I have used to manipulate menu visibility programatically:
Code: Select all
function mm_closeMenuByName(menuName) // , alwaysVisState = optional. 1=on, 0=off
{
var menuNum = getMenuByName(menuName);
if (arguments.length > 1) _m[menuNum][7] = arguments[1];
menuDisplay(menuNum, 0);
}
Also, I'm sure you can figure it out from the above, but I use the following to open a menu by name:
Code: Select all
function mm_openMenuByName(menuName) // , alwaysVisState = optional. 1=on, 0=off
{
var menuNum = getMenuByName(menuName);
if (arguments.length > 1) _m[menuNum][7] = arguments[1];
menuDisplay(menuNum, 1);
}
I have also combined these two into a general "toggle" function, as shown below:
Code: Select all
function mm_toggleMenuByName(menuName, menuState) // , alwaysVisState = optional. 1=on, 0=off
{
var menuNum = getMenuByName(menuName);
if (arguments.length > 2) _m[menuNum][7] = arguments[2];
menuDisplay(menuNum, menuState);
}
Hope those helps... cheers,
Kevin