Click here to Skip to main content
15,885,910 members
Articles / Web Development / XHTML

Creating a Database-Driven Vista Gadget

Rate me:
Please Sign up or sign in to vote.
4.27/5 (5 votes)
10 Dec 2007CPOL7 min read 65.3K   1.2K   37  
his article demonstrates how to create an auto-refreshing Vista SideBar Gadget that pulls data from a database.
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>SQL Anywhere 10 Sidebar Demo</title>
        <script type="text/javascript" src="gadget.js"></script>
        <link type="text/css" rel="Stylesheet" href="gadget.css" />
    </head>
    <body onload="loadMain()">
        <g:background src="img/gadget.png">
            <div class="content">
                <div class="title">Database Stats</div>
	        <div id="stats">
                </div>
                <div class="title">Customer List</div>
                <div id="data">
                </div>
                <div class="nav">
                    <table class="navbar">
                        <tr>
                            <td>
                                <img id="upButton" src="img/buttonUp_Off.png" alt="Previous Page" class="button" onclick="pageUp()" />
                            </td>
                            <td id="page">
                                0/0
                            </td>
                            <td>
                                <img id="downButton" src="img/buttonDown_Off.png" alt="Next Page" class="button" onclick="pageDown()" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </g:background>
    </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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Other University of Waterloo
Canada Canada
I'm a student at the University of Waterloo in Ontario, Canada. I'm currently pursuing my undergraduate degree in Computer Engineering, and expect to graduate at the end of April 2009. My interests include web development, database-driven applications, and digital hardware design.

Comments and Discussions