-
August 4th, 2009, 08:31 AM
#1
save data on client before send to server
hi
in my webApp user input some value to fields and after all press send to send data to server,i wanna save data in client before sending to server.how can i do this ?
Thanks :O)
-
August 4th, 2009, 01:33 PM
#2
Re: save data on client before send to server
Well you already have a solution in your question itself. Just save it on the client end too the same way you are saving at the server. How would that be?
Jokes apart, this is too generic question to answer. What kind of application are you working on and how is the data stored on the server side? When you say server, do you mean a database server? Answers to these questions will help us in helping you.
-
August 4th, 2009, 11:00 PM
#3
Re: save data on client before send to server
client is a user who see the web pages,and the server is host of web application with MSSQL server database.
i want to save data ( about 20 TextBox values ) in client like XML format or.. then send data to server.
guide me please.
-
August 5th, 2009, 01:48 PM
#4
Re: save data on client before send to server
What is the need of that? Are you trying to add some extra kind of logic there?
Anyways, in order to do that, you will have to use Client Side javascript and I am sure it would not be an easy task. You will have to ask the permission form the user to write to the user's system. I have never done it and I don't see a use of doing it when at the end the data would be saved at the Server side.
-
August 5th, 2009, 11:07 PM
#5
Re: save data on client before send to server
as you know,the most thing that some people prefer using Win App instead of Web App is avoiding data lost.for example if you fill some field and after all that wanna send data to server,connection lost,all data will lost,but if you save them and send,if data lost,its available to load them to user ..
-
August 6th, 2009, 01:45 PM
#6
Re: save data on client before send to server
I am not sure what you are talking about. Those days are long gone when we used to have Network connections that break quite often. I have been working on Web Apps for more than 6 years now and don't know of a single instance where a user complained that his data was lost because of a bad network connection.
-
August 8th, 2009, 07:27 AM
#7
Re: save data on client before send to server
I think you are trying to save the data so that if the browser closes by any means, you want to retreive.
I would suggest 2 ways,
1) try cookies
2) try session
But i dont know how to do it exactly using Java script on the client.
Good luck
Last edited by RajWolf; August 8th, 2009 at 07:33 AM.
Reason: to be more specific
-
August 11th, 2009, 06:19 AM
#8
Re: save data on client before send to server
session is server side base and will be expired when user close explorer.
better choice is cookie but it can be disabled bu users how ever these days most users have it enabled.
Please rate my post if it was helpful for you. Java, C#, C++, PHP, ASP.NET
SQL Server, MySQL
DirectX
MATH Touraj Ebrahimi
[toraj_e] [at] [yahoo] [dot] [com]
-
August 12th, 2009, 06:44 AM
#9
Re: save data on client before send to server
Cookies seems like the way to go as suggested above, but has size limitations.
But you'll not be allowed to save data undiscriminately on the client as it is a huge security risk. You're much better off to program your web solution in a manner where you're not relying on, for example, session data, so the loss of "connection" is not a problem.
If you want to save the data if the user turns off the computer or similar, you shouldn't use a web solution.
Personally - I think you're trying to solve a problem which doesn't exists. And if it exists, I think you should look at your design for the solution once more, because then something is amiss there.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|