language dropdown not working properly

This forum is for all Flare issues not related to any of the other categories.
Post Reply
susan_murray4
Propeller Head
Posts: 19
Joined: Thu Nov 27, 2014 9:58 am

language dropdown not working properly

Post by susan_murray4 »

Hi,

I have had a project handed to me with a language selection dropdown that doesn't work (it's coded into the master page so it displays at all times). I've played about with it and have managed to get it working but can't get the selected language version to display in the parent frame - instead it displays in the main frame (so I end up with 2 contents panels) - see attachment.
I did try adding target="-parent" to the form tag, but it didn't make any difference.

Can anyone point me in the right direction? Any help would be much appreciated. Here's the code:

<form>
<select id="changeLang" onchange="window.location=this.value;" style=" min-width: 150px; ">
<option selected="selected">Language:</option>
<option value="http://www.controlnow.com/onlinemanual/ ... sh</option>
<option value="../de/Default.htm">Deutsch</option>
<option value="http://www.controlnow.com/onlinemanual/ ... ol</option>
<option value="http://www.controlnow.com/onlinemanual/ ... ªs</option>
</select>
</form>


Many thanks, Susan.
Last edited by susan_murray4 on Thu Oct 08, 2015 3:48 am, edited 1 time in total.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: language dropdown not working properly

Post by NorthEast »

As topics are within a frame, it needs to open the new help in the window's parent; so try replacing:

<select id="changeLang" onchange="window.parent.location=this.value;" style=" min-width: 150px; ">
kwag_myers
Propellus Maximus
Posts: 810
Joined: Wed Jul 25, 2012 11:36 am
Location: Ann Arbor, MI

Re: language dropdown not working properly

Post by kwag_myers »

I'm curious as to how this menu is setup (if you get it working, that is). I tried this in the toolbar, which didn't display correctly due to the frame height being too narrow. I ended up scrapping the menu and adding links, which I just happened to post yesterday in this thread. I'd much rather have a menu.
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
susan_murray4
Propeller Head
Posts: 19
Joined: Thu Nov 27, 2014 9:58 am

Re: language dropdown not working properly

Post by susan_murray4 »

Thanks Dave.
Ended up opting for:

<select id="changeLang" onchange="window.top.location.href=this.value;" style=" min-width: 150px; ">

and it worked!
bennetty
Propeller Head
Posts: 32
Joined: Tue Aug 19, 2014 8:28 am

Re: language dropdown not working properly

Post by bennetty »

Hi,
Just wondering if anyone has managed to add a language drop-down menu to the toolbar or even some tips on how this might be achieved.

Any help would be much appreciated.

Many thanks
kwag_myers
Propellus Maximus
Posts: 810
Joined: Wed Jul 25, 2012 11:36 am
Location: Ann Arbor, MI

Re: language dropdown not working properly

Post by kwag_myers »

Drop-downs won't work in the toolbar because the menu stays within the toolbar frame and does not overlay the body frame. However, Flare 11 has a top nav feature that supports drop-downs in the toolbar.
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
Post Reply