ASP
  Home arrow ASP arrow Calorie Counter Using WAP and ASP
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP

Calorie Counter Using WAP and ASP
By: Tim Haight
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 22
    2004-02-23

    Table of Contents:
  • Calorie Counter Using WAP and ASP
  • Hosting
  • Index.wml
  • Application Deconstruction: Search.asp

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Calorie Counter Using WAP and ASP


    (Page 1 of 4 )

    Many people are more conscious of what they eat than ever before. (I count myself as a member of that club). The biggest challenge faced by many in the quest for a healthier lifestyle is the ubiquitous “lack of time” excuse. To help out, I have created a simple WAP application that allows for one to search for different foods and get related nutritional information, based on data from the American Diabetes Association. In this article, I’ll go over the creation of the application, and in the process, make you a little bit more health conscious.

    *Note: For the purpose of this article, I used a WAP emulator, located at http://tagtag.com. I also tested the application using various emulators found at http://www.gelon.net.

    Before we begin, go ahead and enter the following URL on your WAP enabled phone: http://home.1asphost.com/twhaight/index.wml. This is a live sample of the project at hand. You should see something similar to the image below:

    WAP

    Test it out! Enter the food name (even part of a food item) in the Food box, and click the Submit Food link. The application will return information about every food in the database with that search criteria.  For this example, I entered apple in the Food box, and got the results below.

    WAP

    As you can see, it returned several foods containing apple in it.  For canned apple juice, a 1 cup serving contains 0 grams of fat, 115 calories, 29 rams of carbohydrates, and 0 grams of cholesterol.

    If you arrow down, you would see the following information on raw apples:

    Description: APPLES, RAW, PEELED, SLICED
    Serving: 1 CUP
    Fat: 0
    Calories: 65
    Carbs: 16
    Cholesterol: 0

    This application is composed of the following elements:

    1. Web hosting
    2. An Access database named Food.mdb
    3. Index.wml – the main WAP page
    4. Search.asp – contains the SQL query and results page
    5. Adojavas.inc – contains the ADO constraints

    More ASP Articles
    More By Tim Haight


     

    ASP ARTICLES

    - Central Scoreboard with Flash and ASP
    - Calorie Counter Using WAP and ASP
    - Creating PGP-Encrypted E-Mails Using ASP
    - Be My Guest in ASP
    - Session Replacement in ASP
    - Securing ASP Data Access Credentials Using t...
    - The Not So Ordinary Address Book
    - Adding and Displaying Data Easily via ASP an...
    - Sending Email From a Form in ASP
    - Adding Member Services in ASP
    - Removing Unconfirmed Members
    - Trapping HTTP 500.100 - Internal Server Error
    - So Many Rows, So Little Time! - Case Study
    - XDO: An XML Engine Class for Classic ASP
    - Credit Card Fraud Prevention Using ASP and C...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT