Click here to Skip to main content
15,876,991 members
Please Sign up or sign in to vote.
4.33/5 (6 votes)
See more:
Hello Everyone,
I am developing an application for Hardware (caddo) with the help of HTML and javascript. this is a programmable hardware and has a memory of only 512kb. I want to store last five input values of voltage as well current. how i can store and use only last five value with the help javascript and XML in html page.
remember we cant use any dynamic language like java, php, etc.
please prefer XML.

Keith Barrow 30-Dec-10 6:53am    
Don't used XML: memory is at a premium in the hardware, XML is an inefficient format in this case. I suggest Json (see section headed "Creating and Parsing JSON Messages with JavaScript" or a CSV format).
Hiren solanki 3-Jan-11 0:55am    
Comments from OP :thanks for your suggestion.
but i am not able to use visual studio (aspx pages). because of lack of memory in hardware.
can i use Json in html pages or .js pages.

Nilesh Rathod
Keith Barrow 4-Jan-11 13:09pm    
@nil1401 Yyou can (I've never done it) and the code is terse, helping with the memory problem as the code must be stored in memory too. See The MSDN page contains Javascript, so VS isn't needed. The JavaScript interpreter needs to understand the JSON stuff so check that!
Keith Barrow 4-Jan-11 15:58pm    
I've voted you a 5 for this question, it's pretty interesting anyway, but will now attract more views, hopefully someone will have a more complete answer!

1 solution

write one txt files with javascript and later read the same file with javascript[^]

there a lot of samples, how to write one file

good luck:cool:
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900