?
Solved

Offline Interactive Touch screen Webapp

Posted on 2014-11-03
6
Medium Priority
?
125 Views
Last Modified: 2015-01-02
I have a touch screen interactive display and I want to create a simple interactive program.

Basically the system will have 4 buttons and each button will either play a video or show an image/slide with the ability to back to the home screen.

The system needs to run on a windows computer and ideally we be written in HTML5.

The issue i'm having is knowing how to make it offline.
The reasons for making it offline:
- Making it run as fast as possible
- Internet cannot be relied on.
- playing back videos locally will be faster than via the web.

The ways ive been looking at:
- local webserver on the interactive pc
- caching the webapp locally
- just running the html locally (although i think running javascript locally may cause a few issues).

The html5 webapp will be using javascript / jquery

Could someone please offer some better ideas??

Thanks

Steve
0
Comment
Question by:Steve Tinsley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 58

Expert Comment

by:Julian Hansen
ID: 40419588
The issue i'm having is knowing how to make it offline.
Why an issue?

Just code the html to reference a relative resource and open the file directly with a web browser.

We do this all the time - you don't have to have a web server serve the file for it to work.
0
 
LVL 58

Accepted Solution

by:
Julian Hansen earned 2000 total points
ID: 40419603
So you have something like this

index.html
        /images
            some images
        /videos
           your videos
        /css
            your stylesheet
        /js
            your javascript

In the html file
<!doctype html>
<html>
<head>
...
<script src="js/jquery.js"></script>
<script src="js/yourscript.js"></script>
...
<link rel="stylesheet" href="css/styles.css" />
...
</head>
<body>
...
<a href="#video1">Button 1</a>
...
</body>
</html>

Open in new window


Then you have your javascript that when the <a> is clicked it plays the video using a relative location i.e

Now just load index.html directly in the browser as

file://path/to/index.html

Open in new window




videos/video1.mpg

Open in new window

0
 

Author Comment

by:Steve Tinsley
ID: 40427126
Do you not find that the browser shows a security error because of this??
0
 
LVL 58

Expert Comment

by:Julian Hansen
ID: 40427190
Why would it?
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question