setLanguage in webClient

Using Servoy to administrate the content of your website? Discuss all webrelated Servoy topics on this forum!

setLanguage in webClient

Postby irenem » Tue Feb 01, 2011 10:55 am

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.
Irene Meyer

Version: 6.0.5
Java version 1.6.0_29
Mac OS X Version 10.7.3
User avatar
irenem
 
Posts: 279
Joined: Tue Aug 28, 2007 2:09 pm
Location: Netherlands

Re: setLanguage in webClient

Postby irenem » Wed Feb 02, 2011 9:44 am

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.
Irene Meyer

Version: 6.0.5
Java version 1.6.0_29
Mac OS X Version 10.7.3
User avatar
irenem
 
Posts: 279
Joined: Tue Aug 28, 2007 2:09 pm
Location: Netherlands

Re: setLanguage in webClient

Postby lvostinar » Wed Feb 02, 2011 1:37 pm

Can you attach a small sample here ?
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1064
Joined: Tue Feb 19, 2008 10:53 am

Re: setLanguage in webClient

Postby irenem » Wed Feb 02, 2011 1:49 pm

Hello Laurian,

thank you for answering, here is the example
Attachments
vlsWeb.servoy
(461.48 KiB) Downloaded 297 times
Irene Meyer

Version: 6.0.5
Java version 1.6.0_29
Mac OS X Version 10.7.3
User avatar
irenem
 
Posts: 279
Joined: Tue Aug 28, 2007 2:09 pm
Location: Netherlands


Return to Web Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron