2

I have requirement of a small web application, which has to collect some data like customer information, customer's job details etc. I just want to process the data at client side and after that send that data to server side using ajax call, to store that in some DB e.g. Sql Server. I decided to go with HTML5, JQuery at client side, at server side I will have web service to interact with my database (most probably WCF or ASP.NET web services), the web services will be consumed by JQuery AJAX calls. To expose services I will use mono. Now my questions are,

How should I create a master page or layout page with only html, javascript/jquery and css to persist common things like navigation menu etc.?

How to load different pages with master page menu so the Url is bookmark-able?

Is it possible to submit the html form at client side only? so when user click submit button, the page will be submitted to a client side file and data will be processed by that file, if needed will be saved to DB with ajax call to web service? if this is possible, how to handle submitted form using a jquery file?

It would be great help if anyone could suggest about the approach/technology/way to proceed, if I should change my approach or if any improvements i can make by using any other open source technology. I think, I asked lot of things, but small suggestions and directions would also be great help.

10
  • 7
    How are you gonig to make web services with "no web technology"? Commented Sep 19, 2012 at 20:20
  • Do you truly want no server-side technology? Or do you simply want to not store any data server-side? You can store data client-side and still use stuff on the server, such as includes and minification. Commented Sep 19, 2012 at 20:20
  • 2
    Where will you store the data exactly? Commented Sep 19, 2012 at 20:20
  • 1
    You're going to have trouble persisting data. Commented Sep 19, 2012 at 20:20
  • 1
    Also, many browsers will object to using cross-domain AJAX calls. And they will have to be cross-domain in your current setup, because you can't run the web services on your own server. Commented Sep 19, 2012 at 20:23

1 Answer 1

1

There are some old sites I've worked on that use iframes to simulate master pages (master pages didn't exist yet).

You should be able to do something similiar

You could also look into using a front end javascript framework like backbone.js or knockout. There's allot of neat ones out there.

EDIT

After thinking about it for a bit, I think knockout.js might work best for you.

Sign up to request clarification or add additional context in comments.

4 Comments

He's not going to be able to persist data.
That's a very brittle solution. What happens when they clear cookies?
I think knockout.js is good suggestion, i would try to use it. though I need to explore it.
Knockout.js would be a great way to do this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.