Custom HTML headers?

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!

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:

    <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="" />
    <link rel="apple-touch-icon" sizes="196x196" href="nvn_icon1_196x196.png" />
    <link rel="apple-touch-startup-image" href="mystartscreen2.png" />


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

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

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

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>
 <meta charset="utf-8" />
 <meta name="viewport" content="user-scalable=no,width=540" />
 <script src="wisej.wx"></script>





  • Andrew
    Excellent, thank you for explaining.
  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json mixin.theme