Skip to content

Commit 4bd625e

Browse files
committed
lower case file names
1 parent 1b8afaa commit 4bd625e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ This project was written circa 2004, and is written in ES3 and fully compatible
1212

1313
I was working at the time on a project for a client that needed a shopping cart. For some technical reasons that I forget the cart had to be made purely client-side, and post the results to the backend in XML. I needed some way of persisting my cart contents and save my JavaScript cart object to a string and store it in the cookie and then pull it out of the cookie when the next page loaded. Rather than solve this for just my case I took the generic approach. I reasoned that rather than store the JavaScript object in some custom format, or in JSON, which was new at the time, I'd store my JavaScript as, you guessed it, a string containing the JavaScript object. Then all I would need to do is call eval() on the object to deserialize it and recreate my shopping cart on the next page load.
1414

15-
To go further I realized that when it came to posting the XML data back to the server in XML I could use a similar formatter to serialize the JavaScript object out to an XML string. This lead to the architecture of having a single Serializer.js file which accepts a JavaScript object and stores it, along with some type data throughout the object tree. I then wrote SerailizerJS.js which renders the object as a JavaScript string, and SerailizerXML.js which renders the object as XML.
15+
To go further I realized that when it came to posting the XML data back to the server in XML I could use a similar formatter to serialize the JavaScript object out to an XML string. This lead to the architecture of having a single serializer.js file which accepts a JavaScript object and stores it, along with some type data throughout the object tree. I then wrote serailizer-js.js which renders the object as a JavaScript string, and serailizer-xml.js which renders the object as XML.
File renamed without changes.
File renamed without changes.

test_html/demo.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
33
<title>Javascript Serializer</title>
4-
<script language="javascript" src="../dist/Serializer.js"></script>
5-
<script language="javascript" src="../dist/SerializerJS.js"></script>
6-
<script language="javascript" src="../dist/SerializerXML.js"></script>
4+
<script language="javascript" src="../dist/serializer.js"></script>
5+
<script language="javascript" src="../dist/serializer-js.js"></script>
6+
<script language="javascript" src="../dist/serializer-xml.js"></script>
77
<link href="global.css" rel="stylesheet" type="text/css">
88
<SCRIPT LANGUAGE="VBScript">
99
<!--

0 commit comments

Comments
 (0)