As I am new to smart client , I start with a basic example of creating a button using smart client. I followed below Steps:
1.Created a directory scripts in WEB-INF folder. This directory contains all the JS which are required for Smart Client.
2. Created a jsp which is importing all the smart client JS. Code is like this
When I started the server try to access the page then I am not able to see any button . I am getting a JS error stating isc is undefined.
Am I missing something ? Plz guide me.
1.Created a directory scripts in WEB-INF folder. This directory contains all the JS which are required for Smart Client.
2. Created a jsp which is importing all the smart client JS. Code is like this
Code:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" language="javascript" src="scripts/ISC_Core.js"></script>
<script type="text/javascript" language="javascript" src="scripts/ISC_Foundation.js"></script>
<script type="text/javascript" language="javascript" src="scripts/ISC_Containers.js"></script>
<script type="text/javascript" language="javascript" src="scripts/ISC_Grids.js"></script>
<script type="text/javascript" language="javascript" src="scripts/ISC_Forms.js"></script>
<script type="text/javascript" language="javascript" src="scripts/ISC_DataBinding.js"></script>
<script type="text/javascript" language="javascript" src="scripts/load_skin.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
Hello
<script>
isc.Button.create({
title: "Smart Button",
width: 200
})
</script>
</body>
</html>
Am I missing something ? Plz guide me.
Comment