Friday June 01, 2007
JavaScript Everywhere - Detailed Instructions
These are detailed instructions for this screencast.
Top
Right Column', clear the text and drag/drop Yahoo Calendar widget.Right Column', clear the text and drag/drop BlockList.value : [
{title : 'jMaki Project Home', link : 'https://ajax.dev.java.net',
description : 'Where to go for the latest jMaki.' },
{title : 'jMaki Widgets Home', link : 'https://widgets.dev.java.net',
description : 'The source for the latest jMaki widgets.' },
{title : 'jMaki-Charting Home', link : 'https://jmaki-charting.dev.java.net',
description : 'Enables complex charts rendered on the client in any modern
browser.' }
]service : "/xhp?id=rss"content: 'Some Content'" with "url:
'/tab1/show'".content: 'Tab 2 Content'" with "url:
'/tab2/show', iframe: true".tab1.
In CSS layout, scroll to the bottom and select "No CSS style". This will
automatically create a controller tab1.js which can be seen in
the controller sub-tree. This demonstrates that a new controller is
automatically created for every newly created view.'Months' to
lineChartModel.xAxisTitle.xAxis.labels to
lineChartModel.xAxis.'Temperature' to
lineChartModel.yAxisTitle.yAxis.tickCount from 3 to 10.value.data to
lineChartModel.chartData.controller', 'tab1.js', replace model definitionmodel = {
name = "app name"
};
var lineChartData = module.application.generateChartData();
lineChartModel = { xAxisTitle: "Month",
yAxisTitle: "Bug Count",
xAxis: "['November',
'December', 'January', 'February', 'March', 'April']",
chartData: lineChartData
};module', 'application.js', add the following code after
onShutdown() function:this.generateChartData = function() {
var chartData = [];
var chartDataRow = this.getData('red', 'P1');
chartData.push(chartDataRow);
chartDataRow = this.getData('orange', 'P2');
chartData.push(chartDataRow);
chartDataRow = this.getData('yellow', 'P3');
chartData.push(chartDataRow);
chartDataRow = this.getData('green', 'P4');
chartData.push(chartDataRow);
return chartData;
}
// get bug data for a priority and assign a color to it
this.getData = function(color, priority) {
var chartDataRow = {};
chartDataRow["color"] = color;
var
priorities = [];
for (var k=180;k > 29; k=k-30) {
var val = new Packages.mypkg.BugQuery().getNewBugList(priority,
k);
priorities.push(val);
}
chartDataRow["values"] =
priorities;
return chartDataRow;
}Technorati: javaone jmaki phobos glassfish web2.0
Posted by Arun Gupta in web2.0 | Comments[4]
|
|
|
|
|
Today's Page Hits: 1269
Total # blog entries: 1002