Pandian
Pandian

Reputation: 9

Header not showing in a Windows Phone 8 Dojo app

The Body of Index.html app generated by Worklight 6.2 contains the following HTML5 and it is not working properly on Windows Phone 8 emulator. I cannot see the Heading Bar and the comanylogo image.

<body style="display: none;">
    <div data-dojo-props="selected:false" data-dojo-type="dojox.mobile.View" id="view1">
        <div data-dojo-props="label:'Heading'" data-dojo-type="dojox.mobile.Heading">My View</div>
        <div>
        <img src="images/companylogo.png" />
        </div>
    </div>
    <script src="js/initOptions.js"></script>
        <script src="js/main.js"></script>
        <script src="js/messages.js"></script>
</body>

Upvotes: 0

Views: 102

Answers (1)

Idan Adar
Idan Adar

Reputation: 44516

Do you get any error in the Visual Studio Output view? For example, something like require is not defined? If so, make sure that in the generated native\www\index.html, the following line uses the correct IP address where the dojoLib is located, typically it is the same address as Worklight Development Server (Eclipse..):

<script data-dojo-config="isDebug: false, async: true, parseOnLoad: true, mblHideAddressBar: false" src="http://192.168.1.103:9988/dojoLib/test4/test/windowsphone8/dojo/dojo.js" type="text/javascript"></script>

Once I've corrected the address used (I changed it in Visual Studio while the project was opened there), the app then rendered correctly. In the case of Windows Phone 8, theme is basically black background and white text...

In the RPE while in Worklight Studio, it uses some other theme.

See if that helps in any way.

Upvotes: 0

Related Questions