<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://homeostasis.scs.carleton.ca/wiki/index.php?action=history&amp;feed=atom&amp;title=WebFund_2015W%3A_Assignment_7</id>
	<title>WebFund 2015W: Assignment 7 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://homeostasis.scs.carleton.ca/wiki/index.php?action=history&amp;feed=atom&amp;title=WebFund_2015W%3A_Assignment_7"/>
	<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;action=history"/>
	<updated>2026-05-18T14:12:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=20053&amp;oldid=prev</id>
		<title>Soma at 22:46, 28 March 2015</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=20053&amp;oldid=prev"/>
		<updated>2015-03-28T22:46:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:46, 28 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The Cancel button should cause the notes list to be redrawn.  The Change Username button should do a POST to /changeusername to actually do the username change (with a body value of newUsername for the new username).  When this post returns, if it was successful (returning a value &amp;quot;username changed&amp;quot;) it should change the username on the page.  It should NOT change the username if the name change failed (returning a value &amp;quot;ERROR: username not changed&amp;quot;).  When the post returns the notes list should be redrawn.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The Cancel button should cause the notes list to be redrawn.  The Change Username button should do a POST to /changeusername to actually do the username change (with a body value of newUsername for the new username).  When this post returns, if it was successful (returning a value &amp;quot;username changed&amp;quot;) it should change the username on the page.  It should NOT change the username if the name change failed (returning a value &amp;quot;ERROR: username not changed&amp;quot;).  When the post returns the notes list should be redrawn.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The new username can be any username that is not currently being used by any stored notes.  Note that you&amp;#039;ll need to change the username in the session and update the owner field in stored notes as appropriate.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The new username can be any username that is not currently being used by any stored notes.  Note that you&amp;#039;ll need to change the username in the session and update the owner field in stored notes as appropriate.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Solutions==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Solutions to this assignment [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes-sol.zip are now available].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Soma</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19995&amp;oldid=prev</id>
		<title>Afry: changed name of directory</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19995&amp;oldid=prev"/>
		<updated>2015-03-16T14:09:32Z</updated>

		<summary type="html">&lt;p&gt;changed name of directory&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:09, 16 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX notes demo] from [[WebFund 2015W: Tutorial 7|Tutorial 7]].  There are 10 points in 3 tasks, 7 listed below and 3 for code style.  This assignment is due by 10 AM on &amp;lt;del&amp;gt;Monday, March 16, 2015&amp;lt;/del&amp;gt; &amp;#039;&amp;#039;&amp;#039;Wednesday, March 18, 2015&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX notes demo] from [[WebFund 2015W: Tutorial 7|Tutorial 7]].  There are 10 points in 3 tasks, 7 listed below and 3 for code style.  This assignment is due by 10 AM on &amp;lt;del&amp;gt;Monday, March 16, 2015&amp;lt;/del&amp;gt; &amp;#039;&amp;#039;&amp;#039;Wednesday, March 18, 2015&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit your answers as a zip file called &quot;&amp;lt;username&amp;gt;-comp2406-assign7.zip&quot;, where username is your MyCarletonOne username.  This zip file should uncompress to a directory called &quot;&amp;lt;username&amp;gt;-comp2406-assign7&quot; and inside this directory should be two things: a directory &quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;persistent&lt;/del&gt;-notes&quot; that contains the application and a text file &quot;comments.txt&quot;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit your answers as a zip file called &quot;&amp;lt;username&amp;gt;-comp2406-assign7.zip&quot;, where username is your MyCarletonOne username.  This zip file should uncompress to a directory called &quot;&amp;lt;username&amp;gt;-comp2406-assign7&quot; and inside this directory should be two things: a directory &quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ajax&lt;/ins&gt;-notes&quot; that contains the application and a text file &quot;comments.txt&quot;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;quot;comments.txt&amp;quot; should:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;quot;comments.txt&amp;quot; should:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Afry</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19984&amp;oldid=prev</id>
		<title>Soma at 20:22, 13 March 2015</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19984&amp;oldid=prev"/>
		<updated>2015-03-13T20:22:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:22, 13 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX notes demo] from [[WebFund 2015W: Tutorial 7|Tutorial 7]].  There are 10 points in 3 tasks, 7 listed below and 3 for code style.  This assignment is due by 10 AM on Monday, March 16, 2015.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX notes demo] from [[WebFund 2015W: Tutorial 7|Tutorial 7]].  There are 10 points in 3 tasks, 7 listed below and 3 for code style.  This assignment is due by 10 AM on &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;del&amp;gt;&lt;/ins&gt;Monday, March 16, 2015&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/del&amp;gt; &#039;&#039;&#039;Wednesday, March 18, 2015&#039;&#039;&#039;&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit your answers as a zip file called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7.zip&amp;quot;, where username is your MyCarletonOne username.  This zip file should uncompress to a directory called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7&amp;quot; and inside this directory should be two things: a directory &amp;quot;persistent-notes&amp;quot; that contains the application and a text file &amp;quot;comments.txt&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit your answers as a zip file called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7.zip&amp;quot;, where username is your MyCarletonOne username.  This zip file should uncompress to a directory called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7&amp;quot; and inside this directory should be two things: a directory &amp;quot;persistent-notes&amp;quot; that contains the application and a text file &amp;quot;comments.txt&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Soma</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19983&amp;oldid=prev</id>
		<title>Soma at 20:18, 13 March 2015</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19983&amp;oldid=prev"/>
		<updated>2015-03-13T20:18:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:18, 13 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX notes demo] from [[WebFund 2015W: Tutorial 7|Tutorial 7]].  There are 10 points in 3 tasks, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;8 &lt;/del&gt;listed below and &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2 &lt;/del&gt;for code style.  This assignment is due by 10 AM on Monday, March 16, 2015.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX notes demo] from [[WebFund 2015W: Tutorial 7|Tutorial 7]].  There are 10 points in 3 tasks, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;7 &lt;/ins&gt;listed below and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3 &lt;/ins&gt;for code style.  This assignment is due by 10 AM on Monday, March 16, 2015.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit your answers as a zip file called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7.zip&amp;quot;, where username is your MyCarletonOne username.  This zip file should uncompress to a directory called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7&amp;quot; and inside this directory should be two things: a directory &amp;quot;persistent-notes&amp;quot; that contains the application and a text file &amp;quot;comments.txt&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit your answers as a zip file called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7.zip&amp;quot;, where username is your MyCarletonOne username.  This zip file should uncompress to a directory called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7&amp;quot; and inside this directory should be two things: a directory &amp;quot;persistent-notes&amp;quot; that contains the application and a text file &amp;quot;comments.txt&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Implement a [delete] button on the edit note view (with an id of &amp;quot;delete&amp;quot;).  When pressed it should put up a [https://developer.mozilla.org/en-US/docs/Web/API/window/confirm confirm modal dialog box] that says &amp;#039;Delete note &amp;quot;The note title&amp;quot;&amp;#039;?  (Replace &amp;quot;The note title&amp;quot; with the actual title of the note to delete.)  If the user says okay then it should do a post to &amp;quot;/deleteNote&amp;quot; where the form body contains an &amp;quot;id&amp;quot; value that has the _id of the note to be deleted.  This post should return &amp;quot;note deleted&amp;quot; upon success or &amp;quot;ERROR: note not deleted&amp;quot; upon failure.  When the POST returns the page should be refreshed with the current list of notes.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Implement a [delete] button on the edit note view (with an id of &amp;quot;delete&amp;quot;).  When pressed it should put up a [https://developer.mozilla.org/en-US/docs/Web/API/window/confirm confirm modal dialog box] that says &amp;#039;Delete note &amp;quot;The note title&amp;quot;&amp;#039;?  (Replace &amp;quot;The note title&amp;quot; with the actual title of the note to delete.)  If the user says okay then it should do a post to &amp;quot;/deleteNote&amp;quot; where the form body contains an &amp;quot;id&amp;quot; value that has the _id of the note to be deleted.  This post should return &amp;quot;note deleted&amp;quot; upon success or &amp;quot;ERROR: note not deleted&amp;quot; upon failure.  When the POST returns the page should be refreshed with the current list of notes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Make it so the contents of notes escape embedded HTML tags.  However, allow links to be embedded in notes using the syntax of &amp;quot;[&amp;lt;link&amp;gt; &amp;lt;label&amp;gt;]&amp;quot; where link is a URL for an &amp;lt;a&amp;gt; tag and the label (the rest of the text in the square brackets) is the label for the URL.  If there is no label then the link itself should be the &amp;lt;a&amp;gt; tag&amp;#039;s label.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [2] Make it so the contents of notes escape embedded HTML tags.  However, allow links to be embedded in notes using the syntax of &amp;quot;[&amp;lt;link&amp;gt; &amp;lt;label&amp;gt;]&amp;quot; where link is a URL for an &amp;lt;a&amp;gt; tag and the label (the rest of the text in the square brackets) is the label for the URL.  If there is no label then the link itself should be the &amp;lt;a&amp;gt; tag&amp;#039;s label.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;4&lt;/del&gt;] Add a Change Username button, besides the refresh button, that allows you to change the username for a user.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3&lt;/ins&gt;] Add a Change Username button, besides the refresh button, that allows you to change the username for a user.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* This button should have an &amp;lt;tt&amp;gt;id=changeusername&amp;lt;/tt&amp;gt; assigned.  It should cause the notesArea to be replaced with an interface for changing the username.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* This button should have an &amp;lt;tt&amp;gt;id=changeusername&amp;lt;/tt&amp;gt; assigned.  It should cause the notesArea to be replaced with an interface for changing the username.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The text field for the changed username should have a &amp;lt;tt&amp;gt;id=&amp;quot;username&amp;quot;&amp;lt;/tt&amp;gt;.  Below this should be two buttons, &amp;quot;Change Username&amp;quot; (with id of &amp;quot;doChangeUsername&amp;quot;) and &amp;quot;Cancel&amp;quot; (with id of &amp;quot;cancelUsernameChange&amp;quot;).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The text field for the changed username should have a &amp;lt;tt&amp;gt;id=&amp;quot;username&amp;quot;&amp;lt;/tt&amp;gt;.  Below this should be two buttons, &amp;quot;Change Username&amp;quot; (with id of &amp;quot;doChangeUsername&amp;quot;) and &amp;quot;Cancel&amp;quot; (with id of &amp;quot;cancelUsernameChange&amp;quot;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The Cancel button should cause the notes list to be redrawn.  The Change Username button should do a POST to /changeusername to actually do the username change (with a body value of newUsername for the new username).  When this post returns, if it was successful (returning a value &amp;quot;username changed&amp;quot;) it should change the username on the page.  It should NOT change the username if the name change failed (returning a value &amp;quot;ERROR: username not changed&amp;quot;).  When the post returns the notes list should be redrawn.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The Cancel button should cause the notes list to be redrawn.  The Change Username button should do a POST to /changeusername to actually do the username change (with a body value of newUsername for the new username).  When this post returns, if it was successful (returning a value &amp;quot;username changed&amp;quot;) it should change the username on the page.  It should NOT change the username if the name change failed (returning a value &amp;quot;ERROR: username not changed&amp;quot;).  When the post returns the notes list should be redrawn.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The new username can be any username that is not currently being used by any stored notes.  Note that you&amp;#039;ll need to change the username in the session and update the owner field in stored notes as appropriate.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The new username can be any username that is not currently being used by any stored notes.  Note that you&amp;#039;ll need to change the username in the session and update the owner field in stored notes as appropriate.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Soma</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19982&amp;oldid=prev</id>
		<title>Soma at 20:17, 13 March 2015</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19982&amp;oldid=prev"/>
		<updated>2015-03-13T20:17:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:17, 13 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;This assignment is not yet finalized.&#039;&#039;&#039;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX notes demo] from [[WebFund 2015W: Tutorial 7|Tutorial 7]].  There are 10 points in 3 tasks&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, 8 listed below and 2 for code style&lt;/ins&gt;.  This assignment is due by 10 AM on Monday, March 16, 2015.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX notes demo] from [[WebFund 2015W: Tutorial 7|Tutorial 7]].  There are 10 points in 3 tasks.  This assignment is due by 10 AM on Monday, March 16, 2015.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit your answers as a zip file called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7.zip&amp;quot;, where username is your MyCarletonOne username.  This zip file should uncompress to a directory called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7&amp;quot; and inside this directory should be two things: a directory &amp;quot;persistent-notes&amp;quot; that contains the application and a text file &amp;quot;comments.txt&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit your answers as a zip file called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7.zip&amp;quot;, where username is your MyCarletonOne username.  This zip file should uncompress to a directory called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7&amp;quot; and inside this directory should be two things: a directory &amp;quot;persistent-notes&amp;quot; that contains the application and a text file &amp;quot;comments.txt&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Tasks==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Tasks==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3&lt;/del&gt;] Implement a [delete] button on the edit note view (with an id of &quot;delete&quot;).  When pressed it should put up a [https://developer.mozilla.org/en-US/docs/Web/API/window/confirm confirm modal dialog box] that says &#039;Delete note &quot;The note title&quot;&#039;?  (Replace &quot;The note title&quot; with the actual title of the note to delete.)  If the user says okay then it should do a post to &quot;/deleteNote&quot; where the form body contains an &quot;id&quot; value that has the _id of the note to be deleted.  This post should return &quot;note deleted&quot; upon success or &quot;ERROR: note not deleted&quot; upon failure.  When the POST returns the page should be refreshed with the current list of notes.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2&lt;/ins&gt;] Implement a [delete] button on the edit note view (with an id of &quot;delete&quot;).  When pressed it should put up a [https://developer.mozilla.org/en-US/docs/Web/API/window/confirm confirm modal dialog box] that says &#039;Delete note &quot;The note title&quot;&#039;?  (Replace &quot;The note title&quot; with the actual title of the note to delete.)  If the user says okay then it should do a post to &quot;/deleteNote&quot; where the form body contains an &quot;id&quot; value that has the _id of the note to be deleted.  This post should return &quot;note deleted&quot; upon success or &quot;ERROR: note not deleted&quot; upon failure.  When the POST returns the page should be refreshed with the current list of notes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3&lt;/del&gt;] Make it so the contents of notes escape embedded HTML tags.  However, allow links to be embedded in notes using the syntax of &quot;[&amp;lt;link&amp;gt; &amp;lt;label&amp;gt;]&quot; where link is a URL for an &amp;lt;a&amp;gt; tag and the label (the rest of the text in the square brackets) is the label for the URL.  If there is no label then the link itself should be the &amp;lt;a&amp;gt; tag&#039;s label.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2&lt;/ins&gt;] Make it so the contents of notes escape embedded HTML tags.  However, allow links to be embedded in notes using the syntax of &quot;[&amp;lt;link&amp;gt; &amp;lt;label&amp;gt;]&quot; where link is a URL for an &amp;lt;a&amp;gt; tag and the label (the rest of the text in the square brackets) is the label for the URL.  If there is no label then the link itself should be the &amp;lt;a&amp;gt; tag&#039;s label.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [4] Add a Change Username button, besides the refresh button, that allows you to change the username for a user.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [4] Add a Change Username button, besides the refresh button, that allows you to change the username for a user.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* This button should have an &amp;lt;tt&amp;gt;id=changeusername&amp;lt;/tt&amp;gt; assigned.  It should cause the notesArea to be replaced with an interface for changing the username.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* This button should have an &amp;lt;tt&amp;gt;id=changeusername&amp;lt;/tt&amp;gt; assigned.  It should cause the notesArea to be replaced with an interface for changing the username.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Soma</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19960&amp;oldid=prev</id>
		<title>Soma at 01:52, 9 March 2015</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19960&amp;oldid=prev"/>
		<updated>2015-03-09T01:52:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:52, 9 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;This assignment is not yet finalized.&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;This assignment is not yet finalized.&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX notes demo] from [[WebFund 2015W: Tutorial 7|Tutorial 7]].  There are 10 points in &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;? &lt;/del&gt;tasks.  This assignment is due by 10 AM on Monday, March 16, 2015.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX notes demo] from [[WebFund 2015W: Tutorial 7|Tutorial 7]].  There are 10 points in &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3 &lt;/ins&gt;tasks.  This assignment is due by 10 AM on Monday, March 16, 2015.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit your answers as a zip file called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7.zip&amp;quot;, where username is your MyCarletonOne username.  This zip file should uncompress to a directory called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7&amp;quot; and inside this directory should be two things: a directory &amp;quot;persistent-notes&amp;quot; that contains the application and a text file &amp;quot;comments.txt&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please submit your answers as a zip file called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7.zip&amp;quot;, where username is your MyCarletonOne username.  This zip file should uncompress to a directory called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7&amp;quot; and inside this directory should be two things: a directory &amp;quot;persistent-notes&amp;quot; that contains the application and a text file &amp;quot;comments.txt&amp;quot;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Soma</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19958&amp;oldid=prev</id>
		<title>Soma: /* Tasks */</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19958&amp;oldid=prev"/>
		<updated>2015-03-09T01:52:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Tasks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:52, 9 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Tasks==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Tasks==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Implement a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;note &lt;/del&gt;delete button on the edit note view&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.  This &lt;/del&gt;delete &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;button should redirect to a page /delete/&amp;lt;note ID&amp;gt; that asks the user to confirm whether to delete the note&lt;/del&gt;.  When pressed it should put up a [https://developer.mozilla.org/en-US/docs/Web/API/window/confirm confirm modal dialog box] that says &#039;Delete note &quot;The note title&quot;&#039;?  (Replace &quot;The note title&quot; with the actual title of the note to delete.)  If the user says okay then it should do a post to &quot;/deleteNote&quot; where the form body contains an &quot;id&quot; value that has the _id of the note to be deleted.  When the POST returns the page should be refreshed with the current list of notes.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Implement a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/ins&gt;delete&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;] &lt;/ins&gt;button on the edit note view &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(with an id of &quot;&lt;/ins&gt;delete&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;)&lt;/ins&gt;.  When pressed it should put up a [https://developer.mozilla.org/en-US/docs/Web/API/window/confirm confirm modal dialog box] that says &#039;Delete note &quot;The note title&quot;&#039;?  (Replace &quot;The note title&quot; with the actual title of the note to delete.)  If the user says okay then it should do a post to &quot;/deleteNote&quot; where the form body contains an &quot;id&quot; value that has the _id of the note to be deleted&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.  This post should return &quot;note deleted&quot; upon success or &quot;ERROR: note not deleted&quot; upon failure&lt;/ins&gt;.  When the POST returns the page should be refreshed with the current list of notes.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Make it so the contents of notes escape embedded HTML tags.  However, allow links to be embedded in notes using the syntax of &amp;quot;[&amp;lt;link&amp;gt; &amp;lt;label&amp;gt;]&amp;quot; where link is a URL for an &amp;lt;a&amp;gt; tag and the label (the rest of the text in the square brackets) is the label for the URL.  If there is no label then the link itself should be the &amp;lt;a&amp;gt; tag&amp;#039;s label.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [3] Make it so the contents of notes escape embedded HTML tags.  However, allow links to be embedded in notes using the syntax of &amp;quot;[&amp;lt;link&amp;gt; &amp;lt;label&amp;gt;]&amp;quot; where link is a URL for an &amp;lt;a&amp;gt; tag and the label (the rest of the text in the square brackets) is the label for the URL.  If there is no label then the link itself should be the &amp;lt;a&amp;gt; tag&amp;#039;s label.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [4] Add a Change Username button, besides the refresh button, that allows you to change the username for a user.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# [4] Add a Change Username button, besides the refresh button, that allows you to change the username for a user.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* This button should have an &amp;lt;tt&amp;gt;id=changeusername&amp;lt;/tt&amp;gt; assigned.  It should cause the notesArea to be replaced with an interface for changing the username.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* This button should have an &amp;lt;tt&amp;gt;id=changeusername&amp;lt;/tt&amp;gt; assigned.  It should cause the notesArea to be replaced with an interface for changing the username.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The text field for the changed username should have a &amp;lt;tt&amp;gt;id=&amp;quot;username&amp;quot;&amp;lt;/tt&amp;gt;.  Below this should be two buttons, &amp;quot;Change Username&amp;quot; (with id of &amp;quot;doChangeUsername&amp;quot;) and &amp;quot;Cancel&amp;quot; (with id of &amp;quot;cancelUsernameChange&amp;quot;).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The text field for the changed username should have a &amp;lt;tt&amp;gt;id=&amp;quot;username&amp;quot;&amp;lt;/tt&amp;gt;.  Below this should be two buttons, &amp;quot;Change Username&amp;quot; (with id of &amp;quot;doChangeUsername&amp;quot;) and &amp;quot;Cancel&amp;quot; (with id of &amp;quot;cancelUsernameChange&amp;quot;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The Cancel button should cause the notes list to be redrawn.  The Change Username button should do a POST to /changeusername to actually do the username change (with a body value of newUsername for the new username).  When this post returns, if it was successful it should change the username on the page.  &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Then, &lt;/del&gt;the notes list should be redrawn.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The Cancel button should cause the notes list to be redrawn.  The Change Username button should do a POST to /changeusername to actually do the username change (with a body value of newUsername for the new username).  When this post returns, if it was successful &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(returning a value &quot;username changed&quot;) &lt;/ins&gt;it should change the username on the page.  &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;It should NOT change the username if the name change failed (returning a value &quot;ERROR: username not changed&quot;).  When the post returns &lt;/ins&gt;the notes list should be redrawn.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The new username can be any username that is not currently being used by any stored notes.  Note that you&amp;#039;ll need to change the username in the session and update the owner field in stored notes as appropriate.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#* The new username can be any username that is not currently being used by any stored notes.  Note that you&amp;#039;ll need to change the username in the session and update the owner field in stored notes as appropriate.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Soma</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19957&amp;oldid=prev</id>
		<title>Soma: Created page with &quot;&#039;&#039;&#039;This assignment is not yet finalized.&#039;&#039;&#039;  In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX note...&quot;</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=WebFund_2015W:_Assignment_7&amp;diff=19957&amp;oldid=prev"/>
		<updated>2015-03-09T01:46:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;This assignment is not yet finalized.&amp;#039;&amp;#039;&amp;#039;  In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX note...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;This assignment is not yet finalized.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
In this assignment you will be modifying [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/code/ajax-notes.zip the AJAX notes demo] from [[WebFund 2015W: Tutorial 7|Tutorial 7]].  There are 10 points in ? tasks.  This assignment is due by 10 AM on Monday, March 16, 2015.&lt;br /&gt;
&lt;br /&gt;
Please submit your answers as a zip file called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7.zip&amp;quot;, where username is your MyCarletonOne username.  This zip file should uncompress to a directory called &amp;quot;&amp;lt;username&amp;gt;-comp2406-assign7&amp;quot; and inside this directory should be two things: a directory &amp;quot;persistent-notes&amp;quot; that contains the application and a text file &amp;quot;comments.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;comments.txt&amp;quot; should:&lt;br /&gt;
* list any references you used to complete the assignment (documentation web sites, for example),&lt;br /&gt;
* list your collaborators, and&lt;br /&gt;
* optionally, should discuss any issues or concerns you had when completing this assignment.&lt;br /&gt;
Remember that while you are allowed to collaborate with others, plagiarism is not allowed.  In other words you &amp;#039;&amp;#039;&amp;#039;should not&amp;#039;&amp;#039;&amp;#039; be copying any code or data directly from anywhere, and any assistance or inspiration should be credited.  Any significant code similarity (beyond the code already given to you) will be considered plagiarism and will be reported to the Dean.&lt;br /&gt;
&lt;br /&gt;
==Tasks==&lt;br /&gt;
# [3] Implement a note delete button on the edit note view.  This delete button should redirect to a page /delete/&amp;lt;note ID&amp;gt; that asks the user to confirm whether to delete the note.  When pressed it should put up a [https://developer.mozilla.org/en-US/docs/Web/API/window/confirm confirm modal dialog box] that says &amp;#039;Delete note &amp;quot;The note title&amp;quot;&amp;#039;?  (Replace &amp;quot;The note title&amp;quot; with the actual title of the note to delete.)  If the user says okay then it should do a post to &amp;quot;/deleteNote&amp;quot; where the form body contains an &amp;quot;id&amp;quot; value that has the _id of the note to be deleted.  When the POST returns the page should be refreshed with the current list of notes.&lt;br /&gt;
# [3] Make it so the contents of notes escape embedded HTML tags.  However, allow links to be embedded in notes using the syntax of &amp;quot;[&amp;lt;link&amp;gt; &amp;lt;label&amp;gt;]&amp;quot; where link is a URL for an &amp;lt;a&amp;gt; tag and the label (the rest of the text in the square brackets) is the label for the URL.  If there is no label then the link itself should be the &amp;lt;a&amp;gt; tag&amp;#039;s label.&lt;br /&gt;
# [4] Add a Change Username button, besides the refresh button, that allows you to change the username for a user.&lt;br /&gt;
#* This button should have an &amp;lt;tt&amp;gt;id=changeusername&amp;lt;/tt&amp;gt; assigned.  It should cause the notesArea to be replaced with an interface for changing the username.&lt;br /&gt;
#* The text field for the changed username should have a &amp;lt;tt&amp;gt;id=&amp;quot;username&amp;quot;&amp;lt;/tt&amp;gt;.  Below this should be two buttons, &amp;quot;Change Username&amp;quot; (with id of &amp;quot;doChangeUsername&amp;quot;) and &amp;quot;Cancel&amp;quot; (with id of &amp;quot;cancelUsernameChange&amp;quot;).&lt;br /&gt;
#* The Cancel button should cause the notes list to be redrawn.  The Change Username button should do a POST to /changeusername to actually do the username change (with a body value of newUsername for the new username).  When this post returns, if it was successful it should change the username on the page.  Then, the notes list should be redrawn.&lt;br /&gt;
#* The new username can be any username that is not currently being used by any stored notes.  Note that you&amp;#039;ll need to change the username in the session and update the owner field in stored notes as appropriate.&lt;/div&gt;</summary>
		<author><name>Soma</name></author>
	</entry>
</feed>