What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Translation » website translation - bug in language selection?

website translation - bug in language selection?
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: website translation - bug in language selection?
Like I said before, to use form-elements in a proper way, you need to define a form. The problem with this, as you showed, is that MSIE has a bug when it comes to forms inside tablecells: it puts linebreaks before the selector...
It goes even further, MSIE even puts linebreaks before the table if you put the <form>-tag outside the table.

These bugs from MSIE (it's not a bug in other browsers) should be known by most website-developers because they are indeed very dodgy...

The workaround is to define the form outside the tablecell, but inside the table, so instead of:
<table><tbody><tr><td><form><select></select></form></td></tr></tbody></table>
use:
<table><tbody><form><tr><td><select></select></td></tr></form></tbody></table>


OR


Because you don't define a form, you must search for the form-elements with a script. Just like Guido does in msgplusjs.js. The problem with that is that the names from MSIE and Mozilla based browsers for the layerstructure of a document is different. And the script only checks for the MSIE based names, so that's why Mozilla based browsers return "undefined" and thus the script can't execute further.

The workaround for this is easy:
I've seen in msgplusjs.js that there is a very complicated and unneeded script being used to catch the select-object (with all the problems it brings).
This can be solved by:
Delete the function "GFDD_findObj" and "GFDD_jumpMenuGo", these are not needed because in the html-code the object can be returned directly by the use of the "this"-word like so: <SELECT class=language onchange="GFDD_jumpMenu(this);" size=1>



So, in short: choose one of the two methods:
1) use <table><tbody><form><tr><td><select></select></td></tr></form></tbody></table> and leave the javascript and everything as it is.
2) don't use the <form>-tag and change the select-tag to: <SELECT class=language onchange="GFDD_jumpMenu(this);" size=1> and then you can even remove those two functions (GFDD_findObj and GFDD_jumpMenuGo) in the script.


I hope this helps ;)



This post was edited on 06-14-2004 at 12:52 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-13-2004 11:43 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
website translation - bug in language selection? - by Apatik on 06-12-2004 at 10:41 PM
RE: website translation - bug in language selection? - by Mnjul on 06-13-2004 at 02:51 AM
RE: website translation - bug in language selection? - by Patchou on 06-13-2004 at 05:41 AM
RE: website translation - bug in language selection? - by KeyStorm on 06-13-2004 at 10:54 AM
RE: website translation - bug in language selection? - by user17033 on 06-13-2004 at 12:04 PM
RE: website translation - bug in language selection? - by CookieRevised on 06-13-2004 at 12:20 PM
RE: website translation - bug in language selection? - by Choli on 06-13-2004 at 12:27 PM
RE: website translation - bug in language selection? - by user17033 on 06-13-2004 at 12:28 PM
RE: website translation - bug in language selection? - by Apatik on 06-13-2004 at 12:32 PM
RE: website translation - bug in language selection? - by Patchou on 06-13-2004 at 07:51 PM
RE: website translation - bug in language selection? - by Choli on 06-13-2004 at 08:20 PM
RE: website translation - bug in language selection? - by Patchou on 06-13-2004 at 09:26 PM
RE: website translation - bug in language selection? - by CookieRevised on 06-13-2004 at 09:29 PM
RE: website translation - bug in language selection? - by Patchou on 06-13-2004 at 09:44 PM
RE: website translation - bug in language selection? - by Choli on 06-13-2004 at 10:21 PM
RE: website translation - bug in language selection? - by Patchou on 06-13-2004 at 10:40 PM
RE: website translation - bug in language selection? - by Choli on 06-13-2004 at 10:54 PM
RE: website translation - bug in language selection? - by CookieRevised on 06-13-2004 at 11:43 PM
RE: website translation - bug in language selection? - by WDZ on 06-14-2004 at 03:54 AM
RE: website translation - bug in language selection? - by Patchou on 06-14-2004 at 04:16 AM
RE: website translation - bug in language selection? - by WDZ on 06-14-2004 at 04:42 AM
RE: website translation - bug in language selection? - by ddunk on 06-14-2004 at 04:48 AM
RE: website translation - bug in language selection? - by Choli on 06-14-2004 at 11:27 AM
RE: website translation - bug in language selection? - by Patchou on 06-14-2004 at 04:58 PM
RE: website translation - bug in language selection? - by Guido on 06-14-2004 at 06:58 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On