Skip to main content



      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 09:49 Go to next message
Eclipse UserFriend
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 09:52] by Moderator

Re: Change default meta headers in M7 [message #875184 is a reply to message #873544] Tue, 22 May 2012 05:17 Go to previous message
Eclipse UserFriend
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:MenuManager on right click doesn't work properly with 1.5M6
Next Topic:URL with token
Goto Forum:
  


Current Time: Wed Jul 23 21:22:49 EDT 2025

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

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

Back to the top