Reference : http://javadeveloper.asia/grails-ajax-tutorial-remotelink-tag/
Sunday, 29 June 2014
Wednesday, 25 June 2014
Draggable div within the table
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Draggable - Default functionality</title>
<link rel="stylesheet" href="jquery-ui.css">
<script src="jquery-1.10.2.js"></script>
<script src="jquery-ui.js"></script>
<style>
#draggable { width: 150px; height: 150px; padding: 0.5em; }
</style>
<script>
$(function() {
$( "#draggable" ).draggable({ appendTo: "body", containment: "table", cursor: "crosshair" });
});
</script>
</head>
<body>
<table style="height:500px;width:500px;" border="2" id="table">
<tr><td>
<div id="draggable" class="ui-widget-content">
<p>Drag me around</p>
</div>
</td></tr>
</table>
</body>
</html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Draggable - Default functionality</title>
<link rel="stylesheet" href="jquery-ui.css">
<script src="jquery-1.10.2.js"></script>
<script src="jquery-ui.js"></script>
<style>
#draggable { width: 150px; height: 150px; padding: 0.5em; }
</style>
<script>
$(function() {
$( "#draggable" ).draggable({ appendTo: "body", containment: "table", cursor: "crosshair" });
});
</script>
</head>
<body>
<table style="height:500px;width:500px;" border="2" id="table">
<tr><td>
<div id="draggable" class="ui-widget-content">
<p>Drag me around</p>
</div>
</td></tr>
</table>
</body>
</html>
Sunday, 22 June 2014
Wednesday, 18 June 2014
Friday, 13 June 2014
Groovy Grails
Reference : https://www.youtube.com/watch?v=EPbvBf2bjXw
https://grails.org/Quick+Start
How do you change the default homepage in a Grails application?
How to Apply a Commercial Bootstrap Theme To Your Grails Application
Simplified Spring Security with Grails
http://spring.io/blog/2010/08/11/simplified-spring-security-with-grails/
Grails spring security defaultTargetUrl going wrong path
http://stackoverflow.com/questions/24112632/grails-spring-security-defaulttargeturl-going-wrong-path
Thursday, 5 June 2014
Wednesday, 4 June 2014
Customized Google Graph
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Year', 'Sales', 'Expenses'],
['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]
]);
var options = {
title: 'Company Performance',
vAxis: {title: 'Year', titleTextStyle: {color: 'red'}},
colors:['green','yellow'],
backgroundColor : '#AA1122'
};
var chart = new google.visualization.BarChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_div" style="width: 900px; height: 500px;"></div>
</body>
</html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Year', 'Sales', 'Expenses'],
['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]
]);
var options = {
title: 'Company Performance',
vAxis: {title: 'Year', titleTextStyle: {color: 'red'}},
colors:['green','yellow'],
backgroundColor : '#AA1122'
};
var chart = new google.visualization.BarChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_div" style="width: 900px; height: 500px;"></div>
</body>
</html>
Subscribe to:
Posts (Atom)