<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
	<ttl>15</ttl>
	<title>wbweb blog</title>
	<link>http://wablog.waweb.co.uk/admin.php</link>
	<description>wbweb blog demo</description>
	<pubDate>Sun, 20 May 2012 23:59:26 +0100</pubDate>
	<lastBuildDate>Sun, 20 May 2012 23:59:26 +0100</lastBuildDate>
	<generator>www.eggblog.net</generator>
	<item>
		<title>Security XSS</title>
		<link>http://wablog.waweb.co.uk/admin.phpnews.php?id=48</link>
		<description>&lt;p&gt;&lt;strong&gt;XSS - Cross Site Scripting&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;1. &lt;strong&gt;What is XSS?&lt;/strong&gt; XSS commonly targets scripts embedded in a web page which are executed by the user&#039;s browser. The scripts can be manipluated to execute in a manner desired by a malicious user and can be executed every time a page is loaded.&lt;/p&gt; &lt;p&gt;2. &lt;strong&gt;XSS may result in &lt;/strong&gt;identity theft, altering browser functionality, accessing sensitive or restricted information.&lt;/p&gt; &lt;p&gt;3. &lt;strong&gt;XSS examples&lt;/strong&gt; &lt;a href=&quot;http://blog.wbweb.co.uk/hacker.php&quot;&gt;hacker&lt;/a&gt;&lt;/p&gt; &lt;p&gt;4. &lt;strong&gt;XSS Prevention - Users&lt;/strong&gt; Be aware of the url in your address bar.&lt;/p&gt; &lt;p&gt;5. &lt;strong&gt;XSS Prevention - Site Developers&lt;/strong&gt; Be stringent in the validation of user&#039;s form input.&lt;/p&gt;</description>
		<guid>http://wablog.waweb.co.uk/admin.phpnews.php?id=48</guid>
		<pubDate>Sat, 16 Jan 2010 18:23:37 +0000</pubDate>
	</item>
	<item>
		<title>Javascript Coding Standards</title>
		<link>http://wablog.waweb.co.uk/admin.phpnews.php?id=47</link>
		<description>&lt;p&gt;Maintaining javscript code is made easier if&amp;nbsp; coding standards are in place from the start. The use of comments and white space, to explain the code, is encouraged. The comments and white space can be stripped out prior to placing the code on the internet - this will optimize the file size and increase performance. The following is a summary of the javascript coding standards used by wbweb ltd.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Coding Standards&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;1. &lt;strong&gt;General&lt;/strong&gt; Use an indent of at least 2 spaces. Variables to be defined at either the start of the code or function, and make use of &#039;var&#039;. Use &#039;;&#039; at the end of code statements, with the exception of &#039;for&#039;, &#039;function&#039;, &#039;if&#039;, &#039;switch&#039;, &#039;try&#039; and &#039;while&#039;.&lt;/p&gt; &lt;p&gt;2. &lt;strong&gt;Naming Conventions - CamelCasing&lt;/strong&gt; The first letter of each function or variiable should be lowercase while the first letter of subsequent words should be capitalised eg &lt;/p&gt; &lt;p&gt;var javaScript;&lt;/p&gt; &lt;p&gt;3. &lt;strong&gt;String Concatenation&lt;/strong&gt; Use a space between the &#039;+&#039; and &#039;+=&#039; and the concatenated parts eg&lt;/p&gt; &lt;p&gt;var string = &#039;wbweb&#039; + &#039;ltd&#039;;&lt;/p&gt; &lt;p&gt;4. &lt;strong&gt;Control Structure&lt;/strong&gt; These include &#039;for&#039;, &#039;if&#039;, &#039;switch&#039;, &#039;try&#039; and &#039;while&#039;. Use curly braces at all times, even when they are technically opitional eg &lt;/p&gt; &lt;p&gt;if ((condition1) || (condition2)) {&lt;/p&gt; &lt;p style=&quot;margin-left: 40px;&quot;&gt;action1;&lt;/p&gt; &lt;p&gt;else {&lt;/p&gt; &lt;p style=&quot;margin-left: 40px;&quot;&gt;action2;&lt;/p&gt; &lt;p&gt;}&lt;/p&gt; &lt;p&gt;5. &lt;strong&gt;Function Calls&lt;/strong&gt; Functions should be called with no spaces between the function name and the opening parenthesis and the first parameter. Parameters should be separated by &#039;, &#039; with the execption of the last parameter. eg&lt;/p&gt; &lt;p&gt;var result = wbweb(parameter1, parameter2);&lt;/p&gt; &lt;p&gt;6. &lt;strong&gt;Comments&lt;/strong&gt; Are encouraged. Either single line comment, preceeded by &#039;//&#039; or multi line comments enclosed by &#039;/*&#039; and &#039;*/&#039; .&lt;/p&gt; &lt;p&gt;7. &lt;strong&gt;&#039;With&#039; statement&lt;/strong&gt; The &#039;with&#039; statement provides a short hand method to object references eg &lt;/p&gt; &lt;p&gt;with (document.forms[0]) {&lt;/p&gt; &lt;p style=&quot;margin-left: 40px;&quot;&gt;&amp;nbsp; x = elements[0].value;&lt;/p&gt; &lt;p style=&quot;margin-left: 40px;&quot;&gt;&amp;nbsp; y = elements[1].value;&lt;/p&gt; &lt;p&gt;}&lt;/p&gt; &lt;p&gt;However, it is unclear which variable will be modified. Instead, the above example should be rewritten as follows &lt;/p&gt; &lt;p&gt;var o = document.forms[0];&lt;/p&gt; &lt;p&gt;o.x = elements[0].value;&lt;/p&gt; &lt;p&gt;o.y = elements[1].value;&lt;/p&gt; &lt;p&gt;8. &lt;strong&gt;&#039;eval&#039; statement&lt;/strong&gt; Avoid. &#039;e&lt;code&gt;val&#039; pr&lt;/code&gt;ovides access to the JavaScript compiler. This is sometimes necessary however the overheads far outweigh the benefits.&lt;/p&gt; &lt;p&gt;9. &lt;strong&gt;&#039;Javascript External Files&#039;&lt;/strong&gt; Javascript code should be placed in an external file where possible. This allows the code to be easily used used on multiple web pages and provides the option for compression.&lt;/p&gt;</description>
		<guid>http://wablog.waweb.co.uk/admin.phpnews.php?id=47</guid>
		<pubDate>Sat, 01 Nov 2008 13:24:06 +0000</pubDate>
	</item>
</channel>
</rss>
