[SOLVED] Custom HTML headers?

Answered Closed
0
0

What is the best way to implement custom headers in WiseJ? I want to set the mobile viewport via meta tags, and web-app icons via Link Rel tags.

In visual WebGUI, you could do this in Web.config:

 <ApplicationsMetaData>
    <meta Name="viewport" Content="width=device-width, initial-scale=1.0, user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="default" />
    <meta name="mobile-web-app-capable" content="yes" />
    <link rel="icon" sizes="192x192" href="https://domain.com/myicon192.png" />
    <link rel="apple-touch-icon" sizes="196x196" href="nvn_icon1_196x196.png" />
    <link rel="apple-touch-startup-image" href="mystartscreen2.png" />
 </ApplicationsMetaData>

 

Searching through IIS articles, I thought one way to do this would be like so:

 <system.webServer>
   <httpProtocol>
     <customHeaders>
       <clear />
       <add name="viewport" value="width=device-width, initial-scale=1.0, user-scalable=0" />
     </customHeaders>
   </httpProtocol>

However, I am not having luck. Thanks for any help you can provide.
  • You must to post comments
Best Answer
0
0

Add any html directly in Default.html. Wisej works like any html page, it simply creates javascript widgets on the application’s single page when loading “wisej.wx”. It can be any page: default.html, default.aspx, default.chtml, etc… Any html on the page is preserved. See example below from the ChartJS sample.

<!DOCTYPE html>
<html>
<head>
 <title></title>
 <meta charset="utf-8" />
 <meta name="viewport" content="user-scalable=no,width=540" />
 <script src="wisej.wx"></script>
</head>
<body>
</body>
</html>

 

Best,

Luca

 

  • Andrew Niese
    Excellent, thank you for explaining.
  • You must to post comments
Showing 1 result