|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Calculator2Test.aspx.cs"
Inherits="TestProject.Calculator2Test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body style="background: yellow;">
<form id="form1" runat="server">
<div style="width: 200px; height: 100px; display:block; background-color: Green">
<!-- Here's where we're going to load our widget into -->
<div id="calc"></div>
</div>
</form>
<script type="text/javascript" src="<%= "http://" + Request.Url.Host + "/widgets/js/jquery-1.3.2.min.js" %>"></script>
<script type="text/javascript" src="<%= "http://" + Request.Url.Host + "/widgets/js/calculator2.js" %>"></script>
<script type="text/javascript">
$(document).ready(function() {
Widgets.Calculator2($("div#calc"), '<%= Request.Url.Host %>');
});
</script>
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Kirill Balandin is a professional software developer, software architect and an accomplished leader of small teams of software developers. He lives in the Greater Los Angeles area, CA. He is an unofficial Microsoft technology evangelist.