top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Webstorage APIs or JS objects in browsers?

+1 vote

Which option is better for local storage at browsers? Why to use webstorage APIs when same can be achieved through Javascript objects?

posted Jul 12, 2013 by Suyash Tripathi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

There are advantages with Web Storage APIs. They offers more storage capacity (usually 5MB) but cookies allow only about 4KB. The data stored in the local storage area does not expire and spans accross different tabs and/or windows. The Web Storage specification is better designed and provide more secure way of storing data on the client.

answer Jul 12, 2013 by Sudheendra
Similar Questions
+3 votes

I am trying to debug a javascript file, which is used in a .jsp file. When I debug the using F12 in IE10 I did not find that particular file in the debugger tool.

Can anybody please tell, why that particular file is not showing even it is present in project folder location?

+1 vote

History / Context: Display the html page from node.js

Problem Statement: The database is connected, but when i am running it in local host it is showing 'Cannot GET'.

Expected Result: It should load the html page from node.js

Present Output: Database is connected but cant load the page of html

Attach Code:


var express = require('express'),
    filter = express(),
    server = require('http').createServer(filter),
    io = require('').listen(server),
    mongoose = require('mongoose');

server.listen(7550, '');
console.log('Server running at');

mongoose.connect('mongodb://localhost/filter_CheckBoxSchema', function (err) {
    if (err) {
        console.log('What happened!!!');
    } else {
        console.log('Connected to mongodb!');

var filter_CheckBoxSchema = mongoose.Schema({
    category: { name: String, type: Boolean, default: false },
    created: { type: Date, default: }

var Filter = mongoose.model('Filter', filter_CheckBoxSchema);
filter.get('example.html', function (req, res) {    
    new Filter({
        type: req.body.gender,

    }).save(function (err, doc) {
        if (err) {
            throw err;
            res.send('Successfully inserted!!!');


            Please enter your details
        <h3>Please enter your details</h3>
        <p>Please register below!!!</p>
        <form action="filter.js" method="POST">
            Name: <input type="text" name="Name" />
            <br /><p></p>
            <br />
            <input type="radio" name="gender" /> Male
            <br />
            <input type="radio" name="gender" /> Female
            Interest: (Check all that apply)
            <input type="checkbox" name="breakfast" /> Breakfast
            <br />
            <input type="checkbox" name="Lunch" /> Lunch
            <br />
            <input type="checkbox" name="Evening Snacks" /> Evening Snacks
            <br />
            <input type="checkbox" name="Dinner" /> Dinner
            <br />
            <input type="submit" name="submit" value="Register!!!" />
+3 votes

which software (html/css/js..etc etc) is required to create website like or (DIY: do it yourself).
for Frontend and backend both??