Click here to Skip to main content
15,897,371 members
Articles / Web Development / XHTML

Creating a Database-Driven Google Gadget

Rate me:
Please Sign up or sign in to vote.
4.57/5 (13 votes)
23 Dec 2007CPOL6 min read 48.6K   716   48  
This article demonstrates how to create an auto-refreshing Google Desktop Gadget that pulls data from a database.
<view height="300" width="180" onopen="loadMain();">
  <div height="300" name="content" opacity="225" width="180" x="0"
    y="0" background="#221122">
    <div height="50" name="stats" width="170" x="5" y="50" autoscroll="true"
      background="#332233"/>
    <label height="32" name="label1" width="180" x="0" y="0" align="center"
      bold="true" color="#FFFFFF" size="12" valign="middle"
     >SQL Anywhere 10
    </label>
    <label height="18" name="label2" width="170" x="5" y="32" bold="true"
      color="#FFFFFF" valign="bottom">Database Statistics
    </label>
    <div height="154" name="data" width="170" x="5" y="118" autoscroll="true"
      background="#332233"/>
    <label height="18" name="label3" width="170" x="5" y="100" bold="true"
      color="#FFFFFF" valign="bottom">Customer Table Data
    </label>
    <label height="16" name="page" width="56" x="64" y="277" align="center"
      color="#FFFFFF">0 / 0
    </label>
    <button height="16" name="down" width="16" x="131" y="278" onclick="pageDown()"
      downImage="img\buttonDown_Off.png" image="img\buttonDown_Off.png"
      overImage="img\buttonDown_Off.png"/>
    <button height="16" name="up" width="16" x="35" y="278" onclick="pageUp()"
      downImage="img\buttonUp_Off.png" image="img\buttonUp_Off.png"
      overImage="img\buttonUp_Off.png"/>
  </div>
  <script src="main.js" />
  <script src="xml.js" />
</view>

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