Page 1 of 1

setLanguage in webClient

PostPosted: Tue Feb 01, 2011 10:55 am
by irenem
Hi,

I have 2 buttons in my web start form that determinate in which language te page showsup. It works perfectly in smart client but not in the web client.
I'm not very experienced in web stuf, so I probably do something wrong. Hehe is the code:

Code: Select all
var formName = "webStart"
   history.removeForm(formName)
   i18n.setLocale('nl','NL')
   forms.webStart.controller.recreateUI()


thanks for any help.

Re: setLanguage in webClient

PostPosted: Wed Feb 02, 2011 9:44 am
by irenem
Ok, it seems that I found the origin of the problem.

The anchor of the buttons are Top,Right and Left in order to be in place when the browser window resize.
The method work well when only the Top and Right anchors are assigned, if I include the left anchor it doesn't work anymore.
It is weird, but it seems that when the button moves with the browser, the method remain in place.

I tried also with two other buttons one showing form A the other Form B, if I anchor them in order to move with the window button B shows form A.

The browsers I used are Safari and Chrome, both with the same result.

I am happy with any help.

Re: setLanguage in webClient

PostPosted: Wed Feb 02, 2011 1:37 pm
by lvostinar
Can you attach a small sample here ?

Re: setLanguage in webClient

PostPosted: Wed Feb 02, 2011 1:49 pm
by irenem
Hello Laurian,

thank you for answering, here is the example