Forums Archive Index > SmartMenus 5 > The SELECT problem...

Author: aggro

Date: 31 Oct 2003 3:17 pm

I noticed in the manual it says that it is built to "cope with the SELECT issue". That was it though, it didn't shed much more light on what it meant - but I am experiencing a problem with my select box when I rollover the smart menu my SELECT dropdown disappears !?

This is a screenshot from the site it's happening on. We're an educator, and this is a private intranet website, just FYI in case you were going to question our ability to uphold your license. :D

--> http://www.rollingedits.com/pics/uploads/uhoh.gif

Thanks for the great script though, it rocks because we need to use it on IE6, Safari, and Mac IE 5.2 - it works great on all of them except MAC IE 5.2 in which case it doesn't position correctly. Anyhow, it still works so that's what matters, just looks a little "off".


Author: aggro

Date: 2 Nov 2003 6:09 am

So, any ideas on how to fix it up ? Thx again.


Author: smartmenus

Date: 3 Nov 2003 7:30 pm

OK,

Let me explain how SmartMenus 5 "copes with the select box issue". :)

The SELECT boxes in IE/Windows are special OS controls. The result of this fact is that no DHTML layer can be displayed over SELECT boxes. This means that if any menu should be displayed on a position where a SELECT box is placed, it will be partially hidden below the SELECT box.

To make sure that this won't happen SmartMenus 5 will hide all SELECT boxes found in the page when a menu is shown and will show the SELECT boxes again when the menu is hidden.

If this behavior confuses you I can send you a version of s_script_dom.js which will not function in the way explained above. However you are giving me the idea to add a variable, which will control this feature. I will probably do this in the next maintenance release.

I honestly didn't know about the IE5/Mac problem. The worst thing is that I don't have the possibility to do the tests on this browser personally. I hope to soon get a Mac and test the script all by myself.

BTW, I will be very grateful if you could send me a screenshot or just explain the problem. Please use smartmenus{@}smartmenus.org to contact me if you find some time. You will help not just me but all SmartMenus users around the world.

Thanks!

PS: Sorry for the short delay. I just needed some rest. Went to the mountain for the weekend :)


Author: Oliver H.

Date: 8 Jan 2004 8:37 am

Hello,

I have the same problem.

Does anyone know, how this can be fixed?

Hope somebody can help out.

Best Regards
Oliver H.


Author: smartmenus

Date: 9 Jan 2004 1:21 pm

I just investigated the problem thanks to the great help from Oliver Hoenow- --> http://www.hamburghockey.de/index_home.htm .

The bug is in the "s_fs_addon.js" file and thus only affects cross-frame use of the SmartMenus. When a menu is called from the "toolbar" frame any SELECT elements found at the current page in the "content" frame will be hidden without any chance to become visible again.

The bug is present in the last 2 releases of the SmartMenus- v5.1 and v5.1.1 and affects IE4+/Windows users.

A fix for this bug will be available in the upcoming v5.1.2, which will be released in just a few days.


Author: swaben

Date: 29 Jan 2004 8:17 pm

I am currently having this problem with smartmenus 5-1-2. Is this issue being resolved?


Author: smartmenus

Date: 30 Jan 2004 3:25 am

This bug has been resolved in v5.1.2. I think there should be something else wrong.

Could please give me an url?


Author: swaben

Date: 30 Jan 2004 4:07 pm

I'm actually developing the site on my computer so I don't have a url.

Try adding the following lines to one of the examples:

<tr>
<td align=right><select name="Select"><option name=blah>Option 1</select></td>
</tr>

When the menu opens over the select box, it disappears.


Author: smartmenus

Date: 31 Jan 2004 5:14 am

I think you are not talking about the bug described above by the other guys.

Anyway, just set s_hideSELECTsInIE=true in section 1 of the s_arrays.js file and you will activate the built-in feature of the SmartMenus, which copes with the problem.

Cheers!


Author: swaben

Date: 3 Feb 2004 12:03 pm

Cool. I guess I should have RTFM!

Is there anyway to hide only the selects that are under a specific menu instead of all of 'em?


Author: smartmenus

Date: 3 Feb 2004 2:09 pm

swaben wrote:
Is there anyway to hide only the selects that are under a specific menu instead of all of 'em?Yes and no...

Yes, because this is possible- it was available as feature in SmartMenus 3.x but I got rid of it because it requires some additional code and enlarges the size of the script and also slows the run-time performance.

And no, because it is not available in SmartMenus 5.x (for the reasons mentioned above).


Author: chrisjust@hotmail.com

Date: 31 Mar 2005 3:04 pm

OK, I apologize if this has been gone over before. I looked for an answer but couldn't find one.

For sake of ease, I have the equivalent of an index.html that has a SmartMenu database driven system. The menu loads other intranet pages in an iframe below. Unfortuantely, the s_hideSELECTsInIE flag doesn't seem to help any SELECTs that are in the child pages. When the code hits the s_htg() function, the document.all.tags("SELECT") doesn't return any of the items in the iframe page. Is there any way around this?

Thanks for any help.


Author: smartmenus

Date: 1 Apr 2005 7:45 am

chrisjust, have you tried SmartMenus v5.5? It includes a better solution for the SELECT issue in IE5.5+. I think it should work for you.

However, in the old IE5.0x (and also IE4.x) the problem will remain. The only solution for these old browsers would be a customized version of the script core. Please send me a small ZIP-ed example I could work with if you want me to customize the code for you..

Thanks!