/    Sign up×
Community /Pin to ProfileBookmark

Creating an external database with Javascript

Hi,

I have kind of a general question. I want to use Internet Explorer, HTML, and Javascript to write some simple codes on my computer instead of using Java and a compiler. My problem is, I would like to record and extract information from some kind of data source using only javascript – a database that does not involve any other applications. Is this possible? I don’t plan on setting up a webpage or anything, all my coding would be used locally on my computer.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@KorApr 17.2004 — Yes, you may do that. See a basic example in attachment

  • - use external JS files.

  • - use a separate JS file vor variables only (database.js in my example)


  • You may modify on will (add, delete, modify values) on a single file, database.js. The chages will affect all the files. The js file can be open and modified with a simple ASCII editor as Notepad. The code is enough intuitive to be modify by anyone with no javascript knowledges. Take care only at Arryay structure (incremental values, the semicolon at the end of the lines).

    [upl-file uuid=6fe60eb6-5aed-495a-bd68-b4fc35c5639d size=2kB]example.zip[/upl-file]
    Copy linkTweet thisAlerts:
    @databaseauthorApr 19.2004 — Thank you Kor! This is really helpful. One more question: Is it possible, using a form, to write and store data to the database Javascript file. I'm designing a library catalog, and instead of entering the book information into HTML or Javascript, ideally I would like to use a form page to collect the data (and update it). Then I would like to manipulate the data by calling for it with Javascript (in an HTML doc) and possibly another form page.
    Copy linkTweet thisAlerts:
    @KorApr 20.2004 — nope

    You can not store (dynamically) data using java script (except, for some particular cases, if using cookies). A server-side application is the best choose.
    Copy linkTweet thisAlerts:
    @TheBearMayApr 20.2004 — As long as you're limiting to a local application, you may want to look at:

    http://forums.webdeveloper.com/showthread.php?s=&threadid=26587
    ×

    Success!

    Help @database spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.16,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...