LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-15-2015, 02:25 PM   #1
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Rep: Reputation: 57
Easiest browser technology that can do the following task


Wanting to use a browser offline and have it load a local file (.html or .asp or ...) where the file contains scripts written in a language that is yet to determined.

The scripts read items in a todo list stored locally in a format that is yet to be determined.

The scripts facilitate editing individual items, or changing the order of the items instantly. For example you press Control-Up and the selected item goes one position up.

Can this be done with just cookies and javascript?

Other ideas how to do it?

This must work on PC's and old symbian smartphones like the Nokia E71 and future blackberry smartphones. Maybe android ones too. Therefore an SQL database would rather be avoided if possible, unless it works in all the above platforms.

Crucial: it must all work offline.

Last edited by Ulysses_; 10-15-2015 at 04:01 PM.
 
Old 10-15-2015, 02:28 PM   #2
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Note: a todo item may be huge, with lots of information in many lines. Can thousands of cookies be used?

Appreciated if the text of the todo items can be read with a text editor, ideally with one todo item being stored in each file if possible.

Appreciated also if the order of todo items can be stored in the date stamps of the files, and if each file can be named after the first words of its content. The idea being that you can view the todos in order with a file manager.

Last edited by Ulysses_; 10-15-2015 at 02:51 PM.
 
Old 10-15-2015, 02:40 PM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Firefox does this for me. As far as scripts, as long as those are saved locally, it can all be done offline. Nearly any web browser will do this. I suspect that you'll just get a lot of answers biased by the preferences of the responder.
 
Old 10-16-2015, 03:08 AM   #4
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
I think there are many obstacles because of security-driven limitations in scripting capabilities. You just can't do whatever you want with local files. Maybe DOM storage can do it? Cookies?

Last edited by Ulysses_; 10-16-2015 at 03:10 AM.
 
Old 10-19-2015, 11:40 PM   #5
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
For the reasons you mention, the simplest solution is to basically download a calendar (browser+javascript) app with a jazzy front end and storing the todo list as a cookie and VOILA ..

Next read the script carefully, understand the structure of the cookie data and write routines (a) export the cookie data to a file and (b) import it from the file. You would need a web server for this (can reside on localhost).

OK
 
Old 10-20-2015, 09:04 AM   #6
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Are you aware of an actual calendar app that stores todo items in cookies?

Note I have over a thousand todo items to store, a single cookie is not big enough at 4 kB.
 
Old 10-21-2015, 03:52 AM   #7
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Are you aware of an actual calendar app that stores todo items in cookies?
YES

There used to be a site called as javascriptkit.com or javascripcode.com or something that had a lot of downloadable examples and entire routines and html code. I definitely saw one on this. I will download it over the weekend, check and get back.

Obviously cookies are no substitute for a database and it are not portable

OK

Last edited by AnanthaP; 10-21-2015 at 03:53 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Python - Problems when trying to run a task at log on task on windows doomloard Programming 2 06-18-2011 04:31 PM
launching a task from cli and "divorcing it from terminal task wufo Linux - General 6 02-11-2011 11:32 AM
Task bar no longer shows task Richard Rahl Linux - Newbie 3 04-12-2010 09:39 AM
Applying computer/linux technology to InfraRed technology satimis Programming 2 02-02-2005 04:06 AM
mozilla browser disappear into task bar bwall Linux - Newbie 1 04-05-2003 02:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration