WebClient own headers in html-head

Forum to discuss the Web client version of Servoy.

WebClient own headers in html-head

Postby Bonkie » Thu Aug 18, 2011 11:42 am

Hello,

I wonder if I can add my own meta headers in the <head> part of the HTML in the WebClient. Because I got a solution which needs to have the X-UA-Compatible meta-tag to run in IE7 compatibility mode on IE8/IE9. But this meta-tag has to be added before the CSS is loaded.

The problem is that the application contains some HTML data in the database what we don’t control. It is filled by a customer and we can’t validate its correctness. Every browser (except Internet Explorer 8+) handles this on a correct way.
Rick Bonkestoter
Certified Servoy 7 Developer

Direct ICT / ServoyCamp
User avatar
Bonkie
 
Posts: 68
Joined: Wed Jun 27, 2007 11:05 am
Location: Den Ham, The Netherlands

Re: WebClient own headers in html-head

Postby jcompagner » Fri Aug 19, 2011 4:23 pm

you can do it by changing the mainpage.html template?
But that must be rechecked then when updating

Also having a global field with a piece of html that has your header and display that on your main form. That will be then included in the main html
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: WebClient own headers in html-head

Postby Bonkie » Tue Sep 13, 2011 2:40 pm

Hi Johan,

Ok so you suggest to 'hack' the webclient by adding the tags manually in the <head> tags by editing the HTML file. But every update we will have to change that again if i'm correct?

And the other part I can imagine, but that is not w3c compatible because is not allowed to use meta tags outside the <head>...</head> part. Also some browsers will ignore these when I do that...

Or should I add a feature request for this?!
Rick Bonkestoter
Certified Servoy 7 Developer

Direct ICT / ServoyCamp
User avatar
Bonkie
 
Posts: 68
Joined: Wed Jun 27, 2007 11:05 am
Location: Den Ham, The Netherlands

Re: WebClient own headers in html-head

Postby jcompagner » Tue Sep 13, 2011 2:52 pm

the main page html doesn't change that often, but yes your should check it now and then

about the global with its own html piece (including a head tag with the meta) will work fine
We will transfer the <head> area of your global html text to the real head of the page.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: WebClient own headers in html-head

Postby Bonkie » Tue Sep 13, 2011 3:58 pm

Ok but.... How should I put it on a form? Because when I put it as a HTML Area I will get a WYSIWYG editor and when I put it on the form as a text field it becomes editable
Rick Bonkestoter
Certified Servoy 7 Developer

Direct ICT / ServoyCamp
User avatar
Bonkie
 
Posts: 68
Joined: Wed Jun 27, 2007 11:05 am
Location: Den Ham, The Netherlands

Re: WebClient own headers in html-head

Postby jcompagner » Tue Sep 13, 2011 4:39 pm

try a 1 pixel label with the global as dataprovider
or a none editable html area.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: WebClient own headers in html-head

Postby Bonkie » Wed Sep 14, 2011 9:42 am

Oh whoops... Didnt think about that :oops: :oops:
Rick Bonkestoter
Certified Servoy 7 Developer

Direct ICT / ServoyCamp
User avatar
Bonkie
 
Posts: 68
Joined: Wed Jun 27, 2007 11:05 am
Location: Den Ham, The Netherlands


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 5 guests