gwt mvp - Change doctype in GWT -


i have gwt mvp application , use formfactor determine version of app serve mobile, tablet or desktop.

my issue comes since mobile version ie needs different doctype work properly. how can change doctype before serve app?

this might change,using script.

detect user agent , apply below codes... var newdoctype = document.implementation.createdocumenttype('html','-//w3c//dtd xhtml 1.0 transitional//en','http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtdd');

document.doctype.parentnode.replacechild(newdoctype,document.doctype);


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -