Archive for the ‘Web Runtime’ Category

Oct

26

Accessing RESTful WebServices with JavaScript

By marcos

Introduction
The most used architecture to develop WRT widgets is shown in the below picture. There is a server that provide some data and the widget consumes that data. The communication between the widget and the server application can be done in a restful web service. This post is about the definition of a restful web [...]

Sep

3

Static GoogleMaps® API in JavaScript

By artur

Hey,
thinking in make better the work of the programmers I create an API to retrieve static maps using the GoogleMaps® system. So, in this way, your work can be so much easy using this API made for JavaScript.
To get this API click here and to see the API documentation click here.
Now, I’ll show you some [...]

Aug

10

Problems with WRT variables

By artur

Hi folks,
developing here in a project I discovered a “bug” in the WRT. When you use the window.location, the variables “device”, “menu” and “widget” are lost. So you cannot use the services for example or persist information using preferenceForKey.
The solution was use the tag iframe.
<iframe src=”page.html”></iframe>

So when you need to use the device , menu [...]

Jul

9

How to retrieve contacts informations

By artur

What’s up?
A feature from the S60 5th Edition is to retrieve the contacts information using WRT. You can get names, phone numbers, e-mail…
I will show how to get these information and use however you want. In the HTML file, I put a tag span to show the result.
<span id=result></span>
You can put also a field to [...]

May

12

A Simple Game Using JavaScript

By artur

Hi yourself,
here I’ll show how to create a simple game for WRT using just JavaScript commands.
First, the idea of the game. It’s a puzzle, with 9 slots, but one slot is empty. When you push a slot, if one of the adjacent slots is empty, they trade their places.

You create a WRT Project and in [...]

Apr

22

How to access GPS location using S60 5th Edition API

By artur

In the application showed in this post you can see how to develop a location based rss reader using WRT with the position of the device (using the new S60 5th edition WRT API).
First of all, let’s see the problem:
Think you’re in an environment where news are provided as a rss file. This news could [...]

Dec

1

Accessing Car Information Using The Mobile Phone

By artur

Hi everyone, how do you do?
Here, I will explain an idea we had, how the problem was appearing and how we solve these problems.
The idea consists in access the informations about any car (actually, we have done for 11 brands) retrieving data from a bluetooth communication layer between the OBD II server in the car [...]

Nov

23

How to do an image gallery in WRT

By marcos

In this post we’ll show you how to do an image gallery using the WRTKit and the new S60 5th edition WRT API.
Extending WRTKit
In this post was showed how the developer can extend the WRTKit and to create new UI components. To do the image gallery, let’s to do the same thing. The image gallery [...]

Nov

14

How to create a new UI component in the WRTKit

By marcos

The WRTKit is a complete library of JavaScript code, CSS style rules and graphical elements that are required to implement the kind of sophisticated, customizable, application-like user interfaces. It gives widget developers an easy way to create high quality user interfaces without having to worry about the problems that would otherwise plague their widgets. To [...]

Sep

4

Reading a XML file in WRT

By artur

Hello,
that post aims to show an example of a XML’s reader in WRT.
The example we’ll use is a prototype of a Widget for a cinema service which is used to show the movies in exhibition for that week.
First, it’s necessary to make a function that creates a XMLHttpRequest.

/**
Reading a XML file in WRT
WRT Effort - [...]