EE296 Webbased Truth Table Program - PowerPoint PPT Presentation

About This Presentation
Title:

EE296 Webbased Truth Table Program

Description:

Our project will be written mostly in JavaScript, which is an ... for netscape, some old versions of firefox, and opera, and onkeydown for most other browsers. ... – PowerPoint PPT presentation

Number of Views:300
Avg rating:3.0/5.0
Slides: 14
Provided by: bryan7
Category:

less

Transcript and Presenter's Notes

Title: EE296 Webbased Truth Table Program


1
EE296 Web-based Truth Table Program
  • Jason Axelson
  • Bryant Komo

2
Brief Overview
  • We are doing a web based version of truth_table
    which was used in EE260 to create truth tables
    and create hex files for the eprom.
  • Our project will be written mostly in JavaScript,
    which is an interpreted scripting language for
    the web
  • We will also use cgi which is a script (we're
    going to use C, but many other languages are
    possible) that runs on the server.
  • Our program will be better than truth_table.

3
Overall Block Diagram
4
The Interface The Website
5
Assembling the HTML
  • For each row
  • Add HTML for row label
  • Add HTML for input cells
  • Add HTML for the border cell
  • Add HTML for output cells
  • Write HTML to inside of a div tag

6
Manipulating Rows
  • If row is beyond table, add line at end of table
  • save table to temp
  • add row to bottom
  • redraw table with new height
  • open part of table that is above the row being
    added
  • open bottom half of table shifted down one

7
Events
  • Uses onkeydown to capture key press.
  • Uses onkeypress to capture key press.
  • needs to use onkeypress for netscape, some old
    versions of firefox, and opera, and onkeydown for
    most other browsers.
  • Uses onclick to capture mouse clicks.
  • //Some browsers need to use onkeydown, some need
    to use onkeypress
  • if(isKeyDown)
  • table_html "onkeydown'return
    checkForKey(event, this)' "
  • else if(isKeyPress)
  • table_html "onkeypress'return
    checkForKey(event, this)' "

8
Browser Detection
  • var browser navigator.userAgent
  • if(browser.indexOf("Firefox/1.0.2") ! -1)
  • isFirefox1_0_2 true
  • isKeyPress true
  • else if(browser.indexOf("MSIE") ! -1)
  • isIE true
  • isKeyDown true

9
What Remains to Be Done
  • Work on cgi interface to bool and wiliki/spectra
    accounts
  • Be able to convert to hex file
  • Be able to save across sessions somehow.
  • Flesh out interface

10
Basic Timeline for Completion
  • Get Bryant's website up
  • Don't know how long this will take
  • Understand necessary parts of truth_table code
  • Get exporting to .HEX working
  • Complete Error Checking module
  • Open/Save files
  • Usability testing.
  • Debug
  • Interface to bool.

11
Gantt Chart
12
Problems
  • The website only worked for certain browsers and
    certain versions of browsers
  • The way we named the array cells were a little
    difficult to work with
  • Apparently, CGI has a small limit on its buffer
    size

13
Problems We Expect
  • Compatability issues
  • Interfacing to Bool/Truthtable program
  • Time
Write a Comment
User Comments (0)
About PowerShow.com