×
Namespaces

Variants
Actions

Creating a launcher for a web application in Symbian Web Runtime

From Nokia Developer Wiki
Jump to: navigation, search

This code snippet shows how to make a web app into a "mobile app", using Symbian Web Runtime the launch the web app in the browser.

Article Metadata
Code ExampleTested with
Devices(s): Nokia N97
Compatibility
Platform(s): S60 5th Edition
Article
Keywords: window.location
Created: tapla (06 Oct 2009)
Last edited: hamishwillee (04 Oct 2012)

Source: HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>WRT Stub</title>
</head>
<body>
</body>
 
<script type="text/javascript" charset="utf-8">
// Ensure that the softkeys are shown even though by default they
// should be
window.menu.showSoftkeys();
 
// Launch the web application
location.href = "http://url.to.your.webapp";
</script>
</html>

Postconditions

The web application is launched from WRT.

Supplementary material

This code snippet is part of the stub concept, which means that it has been patched on top of a template application in order to be more useful for developers. The version of the WRT stub application used as a template in this snippet is v1.2.

This page was last modified on 4 October 2012, at 08:38.
71 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×