Page 1 of 1

windows mobile - meta tags - inject into all pages

Posted: Sun Jul 21, 2013 9:36 am
by John5269257

I just tested my site on windows phone. Most of the many browser quirks can be handled through css, but one seems to need a meta tag for which there is no css equivalent. It's meant to stop the browser applying its own click highlighting:

meta name="msapplication-tap-highlight" content="no"

I'm not generating the site as a single page - I assume if I did a single meta tag would apply site wide - is this true?

The site I'm building doesn't really suit the single page approach, so Is there a way of injecting stuff into the head in an appery project that will apply to all pages when exported? (If not, it could be a good idea.)

Thanks,
John


windows mobile - meta tags - inject into all pages

Posted: Sun Jul 21, 2013 2:06 pm
by Illya Stepanov

Hi John, if your target devices will be with IE10 -- you can try this rule in CSS
code-ms-touch-action: none;/code

for other cases the only option is to place a meta teg in the header.

Since you are building a mobile web app - you can export source files in export tab "Web resources" and edit them later.
Or make edits in the editor using tab "Source" -- and save changes.


windows mobile - meta tags - inject into all pages

Posted: Sun Jul 21, 2013 4:47 pm
by John5269257

Ilya - thanks for the css tip


windows mobile - meta tags - inject into all pages

Posted: Mon Jun 09, 2014 9:49 am
by Jitendra Bhagat

I want to Add this meta tag in my application.

Can you please tell where to add this in the code ?

Waiting for a favorable reply.


windows mobile - meta tags - inject into all pages

Posted: Mon Jun 09, 2014 9:49 am
by Jitendra Bhagat

I want to Add this meta tag in my application.
code
<meta name="viewport" content="initial-scale=1&#46;0, user-scalable=0, width=device-width, height=device-height"/>
/code
Can you please tell where to add this in the code ?

Waiting for a favorable reply.


windows mobile - meta tags - inject into all pages

Posted: Mon Jun 09, 2014 11:15 am
by Kateryna Grynko

Hi Jitendra,

You can use the following JavaScript:pre$('head meta[name=viewport]')&#46;remove();
$('head')&#46;append( '' );/pre