HTML tag in Web Client

Forum to discuss the Web client version of Servoy.

HTML tag in Web Client

Postby ashutos » Thu Oct 20, 2011 11:33 am

Hi All,

My Web Page is not rendering properly . Only Some part of the web page is having some problem . I am using HTML tag to display that . Is Web Client not compatible with HTML tags in script ?. I am also having another problem. Are Some Font types are not compatible with the Web Client ?. Is "Verdana" not compatible with web Client ?.




Thanks in advance . Waiting for your feedback.
Thanks
Ashutos
ashutos
 
Posts: 72
Joined: Fri Apr 16, 2010 1:06 pm

Re: HTML tag in Web Client

Postby ashutos » Thu Oct 20, 2011 12:12 pm

Hi All,

Is there any alternative to the HTMl tags in the Web client ? . I am using some bold and underline HTML tags at some places .






Thanks in advance . Waiting for your feedback.
Thanks
Ashutos
ashutos
 
Posts: 72
Joined: Fri Apr 16, 2010 1:06 pm

Re: HTML tag in Web Client

Postby ashutos » Fri Oct 21, 2011 8:34 am

Hi All ,

Please do help . I am waiting for your responses.
Thanks
Ashutos
ashutos
 
Posts: 72
Joined: Fri Apr 16, 2010 1:06 pm

Re: HTML tag in Web Client

Postby Harjo » Fri Oct 21, 2011 8:36 am

Hi, It is very hard to determ, what goes wrong...

Can you give us here, some snippets of code, and some screenshots, on how webclient it renders??
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: HTML tag in Web Client

Postby ashutos » Fri Oct 21, 2011 8:53 am

Hi Harjo ,

Thanks for your reply. I am using something like :

displayText = '<html><body><u>' +
utils.dateFormat(currentStartDate,'EEE MM/dd') +
'</u></body></html>';

smLabel = frmObj.newLabel(displayText,
timeCellWidth + (colCnt * cellWidth), 0 , cellWidth, headerCellHeight, globals.mfcal_g_manageNavCalSelections);

In the smart client it is rendering perfectly . But in the Web Client the HTML tag is creating problem .The "displayText" appears distorted. When excluding the HTML tag it is working fine . Here I am using the Solution Model . "frmObj" is a Solution Model Form Object . "smLabel" is the solution model label object.
Thanks
Ashutos
ashutos
 
Posts: 72
Joined: Fri Apr 16, 2010 1:06 pm

Re: HTML tag in Web Client

Postby jcompagner » Fri Oct 21, 2011 2:04 pm

if i use this:

Code: Select all
var form = solutionModel.getForm("window");
   var displayText = '<html><body><u>' +
   utils.dateFormat(new Date(),'EEE MM/dd') +
   '</u></body></html>';
   form.newLabel(displayText,10,30,60,20);


then it works fine for me.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 5 guests

cron