Crafting the SAPO Campus platform, a thousand pixels at a time.
Search
Latest posts

High Performance Javascript - dealing with JSON

No Widget is an Island

Designing Email - Part II

Designing Email - Part I

The amazing "widget" object

The Facebook Witch Project

SAPO Campus keynote from OSL Unesco demonstration session

SAPO Campus session at the UNESCO OSL Seminar

SAPO Campus - Eden Seventh Open Classroom Conference

SAPO Campus leaflet for the UA freshmen

Archive

Janeiro 2011

Novembro 2010

Fevereiro 2010

Dezembro 2009

Novembro 2009

Outubro 2009

Setembro 2009

Julho 2009

Maio 2009

Abril 2009

Março 2009

Fevereiro 2009

Dezembro 2008

Novembro 2008

Outubro 2008

Setembro 2008

Quarta-feira, 11 de Março de 2009
Visualization on widgets
Due to the concept of the SAPO Campus platform, there's a strong widget presence. Based on this, I made a few integration tests of Google's Visualization API with widgets built using the UWA. This combination is used on the assessment's results visualization, allowing the users to have visual information about several aspects of their participation.

In these tests I decided to create an example that loads dynamic data from a database. The approach taken is based on two files, a HTML file where I have all the Javascript code that generates the widget and a PHP file that makes the database query and the data conversion to JSON.

And you ask, how do we load the data into the HTML file? Simple, using the UWA's API method UWA.Data.getJson. This method simply calls the PHP file and then converts the data received in JSON format into a Javascript object. Then, all I have to do is build my visualization based on Google's Visualization API methods, which results in this:



Now it's time to keep on working, because there's still a lot to do!
tags:

Published by bruno-abrantes às 01:53

3

De csantos a 11 de Março de 2009 às 10:42
Nice :)


De Bruno Abrantes a 14 de Março de 2009 às 00:30
É bom ver que já há coisas a mexer no lado das widgets. E é óptimo ver que escolheste tratar os dados em JSON. Ouvi dizer qualquer coisa sobre umas miúdas que ouviram falar em JSON e que se meteram em trabalhos :).


De Assessment Visualization concept | sapocampus a 7 de Setembro de 2010 às 13:01
[...] a previous post I talked about data visualization on widgets, showing a few tests that were being conducted, but [...]


Post a comment

About us
Janeiro 2011
Dom
Seg
Ter
Qua
Qui
Sex
Sab

1

2
3
4
5
6
7
8

9
10
11
12
13
14
15

16
17
18
19
20
21
22

23
24
25
26
27
28
29

30
31


tags

todas as tags

subscrever feeds

RSSPosts

RSSComentários

RSSComentários do post