Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Change default meta headers in M7
Change default meta headers in M7 [message #873544] Fri, 18 May 2012 13:49 Go to next message
Tiburon T is currently offline Tiburon TFriend
Messages: 53
Registered: October 2011
Member
Hello!

We would like to know how we could change the default values of meta headers of the HTML page.

We are currently trying to make our application work well on the iPad and upgraded to M7 when it released. We would like to enable the iPad zoom and need to change the default content of the viewport meta tag for this.
We would like to change it from

<meta name = "viewport" content = "initial-scale = 1.0, minimum-scale = 1.0, maximum-scale=1.0" >

to

<meta name = "viewport" content = "initial-scale = 1.0, user-scalable=yes >

Is this possible?

Thanks,
Tiburon

Edit: We used the additonalHeaders extension before, but Safari does not seem to enable zoom if two tags are used.

[Updated on: Fri, 18 May 2012 13:52]

Report message to a moderator

Re: Change default meta headers in M7 [message #875184 is a reply to message #873544] Tue, 22 May 2012 09:17 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1291
Registered: July 2009
Senior Member

Hi Tiburon,

You can add meta headers but currently not overwrite them. If you add
your header, you'll end up with both headers present in the document.
Chances are that your settings win.

To add a meta header, add an "additionalHeaders" element to your
branding extension, or, if you use the ApplicationConfiguration API, use
WebClient.HEAD_HTML as key in your entrypoint properties.

HTH, Ralf


--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Multi User Application - Guidelines?
Next Topic:RAP themes
Goto Forum:
  


Current Time: Mon Nov 24 20:34:19 GMT 2014

Powered by FUDForum. Page generated in 0.01843 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software