<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:dcterms="http://purl.org/dc/terms/"
     xmlns:media="http://search.yahoo.com/mrss/"
     xmlns:atom="http://www.w3.org/2005/Atom"
     xmlns:cf="https://www.futureplc.com/rss/content-flags"
>
    <channel>
                    <atom:link href="https://www.itpro.com/feeds/tag/ajax" rel="self" type="application/rss+xml" />
                            <title><![CDATA[ Latest from ITPro in Ajax ]]></title>
                <link>https://www.itpro.com/tag/ajax</link>
        <description><![CDATA[ All the latest ajax content from the ITPro team ]]></description>
                                    <lastBuildDate>Fri, 25 Jun 2021 12:40:49 +0000</lastBuildDate>
                            <language>en</language>
                                <item>
                                                            <title><![CDATA[ Building an AJAX-based CRUD app in Flask  ]]></title>
                                                                                                <dc:content><![CDATA[ <p>Full stack development is no easy task, and even a simple application can involve a lot of moving parts. To help you get to grips with some of the processes and requirements involved, this is the final article in a three-part series that takes us through building a basic web application. </p><p>In our case, it’s a basic app that curates details on a selection of retro video games. We’ve been using Postgres as our back-end database, and to interact with it, we’ve been using Flask, which is a lightweight framework for building web apps, supporting the Python programming language. </p><p>In our last two tutorials on Postgres and building a basic Flask app, we started building a create-read-update-delete (CRUD) application. This is the basic model for many web apps that handle records, backed by an online <a href="https://www.itpro.com/data-insights/31725/what-is-a-relational-database" data-original-url="https://www.itpro.com/data-insights/31725/what-is-a-relational-database">relational database</a>. We’ll be building on the work in those first two tutorials, which you can find <a href="https://www.itpro.com/development/software-development/359775/getting-started-with-postgres" data-original-url="https://www.itpro.com/development/software-development/359775/getting-started-with-postgres">here</a> and <a href="https://www.itpro.com/development/web-development/359842/how-to-build-a-basic-web-app-in-flask" data-original-url="https://www.itpro.com/development/web-development/359842/how-to-build-a-basic-web-app-in-flask">here</a>. In the final tutorial of the series, we'll flesh out our vintage video games app RetroNerds to cover all the CRUD features, using AJAX to make managing our database records a smoother process. </p><div  class="fancy-box"><div class="fancy_box-title"></div><div class="fancy_box_body"><p class="fancy-box__body-text"><a data-analytics-id="inline-link" href="https://www.itpro.com/data-insights/databases/357305/how-to-improve-database-costs-performance-and-value" data-original-url="/data-insights/databases/357305/how-to-improve-database-costs-performance-and-value">How to improve database costs, performance and value</a> <a data-analytics-id="inline-link" href="https://www.itpro.com/development/programming/359439/the-top-five-essential-vscode-extensions-for-your-2021-setup" data-original-url="/development/programming/359439/the-top-five-essential-vscode-extensions-for-your-2021-setup">The top five essential VSCode extensions for your 2021 setup</a> <a data-analytics-id="inline-link" href="https://www.itpro.com/marketing-comms/content-management-system-cms/358703/how-to-build-a-cms-with-react-and-google" data-original-url="/marketing-comms/content-management-system-cms/358703/how-to-build-a-cms-with-react-and-google">How to build a CMS with React and Google Sheets</a></p></div></div><p>Our rudimentary app from the last tutorial used Python to render data from the database directly in HTML. As our application gets more complex, this will become <a href="https://www.itpro.com/data-insights/databases/358688/five-database-problems-and-how-to-solve-them" data-original-url="https://www.itpro.com/data-insights/databases/358688/five-database-problems-and-how-to-solve-them">less and less viable</a>. Instead, we need a framework to handle those different CRUD functions. Flask is based on a web application design pattern known as model-view-controller (MVC), and we'll use this as the basis for our app. </p><p>Think of MVC as having three layers. At the back is the ‘model’, which is the back-end database. We spent the first tutorial in this series setting up the database and using SQL to access it. In the second, we learned how to interact with it in the object-oriented format that Python understands, using a tool called SQLAlchemy. </p><p>The second part of the MVC framework is the controller. Think of this as a switchboard that directs different requests from the user. When we ask to create, read, update, or delete a record, it’s the controller that finds the right function to do it and then interacts with the model. </p><p>The controller does this using routes that point to different functions. We defined the most basic route - the one that gets triggered when you visit the RetroNerds index page - in the last tutorial. Our next task is to define routes covering all the CRUD functions. </p><p>The final part of the MVC is the view. This is the display that the user sees. It shows us our data and allows us to make requests. MVC views use templates to hold and update data dynamically. </p><p>We'll begin by importing Flask's template rendering library, along with several others that we'll need during this tutorial. Working with the previous tutorial's source code, update line one with an expanded list of packages: </p><div ><table><tbody><tr><td  >from flask import Flask, render_template, request, redirect, url_for, jsonify</td></tr></tbody></table></div><p>Now replace the <em>def index():</em> function in the <em>app.route('/')</em> section with this simplified code: </p><div ><table><tbody><tr><td  >def index(): return render_template(&#x27;index.html&#x27;, games=Game.query.all())</td></tr></tbody></table></div><p>Instead of looping through the results of our database query and generating the HTML manually, it renders the query inside a template called <em>index.html</em>. That template must sit inside the project file in a directory called <em>templates</em>. Create the directory, and put this in the <em>index.html</em> template: </p><div ><table><tbody><tr><td  >&#x3C;!doctype html&#x3E; &#x3C;html lang=&#x22;en&#x22;&#x3E;&#x3C;head&#x3E; &#x3C;meta charset=&#x22;utf-8&#x22;&#x3E; &#x3C;title&#x3E;RetroNerds&#x3C;/title&#x3E; &#x3C;meta name=&#x22;description&#x22; content=&#x22;Old Games for Old Geeks&#x22;&#x3E; &#x3C;meta name=&#x22;author&#x22; content=&#x22;IT Pro&#x22;&#x3E; &#x3C;style&#x3E; .hidden {display:none} &#x3C;/style&#x3E;&#x3C;/head&#x3E; &#x3C;body&#x3E; &#x3C;ul id=&#x22;games&#x22;&#x3E; {% for g in games %} &#x3C;li&#x3E;&#x3C;a id=&#x22;{{ g.id }}&#x22; href=&#x22;#&#x22;&#x3E;{{ g.title }}&#x3C;/a&#x3E; &#x3C;/li&#x3E; {% endfor %} &#x3C;/ul&#x3E; // controls // form // JavaScript &#x3C;script&#x3E; &#x3C;/script&#x3E;&#x3C;/body&#x3E;&#x3C;/html&#x3E;</td></tr></tbody></table></div><p>The key part here is inside the <em>&#x3C;ul&#x3E;</em> unordered list. Flask uses a templating language called Jinja, which we use to loop over the games in the query results that we passed from our <em>index</em> function. It puts each of the games' titles in a list element (<em>&#x3C;a&#x3E;</em>). </p><p>Stop your Flask app in the terminal if it's still running, and enter <em>export FLASK_ENV=development</em> in Linux or <em>$env:FLASK_ENV = "development"</em></p><p>in Windows Powershell. This puts Flask into development mode so that you can see any changes to your code without restarting the app. It also displays useful debug data if your app fails. Now run your app with <em>python3 retronerds.py</em> and visit the URL it gives you. Your game titles should now have been added to your template. </p><p>However, we still need to read the rest of the details for each record, and we need to create and delete new records. We'll use a single form for all these tasks. We'll insert the code for this form below the <em>// form</em> comment in our file: </p><div ><table><tbody><tr><td  >&#x3C;form id=&#x22;form&#x22; class=&#x22;hidden&#x22;&#x3E; &#x3C;label for=&#x22;title&#x22;&#x3E;Title: &#x3C;/label&#x3E; &#x3C;input type=&#x22;text&#x22; id=&#x22;title&#x22; name=&#x22;title&#x22; /&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;description&#x22;&#x3E;Description: &#x3C;/label&#x3E; &#x3C;textarea id=&#x22;description&#x22; name=&#x22;description&#x22;&#x3E;&#x3C;/textarea&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;yor&#x22;&#x3E;Year: &#x3C;/label&#x3E; &#x3C;select id=&#x22;yor&#x22; name=&#x22;yor&#x22;&#x3E; &#x3C;script&#x3E;&#x9; let dateDropdown = document.getElementById(&#x27;yor&#x27;); &#x9; let yearCounter = 1997;&#x9; while (yearCounter &#x3E;= 1970) { &#x9; let dateOption = document.createElement(&#x27;option&#x27;); &#x9; dateOption.text = yearCounter; &#x9; dateOption.value = yearCounter; &#x9; dateDropdown.add(dateOption); &#x9; yearCounter -= 1; &#x9; } &#x3C;/script&#x3E; &#x3C;/select&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;publisher&#x22;&#x3E;Publisher: &#x3C;/label&#x3E; &#x3C;input type=&#x22;text&#x22; id=&#x22;publisher&#x22; name=&#x22;publisher&#x22; /&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;genre&#x22;&#x3E;Genre: &#x3C;/label&#x3E; &#x3C;select id=&#x22;genre&#x22; name=&#x22;genre&#x22;&#x3E; &#x3C;option value=&#x22;Adventure&#x22;&#x3E;Adventure&#x3C;/option&#x3E; &#x3C;option value=&#x22;Platform&#x22;&#x3E;Platform&#x3C;/option&#x3E; &#x3C;option value=&#x22;Shooter&#x22;&#x3E;Shooter&#x3C;/option&#x3E; &#x3C;option value=&#x22;Strategy&#x22;&#x3E;Strategy&#x3C;/option&#x3E; &#x3C;/select&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;input type=&#x22;submit&#x22; id=&#x22;create&#x22; value=&#x22;Create&#x22; /&#x3E; &#x3C;input type=&#x22;submit&#x22; id=&#x22;update&#x22; value=&#x22;Update&#x22; /&#x3E; &#x3C;input type=&#x22;submit&#x22; id=&#x22;delete&#x22; value=&#x22;Delete&#x22; /&#x3E; &#x3C;input type=&#x22;reset&#x22; id=&#x22;cancel&#x22; value=&#x22;Cancel&#x22; onclick=&#x22;hideform();&#x22;/&#x3E;&#x3C;/form&#x3E;</td></tr></tbody></table></div><p>The embedded JavaScript generates the years for which we're tracking games dynamically in our dropdown. </p><p>Note that the form has a <em>hidden</em> class, which we defined using the internal CSS code at the start of our document. Any element with that class is invisible, meaning we can turn it on and off at will. </p><p>We'll set up the basic framework to turn our multi-purpose form on and off inside the <em>&#x3C;script&#x3E;</em> tabs we created in our <em>// Javascript</em> section. </p><p>We'll start by defining constants reflecting the elements in our form, beginning with the form itself. This makes them easier to manipulate later: </p><div ><table><tbody><tr><td  >const myForm = document.getElementById(&#x22;form&#x22;);const titleInput = document.getElementById(&#x27;title&#x27;);const descriptionInput = document.getElementById(&#x27;description&#x27;);const yorInput = document.getElementById(&#x27;yor&#x27;);const publisherInput = document.getElementById(&#x27;publisher&#x27;);const genreInput = document.getElementById(&#x27;genre&#x27;);const createButton = document.getElementById(&#x22;create&#x22;);const updateButton = document.getElementById(&#x22;update&#x22;);const deleteButton = document.getElementById(&#x22;delete&#x22;);const cancelButton = document.getElementById(&#x22;cancel&#x22;);</td></tr></tbody></table></div><p>Now we'll create a function to hide and show the form. We can give it a button to create, update, or delete a record, making it a multi-purpose form. We display and hide the appropriate buttons based on a <em>task</em> parameter that we pass to this function. If we're creating a form, then we'll ensure it's cleared and that only the <em>createButton</em> is showing (along with the cancel button, which is always displayed). Note that this form also recognises a <em>read</em> task. That's because we’re also using this form to display game records, giving the viewer the chance to update them. </p><div ><table><tbody><tr><td  >function showform(task) { if (task == &#x27;create&#x27;) {&#x9;myForm.reset();&#x9;createButton.setAttribute(&#x22;class&#x22;, &#x22;&#x22;);&#x9;updateButton.setAttribute(&#x22;class&#x22;, &#x22;hidden&#x22;); } if (task == &#x27;read&#x27;) {&#x9;createButton.setAttribute(&#x22;class&#x22;, &#x22;hidden&#x22;);&#x9;updateButton.setAttribute(&#x22;class&#x22;, &#x22;&#x22;); } myForm.setAttribute(&#x22;class&#x22;, &#x22;&#x22;);}</td></tr></tbody></table></div><p>Finally, we'll create a function to hide our form. </p><div ><table><tbody><tr><td  >function hideform() { myForm.reset(); myForm.setAttribute(&#x22;class&#x22;, &#x22;hidden&#x22;); }</td></tr></tbody></table></div><p>Notice that our cancel button already has an <em>onclick</em> event handler to execute this function.</p><p>Now we'll use this to display the form with the necessary controls to create a record. We'll do this with a link that will open the form. This goes in the HTML section of the page, just underneath the <em>// controls</em> section:</p><div ><table><tbody><tr><td  >&#x3C;div id=&#x22;newgame&#x22;&#x3E;&#x3C;a href=&#x22;#&#x22; onclick=&#x22;showform(&#x27;create&#x27;)&#x22;&#x3E;New Game&#x3C;/a&#x3E;&#x3C;/div&#x3E;</td></tr></tbody></table></div><p>When the user clicks on this, the form will appear with a <em>create</em> button. </p><h3 class="article-body__section" id="section-creating"><span>Creating </span></h3><p>To manipulate our records, including creating them, we'll use a technique called asynchronous JavaScript and XML (AJAX). This helps us to organise our requests in the browser, send them to the server, and then update the display on the browser side. </p><p>The advantage of doing it this way is that we won't have to query the database after creating, updating, or reading a record. We won't have to reload the entire web page after these actions, either. This creates a smoother experience for the user, who won’t have to wait while the page refreshes. Instead, things will look more seamless and instant, as new information will appear on the page straight away. </p><p>To make this happen, we'll update specific records in the browser using a JavaScript API called Fetch. This sends and retrieves records from a server using JSON, which is a standard format for exchanging data between web apps and browsers. </p><p>We trigger the function when our <em>createButton</em> is clicked. Although it's a form submission button, we'll grab control of it so that our JavaScript can define what it does. </p><div ><table><tbody><tr><td  >createButton.onclick = function (e) { e.preventDefault();</td></tr></tbody></table></div><p>Now we use <em>fetch</em> to capture the form input and encode it in JSON format: </p><div ><table><tbody><tr><td  >const response = fetch('/games/create', {method: 'POST',body: JSON.stringify({ 'title': titleInput.value, 'description': descriptionInput.value, 'yor': yorInput.value, 'publisher': publisherInput.value, 'genre': genreInput.value}),headers: { 'Content-Type': 'application/json',}})</td></tr></tbody></table></div><p><em>fetch</em> points to what looks like a folder on the server called <em>/games/create/</em>. This is another application route, which tells the server that we want to create a file. Before we write that code, we'll finish this function by defining what we want to do with the response from the server. </p><p>The <em>fetch</em> API represents the server's response as an object called a ‘promise’, which handles all the timeout and callback housekeeping you'd normally have to do when dealing synchronously with the server. It's called <em>response</em>, and we can turn it into a usable format by passing it through a <em>json</em> method. </p><p>From there, we create an <em>&#x3C;a&#x3E;</em> tag in JavaScript, populate it with the response's <em>title</em> property, and give it the ID that the server sent back. That gives us enough information to list it dynamically on the page as a new game, all without reloading the page: </p><div ><table><tbody><tr><td  >.then(response =&#x3E; response.json()).then(jsonResponse =&#x3E; { const li = document.createElement(&#x22;li&#x22;); const a = document.createElement(&#x22;a&#x22;); a.textContent = jsonResponse.title; a.setAttribute(&#x22;id&#x22;, jsonResponse.id); a.setAttribute(&#x22;href&#x22;, &#x22;#&#x22;); li.append(a); li.addEventListener(&#x22;click&#x22;, readGame) document.getElementById(&#x27;games&#x27;).appendChild(li);})hideform();}</td></tr></tbody></table></div><p>Now we must write the code for the controller on the server. We'll define this as a route, much like our existing index page route, only longer: </p><div ><table><tbody><tr><td  >@app.route(&#x27;/games/create&#x27;, methods=[&#x27;POST&#x27;])def create_game(): try: title = request.get_json()[&#x27;title&#x27;] description = request.get_json()[&#x27;description&#x27;] yor = request.get_json()[&#x27;yor&#x27;] publisher = request.get_json()[&#x27;publisher&#x27;] genre = request.get_json()[&#x27;genre&#x27;] game = Game(title=title, description=description, yor=yor, publisher=publisher, genre=genre) db.session.add(game) db.session.commit() except: db.session.rollback() finally: return jsonify({&#x27;title&#x27;:game.title, &#x27;id&#x27;:game.id}) db.session.close()</td></tr></tbody></table></div><p>Notice how this route mirrors the action defined in our form, meaning that it will be invoked on the server side by the <em>fetch</em> command. First, this route's function uses the <em>request</em> library that we imported at the beginning to gather values from the form's various fields. Then it creates an instance of the Game class and populates it with that data. </p><p>That will be the record that SQLAlchemy's object-relational manager writes to the server. It commits that transaction to the database, unless there's an error, in which case it rolls back that transaction. If all goes well, it returns the title of the game as written and the ID of the new record in the database to the browser. </p><h3 class="article-body__section" id="section-reading"><span>Reading </span></h3><p>We've included all the buttons we need to create, update, and delete records, but what about reading them? To handle this, we'll set an event handler on each of the games listed on our page. When we click on a game, its details will appear in our form, and we'll get the opportunity to update its records. We can do this because we already used Jinja to set the ID of each title's <em>&#x3C;a&#x3E;</em> tag as its game's ID in the database. Here's the code to iterate over the items in the list: </p><div ><table><tbody><tr><td  >var li = document.getElementsByTagName(&#x22;li&#x22;);for(var i = 0;i&#x3C;li.length;i++){ li[i].addEventListener(&#x22;click&#x22;, readGame)}</td></tr></tbody></table></div><p>When we click on a list item containing an <em>&#x3C;a&#x3E;</em> tag with an ID, it triggers the <em>readgame</em> function. This is why it was so important to include an <em>id</em> attribute and an event handler when adding the new game that we created to our list; it had to be clickable, otherwise we'd end up with a list of clickable ones and a non-interactive one at the end. </p><p>Next, add the function to read game data to your JavaScript section: </p><div ><table><tbody><tr><td  >function readGame(e){ const gameID = e.target.attributes.id.value const response = fetch(&#x27;/games/&#x27; + gameID + &#x27;/read&#x27;, {&#x9;method: &#x27;POST&#x27;,&#x9;body: JSON.stringify({&#x9;&#x27;title&#x27;: titleInput.value,&#x9;&#x27;description&#x27;: descriptionInput.value,&#x9;&#x27;yor&#x27;: yorInput.value,&#x9;&#x27;publisher&#x27;: publisherInput.value,&#x9; &#x27;genre&#x27;: genreInput.value&#x9;}),&#x9;headers: {&#x9; &#x27;Content-Type&#x27;: &#x27;application/json&#x27;,&#x9;} })&#x9; .then(response =&#x3E; response.json())&#x9; .then(jsonResponse =&#x3E; {&#x9; titleInput.value = jsonResponse.title;&#x9; descriptionInput.value = jsonResponse.description;&#x9; yorInput.value = jsonResponse.yor;&#x9; publisherInput.value = jsonResponse.publisher;&#x9; genreInput.value = jsonResponse.genre;&#x9; }) updateButton.setAttribute(&#x22;data-id&#x22;, gameID); deleteButton.setAttribute(&#x22;data-id&#x22;, gameID); showform(&#x27;read&#x27;);}</td></tr></tbody></table></div><p>It's a pointer to another route, which queries the controller on the server and inserts its response into the relevant fields of the form. It also changes the <em>data-id</em> attributes of both the <em>updateButton</em> and the <em>deleteButton</em> to the ID of the game that we clicked on, which it got from the <em>id</em> attribute of the game's <em>&#x3C;a&#x3E;</em> tag. This is crucial for updating or deleting a game, because we have to send its ID to the controller route on the server. </p><h3 class="article-body__section" id="section-updating"><span>Updating </span></h3><p>When we click the update button, we’ll send the form's contents to the controller, which will use the update route to look up the corresponding record in the database and then replace its data with the new data that we entered into the form. Here's the JavaScript function to send that update: </p><div ><table><tbody><tr><td  >updateButton.onclick = function (e) { e.preventDefault(); const gameID = updateButton.getAttribute(&#x22;data-id&#x22;); const response = fetch(&#x27;/games/&#x27; + gameID + &#x27;/update&#x27;, {&#x9;method: &#x27;POST&#x27;,&#x9;body: JSON.stringify({&#x9; &#x27;title&#x27;: titleInput.value,&#x9; &#x27;description&#x27;: descriptionInput.value,&#x9; &#x27;yor&#x27;: yorInput.value,&#x9; &#x27;publisher&#x27;: publisherInput.value,&#x9; &#x27;genre&#x27;: genreInput.value&#x9;}),&#x9;headers: {&#x9; &#x27;Content-Type&#x27;: &#x27;application/json&#x27;,&#x9;} })&#x9; .then(response =&#x3E; response.json())&#x9; .then(jsonResponse =&#x3E; {&#x9; const gameBullet = document.getElementById(gameID);&#x9; gameBullet.innerText = jsonResponse.title;&#x9; }) hideform();}</td></tr></tbody></table></div><p>We kick off the function when the update button is clicked. Notice that this time, the route in our <em>fetch</em> command has the game's ID inserted into it so that the server knows which game it is updating. When the response comes back, we also update the game's title on the page in case that was one of the fields that we changed. We do that by searching for the <em>&#x3C;a&#x3E;</em> tag with the game's ID and then changing its text. </p><p>Here's the corresponding controller function on the server: </p><div ><table><tbody><tr><td  >@app.route(&#x27;/games/&#x3C;game_id&#x3E;/update&#x27;, methods=[&#x27;POST&#x27;])def update_game(game_id): try:&#x9;title = request.get_json()[&#x27;title&#x27;]&#x9;description = request.get_json()[&#x27;description&#x27;]&#x9;yor = request.get_json()[&#x27;yor&#x27;]&#x9;publisher = request.get_json()[&#x27;publisher&#x27;]&#x9;genre = request.get_json()[&#x27;genre&#x27;] &#x9;game=Game.query.get(game_id)&#x9;game.title = title&#x9;game.description = description&#x9;game.yor = yor&#x9;game.publisher = publisher&#x9;game.genre = genre&#x9;db.session.query(Game).filter_by(id=game_id).update \&#x9; ({&#x22;title&#x22;: title, &#x22;description&#x22;: description, &#x22;yor&#x22;: yor, \&#x9; &#x22;publisher&#x22;: publisher, &#x22;genre&#x22;: genre}, synchronize_session=&#x27;fetch&#x27;)&#x9;db.session.commit() except: db.session.rollback() finally: return jsonify({ &#x27;title&#x27;:game.title, }) db.session.close()</td></tr></tbody></table></div><p>This code uses the familiar block structure for error handling. It extracts the form data sent to it in JSON format and then uses the game ID in the route to look up the appropriate record in the database, extracting that information into an instance of the <em>Game</em> class. It then replaces all of those properties with the new ones from the JSON file and uses SQLAlchemy to update the record with the new data. Finally, it returns the title for the view to update its list with. </p><h3 class="article-body__section" id="section-deleting"><span>Deleting</span></h3><p>All that remains now is the delete part of our CRUD application, which is relatively simple. On the client side, this goes into our JavaScript section: </p><div ><table><tbody><tr><td  >deleteButton.onclick = function (e) { e.preventDefault(); const gameID = deleteButton.getAttribute(&#x22;data-id&#x22;); const response = fetch(&#x27;/games/&#x27; + gameID + &#x27;/delete&#x27;, {&#x9;method: &#x27;DELETE&#x27; })&#x9; .then(response =&#x3E; response.json())&#x9; .then(jsonResponse =&#x3E; {&#x9; const gameText = document.getElementById(gameID);&#x9; gameText.parentNode.parentNode.removeChild(gameText.parentNode);&#x9; }) hideform();}</td></tr></tbody></table></div><p>Note the use of the <em>DELETE</em> method rather than <em>POST</em>. Once again, this function sends the game's ID in the request. When the server confirms that it's deleted the game in its JSON response, the function deletes the <em>&#x3C;li&#x3E;</em> element containing the game's <em>&#x3C;a&#x3E;</em> tag. </p><div ><table><tbody><tr><td  >@app.route(&#x27;/games/&#x3C;game_id&#x3E;/delete&#x27;, methods=[&#x27;DELETE&#x27;])def delete_game(game_id): try:&#x9;game=Game.query.get(game_id)&#x9;db.session.delete(game)&#x9;db.session.commit()&#x9;db.session.close() except:&#x9;error = True&#x9;db.session.rollback() finally:&#x9;db.session.close() return jsonify({&#x27;success&#x27;:True})</td></tr></tbody></table></div><p>All it needs to send back in the JSON response is confirmation. </p><p>There are lots more tweaks that <a href="https://www.itpro.com/software/development/356827/how-to-become-a-developer-a-beginners-guide" data-original-url="https://www.itpro.com/software/development/356827/how-to-become-a-developer-a-beginners-guide">a competent developer</a> should make to this app before putting it into production. Field input validation, displaying error messages, ordering the games alphabetically, and styling it properly with CSS are just a few items on the to-do list. Not to mention tackling security properly with a well-structured environment variable system so that you don't store secrets in the source code. </p><p>Nevertheless, this demonstrates the basic functionality of an AJAX-enabled CRUD application. It has the bare bones of a web app that you could use to build more sophisticated controllers and more complex views. </p><p>The source code below, listed in full, would be a useful place to begin tinkering and making your own improvements. Things to consider include splitting up the CRUD interactions into multiple views, so that you can have separate screens to read files that you don’t want to update. That would also enable you to support different classes of user that don’t have update or delete privileges, which would be another thing on the to-do list for a production-ready application.</p><p>Other enhancements would include adding more data for the games (including images) and also enhancing the underlying database schema to use multiple tables with joins. Having separate tables for publisher and genre would stop you having to store the same data in multiple fields, and also makes it easier to list games that span different genres and have multiple publishers..</p><p>There’s <a href="https://www.itpro.com/development/34728/learn-to-code-for-free-the-best-uk-coding-and-app-development-courses" data-original-url="https://www.itpro.com/development/34728/learn-to-code-for-free-the-best-uk-coding-and-app-development-courses">a lot more to learn</a> about full stack development, and there are lots of different ways to code an application even as simple as this one. Hopefully, though, this will have given you a taste of what is a difficult but ultimately rewarding activity.</p><h3 class="article-body__section" id="section-retronerds-py"><span>retronerds.py </span></h3><div ><table><tbody><tr><td  >class Game(db.Model): __tablename__ = &#x27;games&#x27; id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(255), nullable=False) description = db.Column(db.String(1024), nullable=False) yor = db.Column(db.Integer, nullable=False) publisher = db.Column(db.String(255), nullable=False) genre = db.Column(db.String(255), nullable=False) db.create_all() @app.route(&#x27;/&#x27;)def index(): return render_template(&#x27;index.html&#x27;, games=Game.query.all()) @app.route(&#x27;/games/create&#x27;, methods=[&#x27;POST&#x27;])def create_game(): try: title = request.get_json()[&#x27;title&#x27;] description = request.get_json()[&#x27;description&#x27;] yor = request.get_json()[&#x27;yor&#x27;] publisher = request.get_json()[&#x27;publisher&#x27;] genre = request.get_json()[&#x27;genre&#x27;] game = Game(title=title, description=description, yor=yor, publisher=publisher, genre=genre) db.session.add(game) db.session.commit() except: db.session.rollback() finally: return jsonify({&#x27;title&#x27;:game.title, &#x27;id&#x27;:game.id}) db.session.close() @app.route(&#x27;/games/&#x3C;game_id&#x3E;/read&#x27;, methods=[&#x27;POST&#x27;])def read_game(game_id): game=Game.query.get(game_id) return jsonify({&#x9;&#x27;title&#x27;:game.title,&#x9;&#x27;description&#x27;:game.description,&#x9;&#x27;yor&#x27;:game.yor,&#x9;&#x27;publisher&#x27;:game.publisher,&#x9;&#x27;genre&#x27;:game.genre }) @app.route(&#x27;/games/&#x3C;game_id&#x3E;/update&#x27;, methods=[&#x27;POST&#x27;])def update_game(game_id): error = False try:&#x9;title = request.get_json()[&#x27;title&#x27;]&#x9;description = request.get_json()[&#x27;description&#x27;]&#x9;yor = request.get_json()[&#x27;yor&#x27;]&#x9;publisher = request.get_json()[&#x27;publisher&#x27;]&#x9;genre = request.get_json()[&#x27;genre&#x27;] &#x9;game=Game.query.get(game_id)&#x9;game.title = title&#x9;game.description = description&#x9;game.yor = yor&#x9;game.publisher = publisher&#x9;game.genre = genre&#x9;db.session.query(Game).filter_by(id=game_id).update ({&#x22;title&#x22;: title, &#x22;description&#x22;: description, &#x22;yor&#x22;: yor, &#x22;publisher&#x22;: publisher, &#x22;genre&#x22;: genre}, synchronize_session=&#x27;fetch&#x27;)&#x9;db.session.commit() except: db.session.rollback() finally: return jsonify({ &#x27;title&#x27;:game.title, }) db.session.close() @app.route(&#x27;/games/&#x3C;game_id&#x3E;/delete&#x27;, methods=[&#x27;DELETE&#x27;])def delete_game(game_id): try:&#x9;game=Game.query.get(game_id)&#x9;db.session.delete(game)&#x9;db.session.commit()&#x9;db.session.close() except:&#x9;error = True&#x9;db.session.rollback() finally:&#x9;db.session.close() return jsonify({&#x27;success&#x27;:True}) if __name__ == &#x27;__main__&#x27;: app.run()</td></tr></tbody></table></div><h3 class="article-body__section" id="section-index-html"><span>index.html </span></h3><div ><table><tbody><tr><td  >&#x3C;!doctype html&#x3E; &#x3C;html lang=&#x22;en&#x22;&#x3E;&#x3C;head&#x3E; &#x3C;meta charset=&#x22;utf-8&#x22;&#x3E; &#x3C;title&#x3E;RetroNerds&#x3C;/title&#x3E; &#x3C;meta name=&#x22;description&#x22; content=&#x22;Old Games for Old Geeks&#x22;&#x3E; &#x3C;meta name=&#x22;author&#x22; content=&#x22;IT Pro&#x22;&#x3E; &#x3C;style&#x3E; .hidden {display:none} &#x3C;/style&#x3E;&#x3C;/head&#x3E; &#x3C;body&#x3E; &#x3C;ul id=&#x22;games&#x22;&#x3E; {% for g in games %} &#x3C;li&#x3E;&#x3C;a id=&#x22;{{ g.id }}&#x22; href=&#x22;#&#x22;&#x3E;{{ g.title }}&#x3C;/a&#x3E; &#x3C;/li&#x3E; {% endfor %} &#x3C;/ul&#x3E; &#x3C;div id=&#x22;newgame&#x22;&#x3E;&#x3C;a href=&#x22;#&#x22; onclick=&#x22;showform(&#x27;create&#x27;)&#x22;&#x3E;New Game&#x3C;/a&#x3E;&#x3C;/div&#x3E; &#x3C;form id=&#x22;form&#x22; class=&#x22;hidden&#x22;&#x3E; &#x3C;label for=&#x22;title&#x22;&#x3E;Title: &#x3C;/label&#x3E; &#x3C;input type=&#x22;text&#x22; id=&#x22;title&#x22; name=&#x22;title&#x22; /&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;description&#x22;&#x3E;Description: &#x3C;/label&#x3E; &#x3C;textarea id=&#x22;description&#x22; name=&#x22;description&#x22;&#x3E;&#x3C;/textarea&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;yor&#x22;&#x3E;Year: &#x3C;/label&#x3E; &#x3C;select id=&#x22;yor&#x22; name=&#x22;yor&#x22;&#x3E;&#x9;&#x3C;script&#x3E;&#x9; let dateDropdown = document.getElementById(&#x27;yor&#x27;); &#x9; let yearCounter = 1997;&#x9; while (yearCounter &#x3E;= 1970) { &#x9; let dateOption = document.createElement(&#x27;option&#x27;); &#x9; dateOption.text = yearCounter; &#x9; dateOption.value = yearCounter; &#x9; dateDropdown.add(dateOption); &#x9; yearCounter -= 1; &#x9; }&#x9;&#x3C;/script&#x3E; &#x3C;/select&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;publisher&#x22;&#x3E;Publisher: &#x3C;/label&#x3E; &#x3C;input type=&#x22;text&#x22; id=&#x22;publisher&#x22; name=&#x22;publisher&#x22; /&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;genre&#x22;&#x3E;Genre: &#x3C;/label&#x3E; &#x3C;select id=&#x22;genre&#x22; name=&#x22;genre&#x22;&#x3E;&#x9;&#x3C;option value=&#x22;Adventure&#x22;&#x3E;Adventure&#x3C;/option&#x3E;&#x9;&#x3C;option value=&#x22;Platform&#x22;&#x3E;Platform&#x3C;/option&#x3E;&#x9;&#x3C;option value=&#x22;Shooter&#x22;&#x3E;Shooter&#x3C;/option&#x3E;&#x9;&#x3C;option value=&#x22;Strategy&#x22;&#x3E;Strategy&#x3C;/option&#x3E; &#x3C;/select&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;input type=&#x22;submit&#x22; id=&#x22;create&#x22; value=&#x22;Create&#x22; /&#x3E; &#x3C;input type=&#x22;submit&#x22; id=&#x22;update&#x22; value=&#x22;Update&#x22; /&#x3E; &#x3C;input type=&#x22;submit&#x22; id=&#x22;delete&#x22; value=&#x22;Delete&#x22; /&#x3E; &#x3C;input type=&#x22;reset&#x22; id=&#x22;cancel&#x22; value=&#x22;Cancel&#x22; onclick=&#x22;hideform();&#x22;/&#x3E; &#x3C;/form&#x3E; &#x3C;script&#x3E; const titleInput = document.getElementById(&#x27;title&#x27;); const descriptionInput = document.getElementById(&#x27;description&#x27;); const yorInput = document.getElementById(&#x27;yor&#x27;); const publisherInput = document.getElementById(&#x27;publisher&#x27;); const genreInput = document.getElementById(&#x27;genre&#x27;); const myForm = document.getElementById(&#x22;form&#x22;); const createButton = document.getElementById(&#x22;create&#x22;); const updateButton = document.getElementById(&#x22;update&#x22;); const deleteButton = document.getElementById(&#x22;delete&#x22;); const cancelButton = document.getElementById(&#x22;cancel&#x22;); function showform(task) {&#x9;if (task == &#x27;create&#x27;) {&#x9; myForm.reset();&#x9; createButton.setAttribute(&#x22;class&#x22;, &#x22;&#x22;);&#x9; updateButton.setAttribute(&#x22;class&#x22;, &#x22;hidden&#x22;);&#x9;}&#x9;if (task == &#x27;read&#x27;) {&#x9; createButton.setAttribute(&#x22;class&#x22;, &#x22;hidden&#x22;);&#x9; updateButton.setAttribute(&#x22;class&#x22;, &#x22;&#x22;);&#x9;}&#x9;myForm.setAttribute(&#x22;class&#x22;, &#x22;&#x22;); } function hideform() {&#x9;myForm.reset();&#x9;myForm.setAttribute(&#x22;class&#x22;, &#x22;hidden&#x22;); } createButton.onclick = function (e) {&#x9;e.preventDefault();&#x9;const response = fetch(&#x27;/games/create&#x27;, {&#x9;method: &#x27;POST&#x27;,&#x9;body: JSON.stringify({&#x9; &#x27;title&#x27;: titleInput.value,&#x9; &#x27;description&#x27;: descriptionInput.value,&#x9; &#x27;yor&#x27;: yorInput.value,&#x9; &#x27;publisher&#x27;: publisherInput.value,&#x9; &#x27;genre&#x27;: genreInput.value&#x9;}),&#x9;headers: {&#x9; &#x27;Content-Type&#x27;: &#x27;application/json&#x27;,&#x9;}&#x9;}) .then(response =&#x3E; response.json()) .then(jsonResponse =&#x3E; {&#x9;const li = document.createElement(&#x22;li&#x22;);&#x9;const a = document.createElement(&#x22;a&#x22;);&#x9;a.textContent = jsonResponse.title;&#x9;a.setAttribute(&#x22;id&#x22;, jsonResponse.id);&#x9;a.setAttribute(&#x22;href&#x22;, &#x22;#&#x22;);&#x9;li.append(a);&#x9;li.addEventListener(&#x22;click&#x22;, readGame)&#x9;document.getElementById(&#x27;games&#x27;).appendChild(li); }) hideform(); } var li = document.getElementsByTagName(&#x22;li&#x22;); for(var i = 0;i&#x3C;li.length;i++){&#x9;li[i].addEventListener(&#x22;click&#x22;, readGame) } function readGame(e){&#x9;const gameID = e.target.attributes.id.value&#x9;const response = fetch(&#x27;/games/&#x27; + gameID + &#x27;/read&#x27;, {&#x9; method: &#x27;POST&#x27;,&#x9; body: JSON.stringify({&#x9; &#x27;title&#x27;: titleInput.value,&#x9; &#x27;description&#x27;: descriptionInput.value,&#x9; &#x27;yor&#x27;: yorInput.value,&#x9; &#x27;publisher&#x27;: publisherInput.value,&#x9;&#x9;&#x27;genre&#x27;: genreInput.value&#x9; }),&#x9; headers: {&#x9;&#x9;&#x27;Content-Type&#x27;: &#x27;application/json&#x27;,&#x9; }&#x9;})&#x9; .then(response =&#x3E; response.json())&#x9; .then(jsonResponse =&#x3E; {&#x9;&#x9; titleInput.value = jsonResponse.title;&#x9;&#x9; descriptionInput.value = jsonResponse.description;&#x9;&#x9; yorInput.value = jsonResponse.yor;&#x9;&#x9; publisherInput.value = jsonResponse.publisher;&#x9;&#x9; genreInput.value = jsonResponse.genre;&#x9; })&#x9;updateButton.setAttribute(&#x22;data-id&#x22;, gameID);&#x9;deleteButton.setAttribute(&#x22;data-id&#x22;, gameID);&#x9;showform(&#x27;read&#x27;); } updateButton.onclick = function (e) {&#x9;e.preventDefault();&#x9;const gameID = updateButton.getAttribute(&#x22;data-id&#x22;);&#x9;const response = fetch(&#x27;/games/&#x27; + gameID + &#x27;/update&#x27;, {&#x9; method: &#x27;POST&#x27;,&#x9; body: JSON.stringify({&#x9;&#x9;&#x27;title&#x27;: titleInput.value,&#x9;&#x9;&#x27;description&#x27;: descriptionInput.value,&#x9;&#x9;&#x27;yor&#x27;: yorInput.value,&#x9;&#x9;&#x27;publisher&#x27;: publisherInput.value,&#x9;&#x9;&#x27;genre&#x27;: genreInput.value&#x9; }),&#x9; headers: {&#x9;&#x9;&#x27;Content-Type&#x27;: &#x27;application/json&#x27;,&#x9; }&#x9;})&#x9; .then(response =&#x3E; response.json())&#x9; .then(jsonResponse =&#x3E; {&#x9;&#x9; const gameBullet = document.getElementById(gameID);&#x9;&#x9; gameBullet.innerText = jsonResponse.title;&#x9; }) &#x9;hideform(); } deleteButton.onclick = function (e) {&#x9;e.preventDefault();&#x9;const gameID = deleteButton.getAttribute(&#x22;data-id&#x22;);&#x9;const response = fetch(&#x27;/games/&#x27; + gameID + &#x27;/delete&#x27;, {&#x9; method: &#x27;DELETE&#x27;&#x9;})&#x9; .then(response =&#x3E; response.json())&#x9; .then(jsonResponse =&#x3E; {&#x9;&#x9; const gameText = document.getElementById(gameID);&#x9;&#x9; gameText.parentNode.parentNode.removeChild(gameText.parentNode);&#x9; })&#x9;hideform(); } &#x3C;/script&#x3E;&#x3C;/body&#x3E;&#x3C;/html&#x3E;</td></tr></tbody></table></div> ]]></dc:content>
                                                                                                                                            <link>https://www.itpro.com/development/ajax/360007/building-an-ajax-based-crud-app-in-flask</link>
                                                                            <description>
                            <![CDATA[ How to put the finishing touches on a basic web application ]]>
                                                                                                            </description>
                                                                                                                                <guid isPermaLink="false">yipVj3MU3cHA5SaaQqY7</guid>
                                                                                                <enclosure url="https://cdn.mos.cms.futurecdn.net/GtdaHBCp7uBnPT9wLJ6fTf-1920-80.jpg" type="image/jpeg" length="0"></enclosure>
                                                                        <pubDate>Fri, 25 Jun 2021 12:40:49 +0000</pubDate>                                                                                                                                <updated>Thu, 19 Nov 2026 19:51:41 +0000</updated>
                                                                                                                                            <category><![CDATA[Software Engineering]]></category>
                                                                                                                    <dc:creator><![CDATA[ Danny Bradbury ]]></dc:creator>                                                                                    <dc:source><![CDATA[ https://cdn.mos.cms.futurecdn.net/HdKafzrfv3Z6M5axRN8fhh-320-70.jpeg ]]></dc:source>
                                                                <dc:description><![CDATA[ null ]]></dc:description>
                                                                                                                                <cf:isSponsored>false</cf:isSponsored>
                <cf:hasAffiliateLinks>false</cf:hasAffiliateLinks>
                <cf:isPaid>false</cf:isPaid>
                                                                                                                                                                                    <media:content type="image/jpeg" url="https://cdn.mos.cms.futurecdn.net/GtdaHBCp7uBnPT9wLJ6fTf-1920-80.jpg">
                                                            <media:credit><![CDATA[null]]></media:credit>
                                                                                                                                                                                                                                    <media:description><![CDATA[An illustration of the word Ajax on a background of computer code over an open laptop]]></media:description>                                                            <media:text><![CDATA[An illustration of the word Ajax on a background of computer code over an open laptop]]></media:text>
                                <media:title type="plain"><![CDATA[An illustration of the word Ajax on a background of computer code over an open laptop]]></media:title>
                                                    </media:content>
                                                    <media:thumbnail url="https://cdn.mos.cms.futurecdn.net/GtdaHBCp7uBnPT9wLJ6fTf-1920-80.jpg" />
                                                                                                                                                                    <content:encoded >
                            <![CDATA[
                            <article>
                                <p>Full stack development is no easy task, and even a simple application can involve a lot of moving parts. To help you get to grips with some of the processes and requirements involved, this is the final article in a three-part series that takes us through building a basic web application. </p><p>In our case, it’s a basic app that curates details on a selection of retro video games. We’ve been using Postgres as our back-end database, and to interact with it, we’ve been using Flask, which is a lightweight framework for building web apps, supporting the Python programming language. </p><p>In our last two tutorials on Postgres and building a basic Flask app, we started building a create-read-update-delete (CRUD) application. This is the basic model for many web apps that handle records, backed by an online <a href="https://www.itpro.com/data-insights/31725/what-is-a-relational-database" data-original-url="https://www.itpro.com/data-insights/31725/what-is-a-relational-database">relational database</a>. We’ll be building on the work in those first two tutorials, which you can find <a href="https://www.itpro.com/development/software-development/359775/getting-started-with-postgres" data-original-url="https://www.itpro.com/development/software-development/359775/getting-started-with-postgres">here</a> and <a href="https://www.itpro.com/development/web-development/359842/how-to-build-a-basic-web-app-in-flask" data-original-url="https://www.itpro.com/development/web-development/359842/how-to-build-a-basic-web-app-in-flask">here</a>. In the final tutorial of the series, we'll flesh out our vintage video games app RetroNerds to cover all the CRUD features, using AJAX to make managing our database records a smoother process. </p><div  class="fancy-box"><div class="fancy_box-title"></div><div class="fancy_box_body"><p class="fancy-box__body-text"><a data-analytics-id="inline-link" href="https://www.itpro.com/data-insights/databases/357305/how-to-improve-database-costs-performance-and-value" data-original-url="/data-insights/databases/357305/how-to-improve-database-costs-performance-and-value">How to improve database costs, performance and value</a> <a data-analytics-id="inline-link" href="https://www.itpro.com/development/programming/359439/the-top-five-essential-vscode-extensions-for-your-2021-setup" data-original-url="/development/programming/359439/the-top-five-essential-vscode-extensions-for-your-2021-setup">The top five essential VSCode extensions for your 2021 setup</a> <a data-analytics-id="inline-link" href="https://www.itpro.com/marketing-comms/content-management-system-cms/358703/how-to-build-a-cms-with-react-and-google" data-original-url="/marketing-comms/content-management-system-cms/358703/how-to-build-a-cms-with-react-and-google">How to build a CMS with React and Google Sheets</a></p></div></div><p>Our rudimentary app from the last tutorial used Python to render data from the database directly in HTML. As our application gets more complex, this will become <a href="https://www.itpro.com/data-insights/databases/358688/five-database-problems-and-how-to-solve-them" data-original-url="https://www.itpro.com/data-insights/databases/358688/five-database-problems-and-how-to-solve-them">less and less viable</a>. Instead, we need a framework to handle those different CRUD functions. Flask is based on a web application design pattern known as model-view-controller (MVC), and we'll use this as the basis for our app. </p><p>Think of MVC as having three layers. At the back is the ‘model’, which is the back-end database. We spent the first tutorial in this series setting up the database and using SQL to access it. In the second, we learned how to interact with it in the object-oriented format that Python understands, using a tool called SQLAlchemy. </p><p>The second part of the MVC framework is the controller. Think of this as a switchboard that directs different requests from the user. When we ask to create, read, update, or delete a record, it’s the controller that finds the right function to do it and then interacts with the model. </p><p>The controller does this using routes that point to different functions. We defined the most basic route - the one that gets triggered when you visit the RetroNerds index page - in the last tutorial. Our next task is to define routes covering all the CRUD functions. </p><p>The final part of the MVC is the view. This is the display that the user sees. It shows us our data and allows us to make requests. MVC views use templates to hold and update data dynamically. </p><p>We'll begin by importing Flask's template rendering library, along with several others that we'll need during this tutorial. Working with the previous tutorial's source code, update line one with an expanded list of packages: </p><div ><table><tbody><tr><td  >from flask import Flask, render_template, request, redirect, url_for, jsonify</td></tr></tbody></table></div><p>Now replace the <em>def index():</em> function in the <em>app.route('/')</em> section with this simplified code: </p><div ><table><tbody><tr><td  >def index(): return render_template(&#x27;index.html&#x27;, games=Game.query.all())</td></tr></tbody></table></div><p>Instead of looping through the results of our database query and generating the HTML manually, it renders the query inside a template called <em>index.html</em>. That template must sit inside the project file in a directory called <em>templates</em>. Create the directory, and put this in the <em>index.html</em> template: </p><div ><table><tbody><tr><td  >&#x3C;!doctype html&#x3E; &#x3C;html lang=&#x22;en&#x22;&#x3E;&#x3C;head&#x3E; &#x3C;meta charset=&#x22;utf-8&#x22;&#x3E; &#x3C;title&#x3E;RetroNerds&#x3C;/title&#x3E; &#x3C;meta name=&#x22;description&#x22; content=&#x22;Old Games for Old Geeks&#x22;&#x3E; &#x3C;meta name=&#x22;author&#x22; content=&#x22;IT Pro&#x22;&#x3E; &#x3C;style&#x3E; .hidden {display:none} &#x3C;/style&#x3E;&#x3C;/head&#x3E; &#x3C;body&#x3E; &#x3C;ul id=&#x22;games&#x22;&#x3E; {% for g in games %} &#x3C;li&#x3E;&#x3C;a id=&#x22;{{ g.id }}&#x22; href=&#x22;#&#x22;&#x3E;{{ g.title }}&#x3C;/a&#x3E; &#x3C;/li&#x3E; {% endfor %} &#x3C;/ul&#x3E; // controls // form // JavaScript &#x3C;script&#x3E; &#x3C;/script&#x3E;&#x3C;/body&#x3E;&#x3C;/html&#x3E;</td></tr></tbody></table></div><p>The key part here is inside the <em>&#x3C;ul&#x3E;</em> unordered list. Flask uses a templating language called Jinja, which we use to loop over the games in the query results that we passed from our <em>index</em> function. It puts each of the games' titles in a list element (<em>&#x3C;a&#x3E;</em>). </p><p>Stop your Flask app in the terminal if it's still running, and enter <em>export FLASK_ENV=development</em> in Linux or <em>$env:FLASK_ENV = "development"</em></p><p>in Windows Powershell. This puts Flask into development mode so that you can see any changes to your code without restarting the app. It also displays useful debug data if your app fails. Now run your app with <em>python3 retronerds.py</em> and visit the URL it gives you. Your game titles should now have been added to your template. </p><p>However, we still need to read the rest of the details for each record, and we need to create and delete new records. We'll use a single form for all these tasks. We'll insert the code for this form below the <em>// form</em> comment in our file: </p><div ><table><tbody><tr><td  >&#x3C;form id=&#x22;form&#x22; class=&#x22;hidden&#x22;&#x3E; &#x3C;label for=&#x22;title&#x22;&#x3E;Title: &#x3C;/label&#x3E; &#x3C;input type=&#x22;text&#x22; id=&#x22;title&#x22; name=&#x22;title&#x22; /&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;description&#x22;&#x3E;Description: &#x3C;/label&#x3E; &#x3C;textarea id=&#x22;description&#x22; name=&#x22;description&#x22;&#x3E;&#x3C;/textarea&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;yor&#x22;&#x3E;Year: &#x3C;/label&#x3E; &#x3C;select id=&#x22;yor&#x22; name=&#x22;yor&#x22;&#x3E; &#x3C;script&#x3E;&#x9; let dateDropdown = document.getElementById(&#x27;yor&#x27;); &#x9; let yearCounter = 1997;&#x9; while (yearCounter &#x3E;= 1970) { &#x9; let dateOption = document.createElement(&#x27;option&#x27;); &#x9; dateOption.text = yearCounter; &#x9; dateOption.value = yearCounter; &#x9; dateDropdown.add(dateOption); &#x9; yearCounter -= 1; &#x9; } &#x3C;/script&#x3E; &#x3C;/select&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;publisher&#x22;&#x3E;Publisher: &#x3C;/label&#x3E; &#x3C;input type=&#x22;text&#x22; id=&#x22;publisher&#x22; name=&#x22;publisher&#x22; /&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;genre&#x22;&#x3E;Genre: &#x3C;/label&#x3E; &#x3C;select id=&#x22;genre&#x22; name=&#x22;genre&#x22;&#x3E; &#x3C;option value=&#x22;Adventure&#x22;&#x3E;Adventure&#x3C;/option&#x3E; &#x3C;option value=&#x22;Platform&#x22;&#x3E;Platform&#x3C;/option&#x3E; &#x3C;option value=&#x22;Shooter&#x22;&#x3E;Shooter&#x3C;/option&#x3E; &#x3C;option value=&#x22;Strategy&#x22;&#x3E;Strategy&#x3C;/option&#x3E; &#x3C;/select&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;input type=&#x22;submit&#x22; id=&#x22;create&#x22; value=&#x22;Create&#x22; /&#x3E; &#x3C;input type=&#x22;submit&#x22; id=&#x22;update&#x22; value=&#x22;Update&#x22; /&#x3E; &#x3C;input type=&#x22;submit&#x22; id=&#x22;delete&#x22; value=&#x22;Delete&#x22; /&#x3E; &#x3C;input type=&#x22;reset&#x22; id=&#x22;cancel&#x22; value=&#x22;Cancel&#x22; onclick=&#x22;hideform();&#x22;/&#x3E;&#x3C;/form&#x3E;</td></tr></tbody></table></div><p>The embedded JavaScript generates the years for which we're tracking games dynamically in our dropdown. </p><p>Note that the form has a <em>hidden</em> class, which we defined using the internal CSS code at the start of our document. Any element with that class is invisible, meaning we can turn it on and off at will. </p><p>We'll set up the basic framework to turn our multi-purpose form on and off inside the <em>&#x3C;script&#x3E;</em> tabs we created in our <em>// Javascript</em> section. </p><p>We'll start by defining constants reflecting the elements in our form, beginning with the form itself. This makes them easier to manipulate later: </p><div ><table><tbody><tr><td  >const myForm = document.getElementById(&#x22;form&#x22;);const titleInput = document.getElementById(&#x27;title&#x27;);const descriptionInput = document.getElementById(&#x27;description&#x27;);const yorInput = document.getElementById(&#x27;yor&#x27;);const publisherInput = document.getElementById(&#x27;publisher&#x27;);const genreInput = document.getElementById(&#x27;genre&#x27;);const createButton = document.getElementById(&#x22;create&#x22;);const updateButton = document.getElementById(&#x22;update&#x22;);const deleteButton = document.getElementById(&#x22;delete&#x22;);const cancelButton = document.getElementById(&#x22;cancel&#x22;);</td></tr></tbody></table></div><p>Now we'll create a function to hide and show the form. We can give it a button to create, update, or delete a record, making it a multi-purpose form. We display and hide the appropriate buttons based on a <em>task</em> parameter that we pass to this function. If we're creating a form, then we'll ensure it's cleared and that only the <em>createButton</em> is showing (along with the cancel button, which is always displayed). Note that this form also recognises a <em>read</em> task. That's because we’re also using this form to display game records, giving the viewer the chance to update them. </p><div ><table><tbody><tr><td  >function showform(task) { if (task == &#x27;create&#x27;) {&#x9;myForm.reset();&#x9;createButton.setAttribute(&#x22;class&#x22;, &#x22;&#x22;);&#x9;updateButton.setAttribute(&#x22;class&#x22;, &#x22;hidden&#x22;); } if (task == &#x27;read&#x27;) {&#x9;createButton.setAttribute(&#x22;class&#x22;, &#x22;hidden&#x22;);&#x9;updateButton.setAttribute(&#x22;class&#x22;, &#x22;&#x22;); } myForm.setAttribute(&#x22;class&#x22;, &#x22;&#x22;);}</td></tr></tbody></table></div><p>Finally, we'll create a function to hide our form. </p><div ><table><tbody><tr><td  >function hideform() { myForm.reset(); myForm.setAttribute(&#x22;class&#x22;, &#x22;hidden&#x22;); }</td></tr></tbody></table></div><p>Notice that our cancel button already has an <em>onclick</em> event handler to execute this function.</p><p>Now we'll use this to display the form with the necessary controls to create a record. We'll do this with a link that will open the form. This goes in the HTML section of the page, just underneath the <em>// controls</em> section:</p><div ><table><tbody><tr><td  >&#x3C;div id=&#x22;newgame&#x22;&#x3E;&#x3C;a href=&#x22;#&#x22; onclick=&#x22;showform(&#x27;create&#x27;)&#x22;&#x3E;New Game&#x3C;/a&#x3E;&#x3C;/div&#x3E;</td></tr></tbody></table></div><p>When the user clicks on this, the form will appear with a <em>create</em> button. </p><h3 class="article-body__section" id="section-creating"><span>Creating </span></h3><p>To manipulate our records, including creating them, we'll use a technique called asynchronous JavaScript and XML (AJAX). This helps us to organise our requests in the browser, send them to the server, and then update the display on the browser side. </p><p>The advantage of doing it this way is that we won't have to query the database after creating, updating, or reading a record. We won't have to reload the entire web page after these actions, either. This creates a smoother experience for the user, who won’t have to wait while the page refreshes. Instead, things will look more seamless and instant, as new information will appear on the page straight away. </p><p>To make this happen, we'll update specific records in the browser using a JavaScript API called Fetch. This sends and retrieves records from a server using JSON, which is a standard format for exchanging data between web apps and browsers. </p><p>We trigger the function when our <em>createButton</em> is clicked. Although it's a form submission button, we'll grab control of it so that our JavaScript can define what it does. </p><div ><table><tbody><tr><td  >createButton.onclick = function (e) { e.preventDefault();</td></tr></tbody></table></div><p>Now we use <em>fetch</em> to capture the form input and encode it in JSON format: </p><div ><table><tbody><tr><td  >const response = fetch('/games/create', {method: 'POST',body: JSON.stringify({ 'title': titleInput.value, 'description': descriptionInput.value, 'yor': yorInput.value, 'publisher': publisherInput.value, 'genre': genreInput.value}),headers: { 'Content-Type': 'application/json',}})</td></tr></tbody></table></div><p><em>fetch</em> points to what looks like a folder on the server called <em>/games/create/</em>. This is another application route, which tells the server that we want to create a file. Before we write that code, we'll finish this function by defining what we want to do with the response from the server. </p><p>The <em>fetch</em> API represents the server's response as an object called a ‘promise’, which handles all the timeout and callback housekeeping you'd normally have to do when dealing synchronously with the server. It's called <em>response</em>, and we can turn it into a usable format by passing it through a <em>json</em> method. </p><p>From there, we create an <em>&#x3C;a&#x3E;</em> tag in JavaScript, populate it with the response's <em>title</em> property, and give it the ID that the server sent back. That gives us enough information to list it dynamically on the page as a new game, all without reloading the page: </p><div ><table><tbody><tr><td  >.then(response =&#x3E; response.json()).then(jsonResponse =&#x3E; { const li = document.createElement(&#x22;li&#x22;); const a = document.createElement(&#x22;a&#x22;); a.textContent = jsonResponse.title; a.setAttribute(&#x22;id&#x22;, jsonResponse.id); a.setAttribute(&#x22;href&#x22;, &#x22;#&#x22;); li.append(a); li.addEventListener(&#x22;click&#x22;, readGame) document.getElementById(&#x27;games&#x27;).appendChild(li);})hideform();}</td></tr></tbody></table></div><p>Now we must write the code for the controller on the server. We'll define this as a route, much like our existing index page route, only longer: </p><div ><table><tbody><tr><td  >@app.route(&#x27;/games/create&#x27;, methods=[&#x27;POST&#x27;])def create_game(): try: title = request.get_json()[&#x27;title&#x27;] description = request.get_json()[&#x27;description&#x27;] yor = request.get_json()[&#x27;yor&#x27;] publisher = request.get_json()[&#x27;publisher&#x27;] genre = request.get_json()[&#x27;genre&#x27;] game = Game(title=title, description=description, yor=yor, publisher=publisher, genre=genre) db.session.add(game) db.session.commit() except: db.session.rollback() finally: return jsonify({&#x27;title&#x27;:game.title, &#x27;id&#x27;:game.id}) db.session.close()</td></tr></tbody></table></div><p>Notice how this route mirrors the action defined in our form, meaning that it will be invoked on the server side by the <em>fetch</em> command. First, this route's function uses the <em>request</em> library that we imported at the beginning to gather values from the form's various fields. Then it creates an instance of the Game class and populates it with that data. </p><p>That will be the record that SQLAlchemy's object-relational manager writes to the server. It commits that transaction to the database, unless there's an error, in which case it rolls back that transaction. If all goes well, it returns the title of the game as written and the ID of the new record in the database to the browser. </p><h3 class="article-body__section" id="section-reading"><span>Reading </span></h3><p>We've included all the buttons we need to create, update, and delete records, but what about reading them? To handle this, we'll set an event handler on each of the games listed on our page. When we click on a game, its details will appear in our form, and we'll get the opportunity to update its records. We can do this because we already used Jinja to set the ID of each title's <em>&#x3C;a&#x3E;</em> tag as its game's ID in the database. Here's the code to iterate over the items in the list: </p><div ><table><tbody><tr><td  >var li = document.getElementsByTagName(&#x22;li&#x22;);for(var i = 0;i&#x3C;li.length;i++){ li[i].addEventListener(&#x22;click&#x22;, readGame)}</td></tr></tbody></table></div><p>When we click on a list item containing an <em>&#x3C;a&#x3E;</em> tag with an ID, it triggers the <em>readgame</em> function. This is why it was so important to include an <em>id</em> attribute and an event handler when adding the new game that we created to our list; it had to be clickable, otherwise we'd end up with a list of clickable ones and a non-interactive one at the end. </p><p>Next, add the function to read game data to your JavaScript section: </p><div ><table><tbody><tr><td  >function readGame(e){ const gameID = e.target.attributes.id.value const response = fetch(&#x27;/games/&#x27; + gameID + &#x27;/read&#x27;, {&#x9;method: &#x27;POST&#x27;,&#x9;body: JSON.stringify({&#x9;&#x27;title&#x27;: titleInput.value,&#x9;&#x27;description&#x27;: descriptionInput.value,&#x9;&#x27;yor&#x27;: yorInput.value,&#x9;&#x27;publisher&#x27;: publisherInput.value,&#x9; &#x27;genre&#x27;: genreInput.value&#x9;}),&#x9;headers: {&#x9; &#x27;Content-Type&#x27;: &#x27;application/json&#x27;,&#x9;} })&#x9; .then(response =&#x3E; response.json())&#x9; .then(jsonResponse =&#x3E; {&#x9; titleInput.value = jsonResponse.title;&#x9; descriptionInput.value = jsonResponse.description;&#x9; yorInput.value = jsonResponse.yor;&#x9; publisherInput.value = jsonResponse.publisher;&#x9; genreInput.value = jsonResponse.genre;&#x9; }) updateButton.setAttribute(&#x22;data-id&#x22;, gameID); deleteButton.setAttribute(&#x22;data-id&#x22;, gameID); showform(&#x27;read&#x27;);}</td></tr></tbody></table></div><p>It's a pointer to another route, which queries the controller on the server and inserts its response into the relevant fields of the form. It also changes the <em>data-id</em> attributes of both the <em>updateButton</em> and the <em>deleteButton</em> to the ID of the game that we clicked on, which it got from the <em>id</em> attribute of the game's <em>&#x3C;a&#x3E;</em> tag. This is crucial for updating or deleting a game, because we have to send its ID to the controller route on the server. </p><h3 class="article-body__section" id="section-updating"><span>Updating </span></h3><p>When we click the update button, we’ll send the form's contents to the controller, which will use the update route to look up the corresponding record in the database and then replace its data with the new data that we entered into the form. Here's the JavaScript function to send that update: </p><div ><table><tbody><tr><td  >updateButton.onclick = function (e) { e.preventDefault(); const gameID = updateButton.getAttribute(&#x22;data-id&#x22;); const response = fetch(&#x27;/games/&#x27; + gameID + &#x27;/update&#x27;, {&#x9;method: &#x27;POST&#x27;,&#x9;body: JSON.stringify({&#x9; &#x27;title&#x27;: titleInput.value,&#x9; &#x27;description&#x27;: descriptionInput.value,&#x9; &#x27;yor&#x27;: yorInput.value,&#x9; &#x27;publisher&#x27;: publisherInput.value,&#x9; &#x27;genre&#x27;: genreInput.value&#x9;}),&#x9;headers: {&#x9; &#x27;Content-Type&#x27;: &#x27;application/json&#x27;,&#x9;} })&#x9; .then(response =&#x3E; response.json())&#x9; .then(jsonResponse =&#x3E; {&#x9; const gameBullet = document.getElementById(gameID);&#x9; gameBullet.innerText = jsonResponse.title;&#x9; }) hideform();}</td></tr></tbody></table></div><p>We kick off the function when the update button is clicked. Notice that this time, the route in our <em>fetch</em> command has the game's ID inserted into it so that the server knows which game it is updating. When the response comes back, we also update the game's title on the page in case that was one of the fields that we changed. We do that by searching for the <em>&#x3C;a&#x3E;</em> tag with the game's ID and then changing its text. </p><p>Here's the corresponding controller function on the server: </p><div ><table><tbody><tr><td  >@app.route(&#x27;/games/&#x3C;game_id&#x3E;/update&#x27;, methods=[&#x27;POST&#x27;])def update_game(game_id): try:&#x9;title = request.get_json()[&#x27;title&#x27;]&#x9;description = request.get_json()[&#x27;description&#x27;]&#x9;yor = request.get_json()[&#x27;yor&#x27;]&#x9;publisher = request.get_json()[&#x27;publisher&#x27;]&#x9;genre = request.get_json()[&#x27;genre&#x27;] &#x9;game=Game.query.get(game_id)&#x9;game.title = title&#x9;game.description = description&#x9;game.yor = yor&#x9;game.publisher = publisher&#x9;game.genre = genre&#x9;db.session.query(Game).filter_by(id=game_id).update \&#x9; ({&#x22;title&#x22;: title, &#x22;description&#x22;: description, &#x22;yor&#x22;: yor, \&#x9; &#x22;publisher&#x22;: publisher, &#x22;genre&#x22;: genre}, synchronize_session=&#x27;fetch&#x27;)&#x9;db.session.commit() except: db.session.rollback() finally: return jsonify({ &#x27;title&#x27;:game.title, }) db.session.close()</td></tr></tbody></table></div><p>This code uses the familiar block structure for error handling. It extracts the form data sent to it in JSON format and then uses the game ID in the route to look up the appropriate record in the database, extracting that information into an instance of the <em>Game</em> class. It then replaces all of those properties with the new ones from the JSON file and uses SQLAlchemy to update the record with the new data. Finally, it returns the title for the view to update its list with. </p><h3 class="article-body__section" id="section-deleting"><span>Deleting</span></h3><p>All that remains now is the delete part of our CRUD application, which is relatively simple. On the client side, this goes into our JavaScript section: </p><div ><table><tbody><tr><td  >deleteButton.onclick = function (e) { e.preventDefault(); const gameID = deleteButton.getAttribute(&#x22;data-id&#x22;); const response = fetch(&#x27;/games/&#x27; + gameID + &#x27;/delete&#x27;, {&#x9;method: &#x27;DELETE&#x27; })&#x9; .then(response =&#x3E; response.json())&#x9; .then(jsonResponse =&#x3E; {&#x9; const gameText = document.getElementById(gameID);&#x9; gameText.parentNode.parentNode.removeChild(gameText.parentNode);&#x9; }) hideform();}</td></tr></tbody></table></div><p>Note the use of the <em>DELETE</em> method rather than <em>POST</em>. Once again, this function sends the game's ID in the request. When the server confirms that it's deleted the game in its JSON response, the function deletes the <em>&#x3C;li&#x3E;</em> element containing the game's <em>&#x3C;a&#x3E;</em> tag. </p><div ><table><tbody><tr><td  >@app.route(&#x27;/games/&#x3C;game_id&#x3E;/delete&#x27;, methods=[&#x27;DELETE&#x27;])def delete_game(game_id): try:&#x9;game=Game.query.get(game_id)&#x9;db.session.delete(game)&#x9;db.session.commit()&#x9;db.session.close() except:&#x9;error = True&#x9;db.session.rollback() finally:&#x9;db.session.close() return jsonify({&#x27;success&#x27;:True})</td></tr></tbody></table></div><p>All it needs to send back in the JSON response is confirmation. </p><p>There are lots more tweaks that <a href="https://www.itpro.com/software/development/356827/how-to-become-a-developer-a-beginners-guide" data-original-url="https://www.itpro.com/software/development/356827/how-to-become-a-developer-a-beginners-guide">a competent developer</a> should make to this app before putting it into production. Field input validation, displaying error messages, ordering the games alphabetically, and styling it properly with CSS are just a few items on the to-do list. Not to mention tackling security properly with a well-structured environment variable system so that you don't store secrets in the source code. </p><p>Nevertheless, this demonstrates the basic functionality of an AJAX-enabled CRUD application. It has the bare bones of a web app that you could use to build more sophisticated controllers and more complex views. </p><p>The source code below, listed in full, would be a useful place to begin tinkering and making your own improvements. Things to consider include splitting up the CRUD interactions into multiple views, so that you can have separate screens to read files that you don’t want to update. That would also enable you to support different classes of user that don’t have update or delete privileges, which would be another thing on the to-do list for a production-ready application.</p><p>Other enhancements would include adding more data for the games (including images) and also enhancing the underlying database schema to use multiple tables with joins. Having separate tables for publisher and genre would stop you having to store the same data in multiple fields, and also makes it easier to list games that span different genres and have multiple publishers..</p><p>There’s <a href="https://www.itpro.com/development/34728/learn-to-code-for-free-the-best-uk-coding-and-app-development-courses" data-original-url="https://www.itpro.com/development/34728/learn-to-code-for-free-the-best-uk-coding-and-app-development-courses">a lot more to learn</a> about full stack development, and there are lots of different ways to code an application even as simple as this one. Hopefully, though, this will have given you a taste of what is a difficult but ultimately rewarding activity.</p><h3 class="article-body__section" id="section-retronerds-py"><span>retronerds.py </span></h3><div ><table><tbody><tr><td  >class Game(db.Model): __tablename__ = &#x27;games&#x27; id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(255), nullable=False) description = db.Column(db.String(1024), nullable=False) yor = db.Column(db.Integer, nullable=False) publisher = db.Column(db.String(255), nullable=False) genre = db.Column(db.String(255), nullable=False) db.create_all() @app.route(&#x27;/&#x27;)def index(): return render_template(&#x27;index.html&#x27;, games=Game.query.all()) @app.route(&#x27;/games/create&#x27;, methods=[&#x27;POST&#x27;])def create_game(): try: title = request.get_json()[&#x27;title&#x27;] description = request.get_json()[&#x27;description&#x27;] yor = request.get_json()[&#x27;yor&#x27;] publisher = request.get_json()[&#x27;publisher&#x27;] genre = request.get_json()[&#x27;genre&#x27;] game = Game(title=title, description=description, yor=yor, publisher=publisher, genre=genre) db.session.add(game) db.session.commit() except: db.session.rollback() finally: return jsonify({&#x27;title&#x27;:game.title, &#x27;id&#x27;:game.id}) db.session.close() @app.route(&#x27;/games/&#x3C;game_id&#x3E;/read&#x27;, methods=[&#x27;POST&#x27;])def read_game(game_id): game=Game.query.get(game_id) return jsonify({&#x9;&#x27;title&#x27;:game.title,&#x9;&#x27;description&#x27;:game.description,&#x9;&#x27;yor&#x27;:game.yor,&#x9;&#x27;publisher&#x27;:game.publisher,&#x9;&#x27;genre&#x27;:game.genre }) @app.route(&#x27;/games/&#x3C;game_id&#x3E;/update&#x27;, methods=[&#x27;POST&#x27;])def update_game(game_id): error = False try:&#x9;title = request.get_json()[&#x27;title&#x27;]&#x9;description = request.get_json()[&#x27;description&#x27;]&#x9;yor = request.get_json()[&#x27;yor&#x27;]&#x9;publisher = request.get_json()[&#x27;publisher&#x27;]&#x9;genre = request.get_json()[&#x27;genre&#x27;] &#x9;game=Game.query.get(game_id)&#x9;game.title = title&#x9;game.description = description&#x9;game.yor = yor&#x9;game.publisher = publisher&#x9;game.genre = genre&#x9;db.session.query(Game).filter_by(id=game_id).update ({&#x22;title&#x22;: title, &#x22;description&#x22;: description, &#x22;yor&#x22;: yor, &#x22;publisher&#x22;: publisher, &#x22;genre&#x22;: genre}, synchronize_session=&#x27;fetch&#x27;)&#x9;db.session.commit() except: db.session.rollback() finally: return jsonify({ &#x27;title&#x27;:game.title, }) db.session.close() @app.route(&#x27;/games/&#x3C;game_id&#x3E;/delete&#x27;, methods=[&#x27;DELETE&#x27;])def delete_game(game_id): try:&#x9;game=Game.query.get(game_id)&#x9;db.session.delete(game)&#x9;db.session.commit()&#x9;db.session.close() except:&#x9;error = True&#x9;db.session.rollback() finally:&#x9;db.session.close() return jsonify({&#x27;success&#x27;:True}) if __name__ == &#x27;__main__&#x27;: app.run()</td></tr></tbody></table></div><h3 class="article-body__section" id="section-index-html"><span>index.html </span></h3><div ><table><tbody><tr><td  >&#x3C;!doctype html&#x3E; &#x3C;html lang=&#x22;en&#x22;&#x3E;&#x3C;head&#x3E; &#x3C;meta charset=&#x22;utf-8&#x22;&#x3E; &#x3C;title&#x3E;RetroNerds&#x3C;/title&#x3E; &#x3C;meta name=&#x22;description&#x22; content=&#x22;Old Games for Old Geeks&#x22;&#x3E; &#x3C;meta name=&#x22;author&#x22; content=&#x22;IT Pro&#x22;&#x3E; &#x3C;style&#x3E; .hidden {display:none} &#x3C;/style&#x3E;&#x3C;/head&#x3E; &#x3C;body&#x3E; &#x3C;ul id=&#x22;games&#x22;&#x3E; {% for g in games %} &#x3C;li&#x3E;&#x3C;a id=&#x22;{{ g.id }}&#x22; href=&#x22;#&#x22;&#x3E;{{ g.title }}&#x3C;/a&#x3E; &#x3C;/li&#x3E; {% endfor %} &#x3C;/ul&#x3E; &#x3C;div id=&#x22;newgame&#x22;&#x3E;&#x3C;a href=&#x22;#&#x22; onclick=&#x22;showform(&#x27;create&#x27;)&#x22;&#x3E;New Game&#x3C;/a&#x3E;&#x3C;/div&#x3E; &#x3C;form id=&#x22;form&#x22; class=&#x22;hidden&#x22;&#x3E; &#x3C;label for=&#x22;title&#x22;&#x3E;Title: &#x3C;/label&#x3E; &#x3C;input type=&#x22;text&#x22; id=&#x22;title&#x22; name=&#x22;title&#x22; /&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;description&#x22;&#x3E;Description: &#x3C;/label&#x3E; &#x3C;textarea id=&#x22;description&#x22; name=&#x22;description&#x22;&#x3E;&#x3C;/textarea&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;yor&#x22;&#x3E;Year: &#x3C;/label&#x3E; &#x3C;select id=&#x22;yor&#x22; name=&#x22;yor&#x22;&#x3E;&#x9;&#x3C;script&#x3E;&#x9; let dateDropdown = document.getElementById(&#x27;yor&#x27;); &#x9; let yearCounter = 1997;&#x9; while (yearCounter &#x3E;= 1970) { &#x9; let dateOption = document.createElement(&#x27;option&#x27;); &#x9; dateOption.text = yearCounter; &#x9; dateOption.value = yearCounter; &#x9; dateDropdown.add(dateOption); &#x9; yearCounter -= 1; &#x9; }&#x9;&#x3C;/script&#x3E; &#x3C;/select&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;publisher&#x22;&#x3E;Publisher: &#x3C;/label&#x3E; &#x3C;input type=&#x22;text&#x22; id=&#x22;publisher&#x22; name=&#x22;publisher&#x22; /&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;label for=&#x22;genre&#x22;&#x3E;Genre: &#x3C;/label&#x3E; &#x3C;select id=&#x22;genre&#x22; name=&#x22;genre&#x22;&#x3E;&#x9;&#x3C;option value=&#x22;Adventure&#x22;&#x3E;Adventure&#x3C;/option&#x3E;&#x9;&#x3C;option value=&#x22;Platform&#x22;&#x3E;Platform&#x3C;/option&#x3E;&#x9;&#x3C;option value=&#x22;Shooter&#x22;&#x3E;Shooter&#x3C;/option&#x3E;&#x9;&#x3C;option value=&#x22;Strategy&#x22;&#x3E;Strategy&#x3C;/option&#x3E; &#x3C;/select&#x3E;&#x3C;br&#x3E;&#x3C;br&#x3E; &#x3C;input type=&#x22;submit&#x22; id=&#x22;create&#x22; value=&#x22;Create&#x22; /&#x3E; &#x3C;input type=&#x22;submit&#x22; id=&#x22;update&#x22; value=&#x22;Update&#x22; /&#x3E; &#x3C;input type=&#x22;submit&#x22; id=&#x22;delete&#x22; value=&#x22;Delete&#x22; /&#x3E; &#x3C;input type=&#x22;reset&#x22; id=&#x22;cancel&#x22; value=&#x22;Cancel&#x22; onclick=&#x22;hideform();&#x22;/&#x3E; &#x3C;/form&#x3E; &#x3C;script&#x3E; const titleInput = document.getElementById(&#x27;title&#x27;); const descriptionInput = document.getElementById(&#x27;description&#x27;); const yorInput = document.getElementById(&#x27;yor&#x27;); const publisherInput = document.getElementById(&#x27;publisher&#x27;); const genreInput = document.getElementById(&#x27;genre&#x27;); const myForm = document.getElementById(&#x22;form&#x22;); const createButton = document.getElementById(&#x22;create&#x22;); const updateButton = document.getElementById(&#x22;update&#x22;); const deleteButton = document.getElementById(&#x22;delete&#x22;); const cancelButton = document.getElementById(&#x22;cancel&#x22;); function showform(task) {&#x9;if (task == &#x27;create&#x27;) {&#x9; myForm.reset();&#x9; createButton.setAttribute(&#x22;class&#x22;, &#x22;&#x22;);&#x9; updateButton.setAttribute(&#x22;class&#x22;, &#x22;hidden&#x22;);&#x9;}&#x9;if (task == &#x27;read&#x27;) {&#x9; createButton.setAttribute(&#x22;class&#x22;, &#x22;hidden&#x22;);&#x9; updateButton.setAttribute(&#x22;class&#x22;, &#x22;&#x22;);&#x9;}&#x9;myForm.setAttribute(&#x22;class&#x22;, &#x22;&#x22;); } function hideform() {&#x9;myForm.reset();&#x9;myForm.setAttribute(&#x22;class&#x22;, &#x22;hidden&#x22;); } createButton.onclick = function (e) {&#x9;e.preventDefault();&#x9;const response = fetch(&#x27;/games/create&#x27;, {&#x9;method: &#x27;POST&#x27;,&#x9;body: JSON.stringify({&#x9; &#x27;title&#x27;: titleInput.value,&#x9; &#x27;description&#x27;: descriptionInput.value,&#x9; &#x27;yor&#x27;: yorInput.value,&#x9; &#x27;publisher&#x27;: publisherInput.value,&#x9; &#x27;genre&#x27;: genreInput.value&#x9;}),&#x9;headers: {&#x9; &#x27;Content-Type&#x27;: &#x27;application/json&#x27;,&#x9;}&#x9;}) .then(response =&#x3E; response.json()) .then(jsonResponse =&#x3E; {&#x9;const li = document.createElement(&#x22;li&#x22;);&#x9;const a = document.createElement(&#x22;a&#x22;);&#x9;a.textContent = jsonResponse.title;&#x9;a.setAttribute(&#x22;id&#x22;, jsonResponse.id);&#x9;a.setAttribute(&#x22;href&#x22;, &#x22;#&#x22;);&#x9;li.append(a);&#x9;li.addEventListener(&#x22;click&#x22;, readGame)&#x9;document.getElementById(&#x27;games&#x27;).appendChild(li); }) hideform(); } var li = document.getElementsByTagName(&#x22;li&#x22;); for(var i = 0;i&#x3C;li.length;i++){&#x9;li[i].addEventListener(&#x22;click&#x22;, readGame) } function readGame(e){&#x9;const gameID = e.target.attributes.id.value&#x9;const response = fetch(&#x27;/games/&#x27; + gameID + &#x27;/read&#x27;, {&#x9; method: &#x27;POST&#x27;,&#x9; body: JSON.stringify({&#x9; &#x27;title&#x27;: titleInput.value,&#x9; &#x27;description&#x27;: descriptionInput.value,&#x9; &#x27;yor&#x27;: yorInput.value,&#x9; &#x27;publisher&#x27;: publisherInput.value,&#x9;&#x9;&#x27;genre&#x27;: genreInput.value&#x9; }),&#x9; headers: {&#x9;&#x9;&#x27;Content-Type&#x27;: &#x27;application/json&#x27;,&#x9; }&#x9;})&#x9; .then(response =&#x3E; response.json())&#x9; .then(jsonResponse =&#x3E; {&#x9;&#x9; titleInput.value = jsonResponse.title;&#x9;&#x9; descriptionInput.value = jsonResponse.description;&#x9;&#x9; yorInput.value = jsonResponse.yor;&#x9;&#x9; publisherInput.value = jsonResponse.publisher;&#x9;&#x9; genreInput.value = jsonResponse.genre;&#x9; })&#x9;updateButton.setAttribute(&#x22;data-id&#x22;, gameID);&#x9;deleteButton.setAttribute(&#x22;data-id&#x22;, gameID);&#x9;showform(&#x27;read&#x27;); } updateButton.onclick = function (e) {&#x9;e.preventDefault();&#x9;const gameID = updateButton.getAttribute(&#x22;data-id&#x22;);&#x9;const response = fetch(&#x27;/games/&#x27; + gameID + &#x27;/update&#x27;, {&#x9; method: &#x27;POST&#x27;,&#x9; body: JSON.stringify({&#x9;&#x9;&#x27;title&#x27;: titleInput.value,&#x9;&#x9;&#x27;description&#x27;: descriptionInput.value,&#x9;&#x9;&#x27;yor&#x27;: yorInput.value,&#x9;&#x9;&#x27;publisher&#x27;: publisherInput.value,&#x9;&#x9;&#x27;genre&#x27;: genreInput.value&#x9; }),&#x9; headers: {&#x9;&#x9;&#x27;Content-Type&#x27;: &#x27;application/json&#x27;,&#x9; }&#x9;})&#x9; .then(response =&#x3E; response.json())&#x9; .then(jsonResponse =&#x3E; {&#x9;&#x9; const gameBullet = document.getElementById(gameID);&#x9;&#x9; gameBullet.innerText = jsonResponse.title;&#x9; }) &#x9;hideform(); } deleteButton.onclick = function (e) {&#x9;e.preventDefault();&#x9;const gameID = deleteButton.getAttribute(&#x22;data-id&#x22;);&#x9;const response = fetch(&#x27;/games/&#x27; + gameID + &#x27;/delete&#x27;, {&#x9; method: &#x27;DELETE&#x27;&#x9;})&#x9; .then(response =&#x3E; response.json())&#x9; .then(jsonResponse =&#x3E; {&#x9;&#x9; const gameText = document.getElementById(gameID);&#x9;&#x9; gameText.parentNode.parentNode.removeChild(gameText.parentNode);&#x9; })&#x9;hideform(); } &#x3C;/script&#x3E;&#x3C;/body&#x3E;&#x3C;/html&#x3E;</td></tr></tbody></table></div>
                                                            </article>
                            ]]>
                        </content:encoded>
                                                </item>
                                <item>
                                                            <title><![CDATA[ 100 fake eBay listings put users' privacy at risk ]]></title>
                                                                                                <dc:content><![CDATA[ <p>More than 100 eBay listings have been identified as malicious by the online auction site, leading customers to reveal their personal details including payment information.</p><p>A number of customers contacted the <em><a href="http://www.bbc.co.uk/news/technology-29310042">BBC</a></em> to tell them they had tried to warn eBay about the issues <a href="https://www.itpro.com/security/23136/ebay-uk-users-warned-of-cross-site-scripting-attacks-in-listings" data-original-url="https://www.itpro.com/security/23136/ebay-uk-users-warned-of-cross-site-scripting-attacks-in-listings?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+ITPro%2FSecurity+(IT+PRO+-+Security)">reported last week</a>, but eBay had not addressed them as quickly as they should have.</p><p>The listings in questions appeared normal, but custom Javascript and Flash content contained in them allowed hackers to redirect users to a fake website that looked legitimate but actually allowed them to siphon off user details including credit card details.</p><p>The listings were posted by many innocent eBay users whose accounts had been hijacked by the hackers and forwarded the bidders to a page that said eBay was trying to update the innocent user's details, asking for payment information including card details and in some cases, account numbers and sort codes.</p><p>Those whose accounts were being used to perform the attacks were receiving emails congratulating them on the sale of their items, which they had not even put up for sale in the first place.</p><p>eBay said: "Account takeovers generally occur as a result of a user disclosing their IDs or password. Unfortunately, it is a common practice of criminals to exploit well-known, trusted brand names like eBay to attract consumers and then lure them to a fake website or into other fraudulent situations."</p><p>The company continued: "Many of our sellers use active content like Javascript and Flash to make their eBay listings perform better.</p><p>"We have no current plans to remove active content from eBay. However, we will continue to review all site features and content in the context of the benefit they bring our customers as well as overall site security."</p> ]]></dc:content>
                                                                                                                                            <link>https://www.itpro.com/security/23160/100-fake-ebay-listings-put-users-privacy-at-risk</link>
                                                                            <description>
                            <![CDATA[ Innocent users' accounts being used to post malicious listings ]]>
                                                                                                            </description>
                                                                                                                                <guid isPermaLink="false">daynefgsNQrzqgGRXYX5kB</guid>
                                                                                                <enclosure url="https://cdn.mos.cms.futurecdn.net/E6hrU6a6a3u7HyyFTuzUV-1920-80.jpg" type="image/jpeg" length="0"></enclosure>
                                                                        <pubDate>Tue, 23 Sep 2014 08:17:00 +0000</pubDate>                                                                                                                                <updated>Thu, 19 Nov 2026 22:34:24 +0000</updated>
                                                                                                                                            <category><![CDATA[Phishing]]></category>
                                                    <category><![CDATA[Privacy]]></category>
                                                    <category><![CDATA[Cyber Resilience]]></category>
                                                    <category><![CDATA[Cybersecurity]]></category>
                                                    <category><![CDATA[Data Protection]]></category>
                                                                                                                    <dc:creator><![CDATA[ Clare Hopping ]]></dc:creator>                                                                                    <dc:source><![CDATA[ https://cdn.mos.cms.futurecdn.net/eh7j5WShQkevqRmBv29hqk-320-70.jpg ]]></dc:source>
                                                                <dc:description><![CDATA[ &lt;p&gt;Clare is an experienced marketer and entrepreneur. In 2016, she founded Blue Cactus Digital, a digital marketing company that helps ethical and sustainability-focused businesses grow their customer base, where she remains its director. Clients include the likes of the University of Surrey, the History Market, Confident Tiger, and Rethink Partners.&lt;/p&gt;
&lt;p&gt;Between 2014 and 2016, she also spent time at Thunderfoot, Harver, and Swan Creative in creative and marketing roles. She is also a member of the Chartered Institute of Marketing (CIM).&lt;/p&gt;
&lt;p&gt;Prior to her marketing career, Clare was a journalist specializing in mobile devices. She worked as a staff writer and later the features editor at What Mobile, before becoming the founding editor of Know Your Mobile. She later moved on into freelance writing for a number of years.&lt;/p&gt;
&lt;p&gt;It was during her time as a freelance journalist that she regularly wrote for ITPro, covering a range of topics as a news reporter, as well as drawing on her knowledge of mobile technology when writing features.&lt;/p&gt;
&lt;p&gt;She also penned a number of tutorials for ITPro helping users navigate knotty issues around Windows 10 and various email applications, as well as in-depth explainers of topics like the semantic web and how to get started with data mining.&lt;/p&gt; ]]></dc:description>
                                                                                                                                <cf:isSponsored>false</cf:isSponsored>
                <cf:hasAffiliateLinks>false</cf:hasAffiliateLinks>
                <cf:isPaid>false</cf:isPaid>
                                                                                                                                                                                    <media:content type="image/jpeg" url="https://cdn.mos.cms.futurecdn.net/E6hrU6a6a3u7HyyFTuzUV-1920-80.jpg">
                                                            <media:credit><![CDATA[null]]></media:credit>
                                                                                                                                                                                                                                    <media:description><![CDATA[Ebay Logo]]></media:description>                                                            <media:text><![CDATA[Ebay Logo]]></media:text>
                                <media:title type="plain"><![CDATA[Ebay Logo]]></media:title>
                                                    </media:content>
                                                    <media:thumbnail url="https://cdn.mos.cms.futurecdn.net/E6hrU6a6a3u7HyyFTuzUV-1920-80.jpg" />
                                                                                                                                                                    <content:encoded >
                            <![CDATA[
                            <article>
                                <p>More than 100 eBay listings have been identified as malicious by the online auction site, leading customers to reveal their personal details including payment information.</p><p>A number of customers contacted the <em><a href="http://www.bbc.co.uk/news/technology-29310042">BBC</a></em> to tell them they had tried to warn eBay about the issues <a href="https://www.itpro.com/security/23136/ebay-uk-users-warned-of-cross-site-scripting-attacks-in-listings" data-original-url="https://www.itpro.com/security/23136/ebay-uk-users-warned-of-cross-site-scripting-attacks-in-listings?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+ITPro%2FSecurity+(IT+PRO+-+Security)">reported last week</a>, but eBay had not addressed them as quickly as they should have.</p><p>The listings in questions appeared normal, but custom Javascript and Flash content contained in them allowed hackers to redirect users to a fake website that looked legitimate but actually allowed them to siphon off user details including credit card details.</p><p>The listings were posted by many innocent eBay users whose accounts had been hijacked by the hackers and forwarded the bidders to a page that said eBay was trying to update the innocent user's details, asking for payment information including card details and in some cases, account numbers and sort codes.</p><p>Those whose accounts were being used to perform the attacks were receiving emails congratulating them on the sale of their items, which they had not even put up for sale in the first place.</p><p>eBay said: "Account takeovers generally occur as a result of a user disclosing their IDs or password. Unfortunately, it is a common practice of criminals to exploit well-known, trusted brand names like eBay to attract consumers and then lure them to a fake website or into other fraudulent situations."</p><p>The company continued: "Many of our sellers use active content like Javascript and Flash to make their eBay listings perform better.</p><p>"We have no current plans to remove active content from eBay. However, we will continue to review all site features and content in the context of the benefit they bring our customers as well as overall site security."</p>
                                                            </article>
                            ]]>
                        </content:encoded>
                                                </item>
                                <item>
                                                            <title><![CDATA[ eBay UK users warned of cross-site scripting attacks ]]></title>
                                                                                                <dc:content><![CDATA[ <p>eBay has reportedly fallen victim to hackers who altered listings to redirect users to spoof sites set up to steal their login details.</p><p>The online auction site has apparently fallen victim to a cross-site scripting attack, whereby hackers inject malicious JavaScript into product listings, which re-direct them to the fake sites.</p><p>According to a report on the <em><a href="http://www.bbc.co.uk/news/technology-29241563">BBC</a></em>, the firm was alerted to the links on Wednesday night by eBay Power Seller and IT worker Paul Kerr from Clackmannanshire.</p><p>He claims the listing had been live for 35 minutes and, on reporting it to eBay, was assured it would be looked into straightaway.</p><p>"You can bet your bottom dollar that somebody's going to click on that and be redirected to a third-party site and they're going to enter their details and be compromised," he said.</p><p>However, the <em>BBC</em> said eBay only removed the links 12 hours later after a follow-up call by the broadcaster.</p><p>It also reported finding three suspicious links in total during its investigation, two of which redirected users, while the third was removed before it could be checked.</p><p>Even so, in a statement, eBay claimed the issue only affected a single item listed on the site.</p><p>"This report relates only to a single item listing' on eBay.co.uk whereby the users has included a link which redirects users away from the listing page," the spokesperson said.</p><p>"We take the safety of our marketplace very seriously and are removing the listing as it is in violation of our policy on third-party links."</p><p>The issue is the latest in a long line of tech issues to hit eBay this year, which have seen it suffer <a href="https://www.itpro.com/security/22888/auction-website-ebay-forced-to-say-sorry-after-10th-major-outage" data-original-url="https://www.itpro.com/security/22888/auction-website-ebay-forced-to-say-sorry-after-10th-major-outage">recurrent outages</a> and a <a href="https://www.itpro.com/security/22307/ebay-slammed-over-slow-post-cyber-attack-password-reset-response" data-original-url="https://www.itpro.com/security/22307/ebay-slammed-over-slow-post-cyber-attack-password-reset-response">large-scale hack that resulted in millions of the site's users</a> having their login details stolen. </p> ]]></dc:content>
                                                                                                                                            <link>https://www.itpro.com/security/23136/ebay-uk-users-warned-of-cross-site-scripting-attacks-in-listings</link>
                                                                            <description>
                            <![CDATA[ Online auction site falls victim to hackers who've tampered with listings to steal users' login details ]]>
                                                                                                            </description>
                                                                                                                                <guid isPermaLink="false">vGqnH3zPUxTGjXj9L5rSCE</guid>
                                                                                                <enclosure url="https://cdn.mos.cms.futurecdn.net/Zcy3QCxzh456aLPM2qCY4j-1920-80.jpg" type="image/jpeg" length="0"></enclosure>
                                                                        <pubDate>Thu, 18 Sep 2014 09:37:00 +0000</pubDate>                                                                                                                                <updated>Thu, 19 Nov 2026 21:46:34 +0000</updated>
                                                                                                                                            <category><![CDATA[Hacking]]></category>
                                                    <category><![CDATA[Application Security (DevSecOps)]]></category>
                                                    <category><![CDATA[Cyber Resilience]]></category>
                                                    <category><![CDATA[Cybersecurity]]></category>
                                                                                                                    <dc:creator><![CDATA[ Caroline Donnelly ]]></dc:creator>                                                                                                        <dc:description><![CDATA[ null ]]></dc:description>
                                                                                                                                <cf:isSponsored>false</cf:isSponsored>
                <cf:hasAffiliateLinks>false</cf:hasAffiliateLinks>
                <cf:isPaid>false</cf:isPaid>
                                                                                                                                                                                    <media:content type="image/jpeg" url="https://cdn.mos.cms.futurecdn.net/Zcy3QCxzh456aLPM2qCY4j-1920-80.jpg">
                                                            <media:credit><![CDATA[null]]></media:credit>
                                                                                                                                                                                                                                    <media:description><![CDATA[eBay sign]]></media:description>                                                            <media:text><![CDATA[eBay sign]]></media:text>
                                <media:title type="plain"><![CDATA[eBay sign]]></media:title>
                                                    </media:content>
                                                    <media:thumbnail url="https://cdn.mos.cms.futurecdn.net/Zcy3QCxzh456aLPM2qCY4j-1920-80.jpg" />
                                                                                                                                                                    <content:encoded >
                            <![CDATA[
                            <article>
                                <p>eBay has reportedly fallen victim to hackers who altered listings to redirect users to spoof sites set up to steal their login details.</p><p>The online auction site has apparently fallen victim to a cross-site scripting attack, whereby hackers inject malicious JavaScript into product listings, which re-direct them to the fake sites.</p><p>According to a report on the <em><a href="http://www.bbc.co.uk/news/technology-29241563">BBC</a></em>, the firm was alerted to the links on Wednesday night by eBay Power Seller and IT worker Paul Kerr from Clackmannanshire.</p><p>He claims the listing had been live for 35 minutes and, on reporting it to eBay, was assured it would be looked into straightaway.</p><p>"You can bet your bottom dollar that somebody's going to click on that and be redirected to a third-party site and they're going to enter their details and be compromised," he said.</p><p>However, the <em>BBC</em> said eBay only removed the links 12 hours later after a follow-up call by the broadcaster.</p><p>It also reported finding three suspicious links in total during its investigation, two of which redirected users, while the third was removed before it could be checked.</p><p>Even so, in a statement, eBay claimed the issue only affected a single item listed on the site.</p><p>"This report relates only to a single item listing' on eBay.co.uk whereby the users has included a link which redirects users away from the listing page," the spokesperson said.</p><p>"We take the safety of our marketplace very seriously and are removing the listing as it is in violation of our policy on third-party links."</p><p>The issue is the latest in a long line of tech issues to hit eBay this year, which have seen it suffer <a href="https://www.itpro.com/security/22888/auction-website-ebay-forced-to-say-sorry-after-10th-major-outage" data-original-url="https://www.itpro.com/security/22888/auction-website-ebay-forced-to-say-sorry-after-10th-major-outage">recurrent outages</a> and a <a href="https://www.itpro.com/security/22307/ebay-slammed-over-slow-post-cyber-attack-password-reset-response" data-original-url="https://www.itpro.com/security/22307/ebay-slammed-over-slow-post-cyber-attack-password-reset-response">large-scale hack that resulted in millions of the site's users</a> having their login details stolen. </p>
                                                            </article>
                            ]]>
                        </content:encoded>
                                                </item>
                                <item>
                                                            <title><![CDATA[ FBI allegedly used exploit to bring down child abuse ring ]]></title>
                                                                                                <dc:content><![CDATA[ <p>The FBI has allegedly used a security vulnerability in Mozilla's Firefox browser to bring down a child pornography ring operating on the dark net.</p><p>According to reports, the FBI used a JavaScript injection to compromise the most popular hosting service on the Tor network, Freedom Hosting, which - as well as hosting legitimate services such as TorMail - was allegedly a hub for what has been described as the largest child pornography ring in the world.</p><div><blockquote><p>The Tor project has not worked with the FBI on this case</p></blockquote></div><p>So far the only arrest associated with the reported sting has been that of alleged Freedom Hosting founder, 28-year-old Eric Eoin Marques, who holds dual Irish and US citizenship.</p><p>Marques appeared before the Irish High Court on an extradition warrant issued by the FBI in Maryland. According to the <a href="http://www.independent.ie/irish-news/courts/fbi-bids-to-extradite-largest-childporn-dealer-on-planet-29469402.html">Irish Independent</a>, the FBI claims Marques is the "largest facilitator of child porn on the planet" and has accused him of distributing graphic images "depicting the rape and torture of pre-pubescent children".</p><p>The extradition hearing is ongoing and Marques is expected to appear in court again on Thursday 8 August.</p><p>According to reports from grey hat hacker <a href="http://www.twitlonger.com/show/n_1rlo0uu">SHG_Nackt</a> and a <a href="http://pastebin.com/pmGEj9bV">pastebin posting</a>, dark net sites hosted on Freedom Hosting were compromised using a JavaScript exploit. This allegedly caused a mass outage of hidden services those that can only be accessed using specific proxy services on the Tor network, primarily affecting those hosted on Freedom Hosting. </p><p>Those who tried to access sites using Freedom Hosting would, according to numerous reports, see the message "Down for Maintenance. Sorry, this server is currently offline for maintenance. Please try again in a few hours."</p><p>According to SHG_Nackt, anyone who saw this message had arrived at a Tor site hosted by Freedom Hosting. If that person had JavaScript enabled and were using Firefox 17, a JavaScript exploit was injected into their browser.</p><p>According to SHG_Nackt,"the JavaScript zero-day exploit that creates a unique cookie and sends a request to a random server that basically fingerprints your browser in some way, which is probably then correlated somewhere else since the cookie doesn't get deleted. Presumably it reports the victim's IP back to the FBI."</p><p>The extradition hearing is ongoing and Marques is expected to appear in court again on Thursday 8 August.</p><p>Andrew Lewman, executive director of the Tor project told <em>IT Pro</em> "The Tor project has not worked with the FBI on this case. We know nothing about FBI involvement, nor who runs Freedom Hosting.</p><p>"The Tor project does not run the Tor Network. We do not run these hidden services. Our <a target="_blank" href="https://blog.torproject.org/blog/hidden-services-current-events-and-freedom-hosting">blog post</a> clearly states we have no role in this situation."</p><p>An FBI spokesperson said: "An individual has been arrested as part of an ongoing criminal investigation in the United States.</p><p>"Because this matter is ongoing, longstanding Department of Justice Policy prohibits us from discussing the matter further."</p> ]]></dc:content>
                                                                                                                                            <link>https://www.itpro.com/public-sector/20343/fbi-allegedly-used-browser-vulnerability-target-child-abuse-ring</link>
                                                                            <description>
                            <![CDATA[ American intelligence agency operation reportedly leads to Irish extradition. ]]>
                                                                                                            </description>
                                                                                                                                <guid isPermaLink="false">c7fjtTituqv1k9LPsDNHXZ</guid>
                                                                                                <enclosure url="https://cdn.mos.cms.futurecdn.net/PpjKdNVJQQwcKRVJoZtz6V-1920-80.png" type="image/png" length="0"></enclosure>
                                                                        <pubDate>Mon, 05 Aug 2013 15:22:00 +0000</pubDate>                                                                                                                                <updated>Thu, 19 Nov 2026 22:29:53 +0000</updated>
                                                                                                                                            <category><![CDATA[Cyber Crime]]></category>
                                                    <category><![CDATA[Policy and Legislation]]></category>
                                                    <category><![CDATA[Cyber Resilience]]></category>
                                                    <category><![CDATA[Business]]></category>
                                                                                                <author><![CDATA[ jane.mccallion@futurenet.com (Jane McCallion) ]]></author>                    <dc:creator><![CDATA[ Jane McCallion ]]></dc:creator>                                                                                    <dc:source><![CDATA[ https://cdn.mos.cms.futurecdn.net/Wq9nnLr7TNkY8gyBRb7YsA-320-70.jpeg ]]></dc:source>
                                                                <dc:description><![CDATA[ &lt;p&gt;Jane is managing editor at ITPro and ChannelPro. She started out with the brands as a staff writer specializing in cloud computing before going on to become senior writer and reports editor, managing the content and creation of ITPro’s quarterly whitepapers. During this time, she broadened her expertise to include cybersecurity, data centers and enterprise IT infrastructure. In 2016, she became features editor, managing a pool of freelance and internal writers, while continuing to specialize in enterprise IT infrastructure, data centers, and business strategy.&lt;/p&gt;&lt;p&gt;In October 2021, she became the sites’ deputy editor, before moving to the role of managing editor in June 2024. Although she now has a more strategic role,  she is still a specialist in enterprise IT infrastructure, business strategy, and cybersecurity.&lt;/p&gt;&lt;p&gt;Jane holds an MA in journalism from Goldsmiths, University of London, and a BA in Applied Languages from the University of Portsmouth. She is fluent in French and Spanish, and has written features in both languages.&lt;/p&gt;&lt;p&gt;Prior to joining ITPro, Jane was a freelance business journalist writing as both Jane McCallion and Jane Bordenave for titles such as European CEO, World Finance, and Business Excellence Magazine.&lt;/p&gt; ]]></dc:description>
                                                                                                                                <cf:isSponsored>false</cf:isSponsored>
                <cf:hasAffiliateLinks>false</cf:hasAffiliateLinks>
                <cf:isPaid>false</cf:isPaid>
                                                                                                                                                                                    <media:content type="image/png" url="https://cdn.mos.cms.futurecdn.net/PpjKdNVJQQwcKRVJoZtz6V-1920-80.png">
                                                            <media:credit><![CDATA[null]]></media:credit>
                                                                                                                                                                                                                                                                                                                                                    </media:content>
                                                    <media:thumbnail url="https://cdn.mos.cms.futurecdn.net/PpjKdNVJQQwcKRVJoZtz6V-1920-80.png" />
                                                                                                                                                                    <content:encoded >
                            <![CDATA[
                            <article>
                                <p>The FBI has allegedly used a security vulnerability in Mozilla's Firefox browser to bring down a child pornography ring operating on the dark net.</p><p>According to reports, the FBI used a JavaScript injection to compromise the most popular hosting service on the Tor network, Freedom Hosting, which - as well as hosting legitimate services such as TorMail - was allegedly a hub for what has been described as the largest child pornography ring in the world.</p><div><blockquote><p>The Tor project has not worked with the FBI on this case</p></blockquote></div><p>So far the only arrest associated with the reported sting has been that of alleged Freedom Hosting founder, 28-year-old Eric Eoin Marques, who holds dual Irish and US citizenship.</p><p>Marques appeared before the Irish High Court on an extradition warrant issued by the FBI in Maryland. According to the <a href="http://www.independent.ie/irish-news/courts/fbi-bids-to-extradite-largest-childporn-dealer-on-planet-29469402.html">Irish Independent</a>, the FBI claims Marques is the "largest facilitator of child porn on the planet" and has accused him of distributing graphic images "depicting the rape and torture of pre-pubescent children".</p><p>The extradition hearing is ongoing and Marques is expected to appear in court again on Thursday 8 August.</p><p>According to reports from grey hat hacker <a href="http://www.twitlonger.com/show/n_1rlo0uu">SHG_Nackt</a> and a <a href="http://pastebin.com/pmGEj9bV">pastebin posting</a>, dark net sites hosted on Freedom Hosting were compromised using a JavaScript exploit. This allegedly caused a mass outage of hidden services those that can only be accessed using specific proxy services on the Tor network, primarily affecting those hosted on Freedom Hosting. </p><p>Those who tried to access sites using Freedom Hosting would, according to numerous reports, see the message "Down for Maintenance. Sorry, this server is currently offline for maintenance. Please try again in a few hours."</p><p>According to SHG_Nackt, anyone who saw this message had arrived at a Tor site hosted by Freedom Hosting. If that person had JavaScript enabled and were using Firefox 17, a JavaScript exploit was injected into their browser.</p><p>According to SHG_Nackt,"the JavaScript zero-day exploit that creates a unique cookie and sends a request to a random server that basically fingerprints your browser in some way, which is probably then correlated somewhere else since the cookie doesn't get deleted. Presumably it reports the victim's IP back to the FBI."</p><p>The extradition hearing is ongoing and Marques is expected to appear in court again on Thursday 8 August.</p><p>Andrew Lewman, executive director of the Tor project told <em>IT Pro</em> "The Tor project has not worked with the FBI on this case. We know nothing about FBI involvement, nor who runs Freedom Hosting.</p><p>"The Tor project does not run the Tor Network. We do not run these hidden services. Our <a target="_blank" href="https://blog.torproject.org/blog/hidden-services-current-events-and-freedom-hosting">blog post</a> clearly states we have no role in this situation."</p><p>An FBI spokesperson said: "An individual has been arrested as part of an ongoing criminal investigation in the United States.</p><p>"Because this matter is ongoing, longstanding Department of Justice Policy prohibits us from discussing the matter further."</p>
                                                            </article>
                            ]]>
                        </content:encoded>
                                                </item>
                                <item>
                                                            <title><![CDATA[ Mozilla Firefox 4 review ]]></title>
                                                                                                <dc:content><![CDATA[ <figure role="gallery"><figure><img src="https://cdn.mos.cms.futurecdn.net/ERiZfRUpW9b3wHDTzJeCfj-1920-80.jpg" alt="Mozilla Firefox 4" /><figcaption>Mozilla Firefox 4</figcaption></figure><figure><img src="https://cdn.mos.cms.futurecdn.net/oAAu9EgfSq6pNnmE5AX8Yi-1920-80.jpg" alt="Mozilla Firefox 4's new interface" /><figcaption>Mozilla Firefox 4's new interface</figcaption></figure><figure><img src="https://cdn.mos.cms.futurecdn.net/4phBfKtKvvtMTs7hfFDSD7-1920-80.jpg" alt="Tab Groups in Mozilla Firefox 4" /><figcaption>Tab Groups in Mozilla Firefox 4</figcaption></figure></figure><p>Unlike Microsoft's latest browser, Mozilla's new Firefox 4 is compatible with Windows XP. This will immediately pique the interest of companies who have yet to migrate to Windows 7, but still want to use a more capable browser than the sluggish and clunky Internet Explorer 8. In any case Firefox 4 is here and you wouldn't mistake it for any previous version of Mozilla's open source browser.</p><p>Firefox 4 has a dramatically redesigned user interface that's quite a departure from the one seen in previous versions, but it also bears a striking resemblance to Google Chrome. The tabs now sit above the address bar which, combined with the lack of a menu bar, maximises the amount of screen space devoted to actual web content. A Windows Start menu-style Firefox menu contains the most common menu commands with the Bookmarks menu accessible from the Bookmarks toolbar, if you choose to leave it visible. It's possible to restore a more traditional appearance though, with a menu bar and tabs below the address bar.</p><p>Tabbed browsing has been given a makeover with an intriguing new feature called Tab Groups. Multiple windows full of tabs can be managed from a single visual overview without cluttering up your desktop and Task Bar with lots of windows. This is useful if you're addicted to tabbed browsing and juggle tabs related to different tasks and projects. Tabs can be dragged and dropped between groups, groups can named or resized so, for example, more important Tab Groups are bigger than less important ones.</p><p>Like Chrome, individual tabs can be 'pinned' so that they can't be closed which is useful for web applications, such as Google Docs, that you might always want accessible. If you start typing the address of a web page that's already open in another tab, Firefox offers to take you to that tab without reloading the page.</p><p>Firefox 4 can even use your computer's graphics chip to speed up the rendering of animations and other graphically demanding page elements, although the company has yet to confirm which graphics chips are officially supported.</p><p>On a laptop with an Intel GMA 4500M HD integrated graphics chip, Firefox 4 managed a fast 35fps in Microsoft's fish tank animation test with 50 fish onscreen. Chrome 10 was slower, but still smooth, at 25fps while Internet Explorer 9 lagged behind at a sluggish 13fps. The GMA 4500M HD is a widely used chip, so Mozilla's rivals still have some work to do, but it's still early days for hardware accelerated browsing.</p><p>A modest but useful improvement is the refined interface for finding, installing and managing the multitude of add-ons available. It uses a larger window that makes better use of the available screen space. Many add-ons will need to be updated by their developers before they'll work with Firefox 4, but the browser automatically disables incompatible ones anyway.</p><p>Users of multiple computers may appreciate Firefox Sync which lets you sychronise your bookmarks, history, open tabs and other settings between multiple computers running Firefox 4. It's not a new feature, having previously been available as an optional add-on for previous versions. An intriguing option is the ability to run your own Firefox Sync server if you'd rather not have sensitive business data and settings passing through Mozilla's servers for compliance or commercial reasons.</p><p>Privacy-conscious users will be attracted to Firefox's ability to stop websites and advertising networks from tracking them as they browse from site-to-site. However, this feature relies on websites and advertising networks respecting the user's wishes unethical websites and ad providers could still track the user. If you still want to enable this feature, it's tucked away in an obscure corner of the Options dialog box.</p><p><a href="https://www.itpro.com/632134/mozilla-firefox-4-review" target="_blank" data-original-url="https://www.itpro.com/632134/mozilla-firefox-4-review">So what's our verdict?</a></p><h2 id="verdict">Verdict</h2><p>Firefox 4 is the best version of Mozilla's web browser yet. We're fond of the fast rendering speeds, the useful Tab Groups feature and the interface as a whole, even if it is a little derivative. We also like the broad selection of available add-ons. Although you can't go too far wrong with any of the modern browsers, Firefox 4 is our preferred pick.</p><p>Processor: Intel Pentium 4 or newer processor that supports SSE2 Memory: 512MB Graphics: not stated Hard disk: 200MB free hard disk space OS: Windows 2000 or later</p> ]]></dc:content>
                                                                                                                                            <link>https://www.itpro.com/632134/mozilla-firefox-4-review</link>
                                                                            <description>
                            <![CDATA[ The long-awaited Firefox 4 is finally here, but is Mozilla's latest browser a must-have or a has-been? Read our review to find out. ]]>
                                                                                                            </description>
                                                                                                                                <guid isPermaLink="false">pDr37Xh5eU4yh64ef7UAeX</guid>
                                                                                                <enclosure url="https://cdn.mos.cms.futurecdn.net/ERiZfRUpW9b3wHDTzJeCfj-1920-80.jpg" type="image/jpeg" length="0"></enclosure>
                                                                        <pubDate>Tue, 22 Mar 2011 16:13:00 +0000</pubDate>                                                                                                                                <updated>Thu, 19 Nov 2026 16:36:09 +0000</updated>
                                                                                                                                            <category><![CDATA[Open Source]]></category>
                                                    <category><![CDATA[Workplace Technology]]></category>
                                                    <category><![CDATA[Software]]></category>
                                                                                                                    <dc:creator><![CDATA[ Alan Lu ]]></dc:creator>                                                                                                        <dc:description><![CDATA[ null ]]></dc:description>
                                                                                                                                <cf:isSponsored>false</cf:isSponsored>
                <cf:hasAffiliateLinks>false</cf:hasAffiliateLinks>
                <cf:isPaid>false</cf:isPaid>
                                                                                                                                                                                    <media:content type="image/jpeg" url="https://cdn.mos.cms.futurecdn.net/ERiZfRUpW9b3wHDTzJeCfj-1920-80.jpg">
                                                            <media:credit><![CDATA[null]]></media:credit>
                                                                                                                                                                        <media:description><![CDATA[Mozilla Firefox 4&amp;#39;s new interface]]></media:description>                                                            <media:text><![CDATA[Mozilla Firefox 4]]></media:text>
                                <media:title type="plain"><![CDATA[Mozilla Firefox 4]]></media:title>
                                                    </media:content>
                                                    <media:thumbnail url="https://cdn.mos.cms.futurecdn.net/ERiZfRUpW9b3wHDTzJeCfj-1920-80.jpg" />
                                                                                                                                                                    <content:encoded >
                            <![CDATA[
                            <article>
                                <figure role="gallery"><figure><img src="https://cdn.mos.cms.futurecdn.net/ERiZfRUpW9b3wHDTzJeCfj-1920-80.jpg" alt="Mozilla Firefox 4" /><figcaption>Mozilla Firefox 4</figcaption></figure><figure><img src="https://cdn.mos.cms.futurecdn.net/oAAu9EgfSq6pNnmE5AX8Yi-1920-80.jpg" alt="Mozilla Firefox 4's new interface" /><figcaption>Mozilla Firefox 4's new interface</figcaption></figure><figure><img src="https://cdn.mos.cms.futurecdn.net/4phBfKtKvvtMTs7hfFDSD7-1920-80.jpg" alt="Tab Groups in Mozilla Firefox 4" /><figcaption>Tab Groups in Mozilla Firefox 4</figcaption></figure></figure><p>Unlike Microsoft's latest browser, Mozilla's new Firefox 4 is compatible with Windows XP. This will immediately pique the interest of companies who have yet to migrate to Windows 7, but still want to use a more capable browser than the sluggish and clunky Internet Explorer 8. In any case Firefox 4 is here and you wouldn't mistake it for any previous version of Mozilla's open source browser.</p><p>Firefox 4 has a dramatically redesigned user interface that's quite a departure from the one seen in previous versions, but it also bears a striking resemblance to Google Chrome. The tabs now sit above the address bar which, combined with the lack of a menu bar, maximises the amount of screen space devoted to actual web content. A Windows Start menu-style Firefox menu contains the most common menu commands with the Bookmarks menu accessible from the Bookmarks toolbar, if you choose to leave it visible. It's possible to restore a more traditional appearance though, with a menu bar and tabs below the address bar.</p><p>Tabbed browsing has been given a makeover with an intriguing new feature called Tab Groups. Multiple windows full of tabs can be managed from a single visual overview without cluttering up your desktop and Task Bar with lots of windows. This is useful if you're addicted to tabbed browsing and juggle tabs related to different tasks and projects. Tabs can be dragged and dropped between groups, groups can named or resized so, for example, more important Tab Groups are bigger than less important ones.</p><p>Like Chrome, individual tabs can be 'pinned' so that they can't be closed which is useful for web applications, such as Google Docs, that you might always want accessible. If you start typing the address of a web page that's already open in another tab, Firefox offers to take you to that tab without reloading the page.</p><p>Firefox 4 can even use your computer's graphics chip to speed up the rendering of animations and other graphically demanding page elements, although the company has yet to confirm which graphics chips are officially supported.</p><p>On a laptop with an Intel GMA 4500M HD integrated graphics chip, Firefox 4 managed a fast 35fps in Microsoft's fish tank animation test with 50 fish onscreen. Chrome 10 was slower, but still smooth, at 25fps while Internet Explorer 9 lagged behind at a sluggish 13fps. The GMA 4500M HD is a widely used chip, so Mozilla's rivals still have some work to do, but it's still early days for hardware accelerated browsing.</p><p>A modest but useful improvement is the refined interface for finding, installing and managing the multitude of add-ons available. It uses a larger window that makes better use of the available screen space. Many add-ons will need to be updated by their developers before they'll work with Firefox 4, but the browser automatically disables incompatible ones anyway.</p><p>Users of multiple computers may appreciate Firefox Sync which lets you sychronise your bookmarks, history, open tabs and other settings between multiple computers running Firefox 4. It's not a new feature, having previously been available as an optional add-on for previous versions. An intriguing option is the ability to run your own Firefox Sync server if you'd rather not have sensitive business data and settings passing through Mozilla's servers for compliance or commercial reasons.</p><p>Privacy-conscious users will be attracted to Firefox's ability to stop websites and advertising networks from tracking them as they browse from site-to-site. However, this feature relies on websites and advertising networks respecting the user's wishes unethical websites and ad providers could still track the user. If you still want to enable this feature, it's tucked away in an obscure corner of the Options dialog box.</p><p><a href="https://www.itpro.com/632134/mozilla-firefox-4-review" target="_blank" data-original-url="https://www.itpro.com/632134/mozilla-firefox-4-review">So what's our verdict?</a></p><h2 id="verdict">Verdict</h2><p>Firefox 4 is the best version of Mozilla's web browser yet. We're fond of the fast rendering speeds, the useful Tab Groups feature and the interface as a whole, even if it is a little derivative. We also like the broad selection of available add-ons. Although you can't go too far wrong with any of the modern browsers, Firefox 4 is our preferred pick.</p><p>Processor: Intel Pentium 4 or newer processor that supports SSE2 Memory: 512MB Graphics: not stated Hard disk: 200MB free hard disk space OS: Windows 2000 or later</p>
                                                            </article>
                            ]]>
                        </content:encoded>
                                                </item>
                                <item>
                                                            <title><![CDATA[ Google gives Chrome 10 beta a turbo boost ]]></title>
                                                                                                <dc:content><![CDATA[ <p>Google has released a new beta version of Chrome 10, giving it a notable speed boost.</p><p>The firm announced "a dramatic improvement in JavaScript speed, new password sync features, and entirely revamped browser settings," via the Chrome <a href="http://chrome.blogspot.com/2011/02/faster-than-speeding-rabbit-speed-sync.html?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+blogspot%2FEgta+%28Google+Chrome+Blog%29" target="_blank">blog</a>.</p><p>Google said the JavaScript speed in this beta release is 66 per cent faster on the V8 benchmark suite over the current stable release.</p><p>"This release also includes a preliminary implementation of GPU-accelerated video," said Jeff Chang, product manager, and Min Li Chan, product marketing manager.</p><p>"Users with capable graphics hardware should see a significant decrease in CPU usage. In full screen mode, CPU usage may decrease by as much as 80 per cent."</p><p>Google has also added additional password syncing features, allowing users to synchronise saved passwords across multiple computers.</p><p>"For added security, you can choose to encrypt your synced passwords with your own secret sync passphrase," the blog continued.</p><p>The Chrome team has also sought to make it simpler to customise the browser through updated settings.</p><p>"Firstly, if you can't remember where a particular pesky configuration setting is, simply type its name into the search box to see the settings that match as you type," Google added.</p><p>"Secondly, you can also now jump directly to most settings pages using their own dedicated URLs, without needing to navigate through a sequence of windows."</p><p>Oracle trouble</p><p>Outside of developing its browser, Google is involved in legal proceedings with Oracle. Larry Ellison's firm has claimed Google pilfered some Java code for use in the Android operating system.</p><p>In a recent development, it appears Google has asked the US Patent Office to review some of the Java patents Oracle has presented as part of the case.</p><p>A <a href="http://www.whda.com/blog/2011/02/google-takes-oracle%E2%80%99s-android-case-to-the-patent-office" target="_blank">blog</a> from US law firm Westerman Hattori Daniels &amp; Adrian read: "Google requested ex parte reexamination of four Oracle America patents - US Patent Nos. 5,966,702, 6,061,520, 6,125,447 &amp; RE 38,104 related to the Java platform.'"</p><p>Open source advocate and software patent blogger Florian Mueller said he was surprised Google had only now made the move.</p><p>"Requests for reexamination of patents-in-suit are common. Frankly, I wonder why it even took so long," Mueller said.</p><p>"When Oracle sued Google in August, I thought this was going to happen within a few months."</p><p>Meuller doubted that the seven patents Oracle laid on the table are the only ones that could be used against Google.</p><p>"It's also possible that Oracle owns patents that could put Google under pressure in some of its other business areas, if Oracle ever felt forced to assert them."</p> ]]></dc:content>
                                                                                                                                            <link>https://www.itpro.com/631216/google-gives-chrome-10-beta-a-turbo-boost</link>
                                                                            <description>
                            <![CDATA[ The latest Chrome 10 beta boasts a 66 per cent improvement in JavaScript speed over the stable version. ]]>
                                                                                                            </description>
                                                                                                                                <guid isPermaLink="false">cdTsXWJN6djojKHi448aym</guid>
                                                                                                <enclosure url="https://cdn.mos.cms.futurecdn.net/s9M3ef9z5hL4TAiR5T2GxP-1920-80.jpg" type="image/jpeg" length="0"></enclosure>
                                                                        <pubDate>Fri, 18 Feb 2011 11:28:00 +0000</pubDate>                                                                                                                                <updated>Thu, 19 Nov 2026 16:36:04 +0000</updated>
                                                                                                                                            <category><![CDATA[Google]]></category>
                                                    <category><![CDATA[Workplace Technology]]></category>
                                                    <category><![CDATA[Software]]></category>
                                                                                                                    <dc:creator><![CDATA[ Tom Brewster ]]></dc:creator>                                                                                    <dc:source><![CDATA[ https://cdn.mos.cms.futurecdn.net/psoXF2XncFmBPV5bZfu7XT-320-70.jpg ]]></dc:source>
                                                                <dc:description><![CDATA[ &lt;p&gt;Tom Brewster is currently an associate editor at Forbes and an award-winning journalist who covers cyber security, surveillance, and privacy. Starting his career at ITPro as a staff writer and working up to a senior staff writer role, Tom has been covering the tech industry for more than ten years and is considered one of the leading journalists in his specialism. Between his roles at ITPro and Forbes, Tom has also assumed the position of deputy editor at TechWeekEurope and worked as a freelance journalist for nine years, securing bylines in other leading technology publications.&lt;/p&gt;
&lt;p&gt;He is a proud alum of the University of Sheffield where he secured an undergraduate degree in English Literature before undertaking a certification from General Assembly in web development. You can read his work here at ITPro, over at Forbes, and sign up for his newsletter, The Wiretap, to learn about how surveillance is used in the real world, as well as containing all the security and privacy news worth knowing.&lt;/p&gt; ]]></dc:description>
                                                                                                                                <cf:isSponsored>false</cf:isSponsored>
                <cf:hasAffiliateLinks>false</cf:hasAffiliateLinks>
                <cf:isPaid>false</cf:isPaid>
                                                                                                                                                                                    <media:content type="image/jpeg" url="https://cdn.mos.cms.futurecdn.net/s9M3ef9z5hL4TAiR5T2GxP-1920-80.jpg">
                                                            <media:credit><![CDATA[null]]></media:credit>
                                                                                                                                                                                                                                    <media:description><![CDATA[Chrome]]></media:description>                                                            <media:text><![CDATA[Chrome]]></media:text>
                                <media:title type="plain"><![CDATA[Chrome]]></media:title>
                                                    </media:content>
                                                    <media:thumbnail url="https://cdn.mos.cms.futurecdn.net/s9M3ef9z5hL4TAiR5T2GxP-1920-80.jpg" />
                                                                                                                                                                    <content:encoded >
                            <![CDATA[
                            <article>
                                <p>Google has released a new beta version of Chrome 10, giving it a notable speed boost.</p><p>The firm announced "a dramatic improvement in JavaScript speed, new password sync features, and entirely revamped browser settings," via the Chrome <a href="http://chrome.blogspot.com/2011/02/faster-than-speeding-rabbit-speed-sync.html?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+blogspot%2FEgta+%28Google+Chrome+Blog%29" target="_blank">blog</a>.</p><p>Google said the JavaScript speed in this beta release is 66 per cent faster on the V8 benchmark suite over the current stable release.</p><p>"This release also includes a preliminary implementation of GPU-accelerated video," said Jeff Chang, product manager, and Min Li Chan, product marketing manager.</p><p>"Users with capable graphics hardware should see a significant decrease in CPU usage. In full screen mode, CPU usage may decrease by as much as 80 per cent."</p><p>Google has also added additional password syncing features, allowing users to synchronise saved passwords across multiple computers.</p><p>"For added security, you can choose to encrypt your synced passwords with your own secret sync passphrase," the blog continued.</p><p>The Chrome team has also sought to make it simpler to customise the browser through updated settings.</p><p>"Firstly, if you can't remember where a particular pesky configuration setting is, simply type its name into the search box to see the settings that match as you type," Google added.</p><p>"Secondly, you can also now jump directly to most settings pages using their own dedicated URLs, without needing to navigate through a sequence of windows."</p><p>Oracle trouble</p><p>Outside of developing its browser, Google is involved in legal proceedings with Oracle. Larry Ellison's firm has claimed Google pilfered some Java code for use in the Android operating system.</p><p>In a recent development, it appears Google has asked the US Patent Office to review some of the Java patents Oracle has presented as part of the case.</p><p>A <a href="http://www.whda.com/blog/2011/02/google-takes-oracle%E2%80%99s-android-case-to-the-patent-office" target="_blank">blog</a> from US law firm Westerman Hattori Daniels &amp; Adrian read: "Google requested ex parte reexamination of four Oracle America patents - US Patent Nos. 5,966,702, 6,061,520, 6,125,447 &amp; RE 38,104 related to the Java platform.'"</p><p>Open source advocate and software patent blogger Florian Mueller said he was surprised Google had only now made the move.</p><p>"Requests for reexamination of patents-in-suit are common. Frankly, I wonder why it even took so long," Mueller said.</p><p>"When Oracle sued Google in August, I thought this was going to happen within a few months."</p><p>Meuller doubted that the seven patents Oracle laid on the table are the only ones that could be used against Google.</p><p>"It's also possible that Oracle owns patents that could put Google under pressure in some of its other business areas, if Oracle ever felt forced to assert them."</p>
                                                            </article>
                            ]]>
                        </content:encoded>
                                                </item>
                                <item>
                                                            <title><![CDATA[ IE9 gets closer to release with new version ]]></title>
                                                                                                <dc:content><![CDATA[ <p>Internet Explorer 9, the latest version of Microsoft's web browser, is now one step closer to its final, finished form with the release candidate now available.</p><p>One new feature in this latest build of IE9 is Tracking Protection which should prevent advertising companies, as well as more unscrupulous characters, from tracking users and their surfing behaviour as they go from site to site.</p><p>Unfortunately, the interface isn't immediately obvious.</p><p>Users can subscribe to a list which automatically blocks trackers, or they can choose to block them on a case-by-case basis, but it's not clear exactly how this can be achieved.</p><p>There have also been tweaks to the user interface the tab bar which sits to the right of the location/search box by default can now be moved so it sits beneath the box. It's also possible to start searching for a web page immediately from the location box, instead of searching your history and bookmarks, by typing a question mark and then keywords.</p><p>The ability to pin websites to the Windows taskbar so they act more like locally installed programs has also been tweaked. For sites that support it, users can now adjust various options such as their appearance or which options appear in the site's taskbar jump list. This can be done from a settings dialogue box or a setup wizard the first time you run the site after pinning.</p><p>Microsoft claims to have boosted JavaScript performance even further and graphics hardware acceleration is now only enabled for sites that can take advantage of it. Support for additional HTML5 features, such as finding your location based on your IP address, has also been added although this geolocation feature didn't work on our wireless network.</p><p>Due to the improved security features in Vista and Windows 7 required by IE9, the new browser won't be available for Windows XP users. Microsoft's advice is for XP users to stick with IE8, which won't be discontinued.</p><p>This release candidate should be the last build before the finished version is released, but Microsoft representatives were unwilling to commit to a release date.</p> ]]></dc:content>
                                                                                                                                            <link>https://www.itpro.com/630949/ie9-gets-closer-to-release-with-new-version</link>
                                                                            <description>
                            <![CDATA[ The new release candidate of IE9 is here, but as yet there's no word on when the finished browser will be ready. ]]>
                                                                                                            </description>
                                                                                                                                <guid isPermaLink="false">ebRU9LS3585z2Ny9XxmABK</guid>
                                                                                                <enclosure url="https://cdn.mos.cms.futurecdn.net/GYT5MtpCFdX5gBZ8cfCNZM-1920-80.jpg" type="image/jpeg" length="0"></enclosure>
                                                                        <pubDate>Thu, 10 Feb 2011 17:17:00 +0000</pubDate>                                                                                                                                <updated>Thu, 19 Nov 2026 22:36:54 +0000</updated>
                                                                                                                                            <category><![CDATA[Microsoft]]></category>
                                                    <category><![CDATA[Software]]></category>
                                                    <category><![CDATA[Workplace Technology]]></category>
                                                                                                                    <dc:creator><![CDATA[ Alan Lu ]]></dc:creator>                                                                                                        <dc:description><![CDATA[ null ]]></dc:description>
                                                                                                                                <cf:isSponsored>false</cf:isSponsored>
                <cf:hasAffiliateLinks>false</cf:hasAffiliateLinks>
                <cf:isPaid>false</cf:isPaid>
                                                                                                                                                                                    <media:content type="image/jpeg" url="https://cdn.mos.cms.futurecdn.net/GYT5MtpCFdX5gBZ8cfCNZM-1920-80.jpg">
                                                            <media:credit><![CDATA[null]]></media:credit>
                                                                                                                                                                                                                                    <media:description><![CDATA[The Tracking Protection settings in Internet Explorer 9]]></media:description>                                                            <media:text><![CDATA[The Tracking Protection settings in Internet Explorer 9]]></media:text>
                                <media:title type="plain"><![CDATA[The Tracking Protection settings in Internet Explorer 9]]></media:title>
                                                    </media:content>
                                                    <media:thumbnail url="https://cdn.mos.cms.futurecdn.net/GYT5MtpCFdX5gBZ8cfCNZM-1920-80.jpg" />
                                                                                                                                                                    <content:encoded >
                            <![CDATA[
                            <article>
                                <p>Internet Explorer 9, the latest version of Microsoft's web browser, is now one step closer to its final, finished form with the release candidate now available.</p><p>One new feature in this latest build of IE9 is Tracking Protection which should prevent advertising companies, as well as more unscrupulous characters, from tracking users and their surfing behaviour as they go from site to site.</p><p>Unfortunately, the interface isn't immediately obvious.</p><p>Users can subscribe to a list which automatically blocks trackers, or they can choose to block them on a case-by-case basis, but it's not clear exactly how this can be achieved.</p><p>There have also been tweaks to the user interface the tab bar which sits to the right of the location/search box by default can now be moved so it sits beneath the box. It's also possible to start searching for a web page immediately from the location box, instead of searching your history and bookmarks, by typing a question mark and then keywords.</p><p>The ability to pin websites to the Windows taskbar so they act more like locally installed programs has also been tweaked. For sites that support it, users can now adjust various options such as their appearance or which options appear in the site's taskbar jump list. This can be done from a settings dialogue box or a setup wizard the first time you run the site after pinning.</p><p>Microsoft claims to have boosted JavaScript performance even further and graphics hardware acceleration is now only enabled for sites that can take advantage of it. Support for additional HTML5 features, such as finding your location based on your IP address, has also been added although this geolocation feature didn't work on our wireless network.</p><p>Due to the improved security features in Vista and Windows 7 required by IE9, the new browser won't be available for Windows XP users. Microsoft's advice is for XP users to stick with IE8, which won't be discontinued.</p><p>This release candidate should be the last build before the finished version is released, but Microsoft representatives were unwilling to commit to a release date.</p>
                                                            </article>
                            ]]>
                        </content:encoded>
                                                </item>
                                <item>
                                                            <title><![CDATA[ jQuery gets the mobile touch ]]></title>
                                                                                                <dc:content><![CDATA[ <p>The jQuery Project has launched an initiative to develop its JavaScript library for touch screen mobile phones and slates.</p><p>The jQuery Mobile Project aims to simplify the development of applications running in HTML browsers. Rather than reworking code for each mobile device operating system, the library framework will allow an application to be designed once for deployment across the range of supported devices.</p><p>Another attraction for developers is that the finished app will look similar on every platform. This gives it a branded identity which is an advantage in such a competitive market.</p><p>"The mobile web is desperately in need of a framework that is capable of working across all browsers, allowing developers to build truly mobile web sites," said jQuery's creator John Resig.</p><p>"We're doing all we can to ensure that jQuery Mobile fills that need."</p><p>The library will support all popular mobile browsers that Resig's team considers sufficiently capable of handling JavaScript. This is similar to how jQuery has been developed on the desktop.</p><p>The mobile operating systems selected comprise, Apple iOS, Google Android, BlackBerry, Palm webOS, Windows Phone, Symbian, Samsung bada, and Linux-based Maemo and MeeGo.</p><p>A team has been working on the routines for some time and now the hard work of testing is beginning. The open source project will expand as more volunteers join this stage of the work. Resig said that he hopes to release jQuery Mobile before the end of the year.</p> ]]></dc:content>
                                                                                                                                            <link>https://www.itpro.com/626203/jquery-gets-the-mobile-touch</link>
                                                                            <description>
                            <![CDATA[ JavaScript project promises faster app creation for touchscreen devices ]]>
                                                                                                            </description>
                                                                                                                                <guid isPermaLink="false">5a2PDizB2raYdSTs1oEQGp</guid>
                                                                                                <enclosure url="https://cdn.mos.cms.futurecdn.net/dNqs3p3zoc89Q9X3oyUTCg-1920-80.jpg" type="image/jpeg" length="0"></enclosure>
                                                                        <pubDate>Thu, 19 Aug 2010 12:40:00 +0000</pubDate>                                                                                                                                <updated>Thu, 19 Nov 2026 22:25:53 +0000</updated>
                                                                                                                                            <category><![CDATA[Software Engineering]]></category>
                                                    <category><![CDATA[Mobile Phones]]></category>
                                                    <category><![CDATA[Hardware]]></category>
                                                                                                                    <dc:creator><![CDATA[ Eric Doyle ]]></dc:creator>                                                                                                        <dc:description><![CDATA[ null ]]></dc:description>
                                                                                                                                <cf:isSponsored>false</cf:isSponsored>
                <cf:hasAffiliateLinks>false</cf:hasAffiliateLinks>
                <cf:isPaid>false</cf:isPaid>
                                                                                                                                                                                    <media:content type="image/jpeg" url="https://cdn.mos.cms.futurecdn.net/dNqs3p3zoc89Q9X3oyUTCg-1920-80.jpg">
                                                            <media:credit><![CDATA[null]]></media:credit>
                                                                                                                                                                                                                                    <media:description><![CDATA[Javascript]]></media:description>                                                            <media:text><![CDATA[Javascript]]></media:text>
                                <media:title type="plain"><![CDATA[Javascript]]></media:title>
                                                    </media:content>
                                                    <media:thumbnail url="https://cdn.mos.cms.futurecdn.net/dNqs3p3zoc89Q9X3oyUTCg-1920-80.jpg" />
                                                                                                                                                                    <content:encoded >
                            <![CDATA[
                            <article>
                                <p>The jQuery Project has launched an initiative to develop its JavaScript library for touch screen mobile phones and slates.</p><p>The jQuery Mobile Project aims to simplify the development of applications running in HTML browsers. Rather than reworking code for each mobile device operating system, the library framework will allow an application to be designed once for deployment across the range of supported devices.</p><p>Another attraction for developers is that the finished app will look similar on every platform. This gives it a branded identity which is an advantage in such a competitive market.</p><p>"The mobile web is desperately in need of a framework that is capable of working across all browsers, allowing developers to build truly mobile web sites," said jQuery's creator John Resig.</p><p>"We're doing all we can to ensure that jQuery Mobile fills that need."</p><p>The library will support all popular mobile browsers that Resig's team considers sufficiently capable of handling JavaScript. This is similar to how jQuery has been developed on the desktop.</p><p>The mobile operating systems selected comprise, Apple iOS, Google Android, BlackBerry, Palm webOS, Windows Phone, Symbian, Samsung bada, and Linux-based Maemo and MeeGo.</p><p>A team has been working on the routines for some time and now the hard work of testing is beginning. The open source project will expand as more volunteers join this stage of the work. Resig said that he hopes to release jQuery Mobile before the end of the year.</p>
                                                            </article>
                            ]]>
                        </content:encoded>
                                                </item>
                                <item>
                                                            <title><![CDATA[ New ‘Beladen’ threat infecting 40,000 websites ]]></title>
                                                                                                <dc:content><![CDATA[ <p>The number of <a href="https://www.itpro.com/610525/web-under-siege-from-drive-by-download-attacks" target="_blank" data-original-url="https://www.itpro.com/610525/web-under-siege-from-drive-by-download-attacks">legitimate websites now compromised around the world</a> by a malicious Javascript injection is now at 40,000 and growing.</p><p>This was according to the security vendor <a href="http://www.websense.com/content/home.aspx" rel="nofollow">Websense</a>, which <a href="http://securitylabs.websense.com/content/Alerts/3405.aspx?cmpid=sltw" target="_blank">originally alerted last Friday</a> that only around 20,000 had been compromised, meaning the infection has doubled in size in only a few days.</p><p>Websense has dubbed the threat Beladen', as this is the name of the exploit site that the obfuscated code ultimately redirects unwitting users to from the legitimate website.</p><p>Beladen.net is full of various attacks and after a successful exploitation, a malicious file will be run on the infected computer.</p><p>The exploit also uses the typo-squatter' domain with a similar name to the legitimate Google Analytics domain (google-analytics.com), redirecting users to beladen.net.</p><p>Speaking to <em>IT PRO</em>, threat research manager Carl Leonard said he believed that the attackers were using an automated tool to find vulnerable sites to inject code into, and that it was a big increase for such a short period of time.</p><p>He said: "Right now we're seeing it increasing on a daily basis. This one is particularly interesting because it's sites that have been quiet for a while.</p><p>"Beladen.net has been known to us for quite some time, and suddenly it has woken up and is now hosting these exploits."</p><p>Leonard said that this attack showed similarities to previous attacks carried out by organised cybercriminals the <a href="http://rbnexploit.blogspot.com" rel="nofollow">Russian Business Network' (RBN)</a> in the past.</p><p>He said: "In the security industry we thought that the RBN had died out. It might be a copycat replicating some of the activities, or it could be a group within that team who are now reactivating and injecting further sites."</p><p>Websense didn't believe that it was related to the Gumblar' threat reported by <em>IT PRO</em> last May, which Sophos claimed was the [a href="</p><p>https://www.itpro.com/610878/researchers-discover-the-biggest-web-malware-threat" target="_blank"]biggest web malware threat'[/a].</p><p>Beladen also had a low anti-virus detection rate. Leonard said that at the time the attack was first reported, only four out of 40 anti-virus vendors had reported the threat.</p><p>He also said that if an exploit didn't work on a machine, the attack would also try to download rogue anti-virus software, in order to dupe users in downloading a trojan.</p> ]]></dc:content>
                                                                                                                                            <link>https://www.itpro.com/611236/new-beladen-threat-infecting-40000-websites</link>
                                                                            <description>
                            <![CDATA[ Security vendors suspect it might be the work of cybercriminal gang ‘The Russian Business Network’. ]]>
                                                                                                            </description>
                                                                                                                                <guid isPermaLink="false">d6qEsbn92Dv79XE6hHqcan</guid>
                                                                                                <enclosure url="https://cdn.mos.cms.futurecdn.net/A5p5XRs7fYtGT9bdzA2HqV-1920-80.jpg" type="image/jpeg" length="0"></enclosure>
                                                                        <pubDate>Tue, 02 Jun 2009 11:50:00 +0000</pubDate>                                                                                                                                <updated>Thu, 19 Nov 2026 22:15:21 +0000</updated>
                                                                                                                                            <category><![CDATA[Malware]]></category>
                                                    <category><![CDATA[Hacking]]></category>
                                                    <category><![CDATA[Cyber Resilience]]></category>
                                                                                                                    <dc:creator><![CDATA[ Asavin Wattanajantra ]]></dc:creator>                                                                                                        <dc:description><![CDATA[ null ]]></dc:description>
                                                                                                                                <cf:isSponsored>false</cf:isSponsored>
                <cf:hasAffiliateLinks>false</cf:hasAffiliateLinks>
                <cf:isPaid>false</cf:isPaid>
                                                                                                                                                                                    <media:content type="image/jpeg" url="https://cdn.mos.cms.futurecdn.net/A5p5XRs7fYtGT9bdzA2HqV-1920-80.jpg">
                                                            <media:credit><![CDATA[null]]></media:credit>
                                                                                                                                                                                                                                                                                                                                                    </media:content>
                                                    <media:thumbnail url="https://cdn.mos.cms.futurecdn.net/A5p5XRs7fYtGT9bdzA2HqV-1920-80.jpg" />
                                                                                                                                                                    <content:encoded >
                            <![CDATA[
                            <article>
                                <p>The number of <a href="https://www.itpro.com/610525/web-under-siege-from-drive-by-download-attacks" target="_blank" data-original-url="https://www.itpro.com/610525/web-under-siege-from-drive-by-download-attacks">legitimate websites now compromised around the world</a> by a malicious Javascript injection is now at 40,000 and growing.</p><p>This was according to the security vendor <a href="http://www.websense.com/content/home.aspx" rel="nofollow">Websense</a>, which <a href="http://securitylabs.websense.com/content/Alerts/3405.aspx?cmpid=sltw" target="_blank">originally alerted last Friday</a> that only around 20,000 had been compromised, meaning the infection has doubled in size in only a few days.</p><p>Websense has dubbed the threat Beladen', as this is the name of the exploit site that the obfuscated code ultimately redirects unwitting users to from the legitimate website.</p><p>Beladen.net is full of various attacks and after a successful exploitation, a malicious file will be run on the infected computer.</p><p>The exploit also uses the typo-squatter' domain with a similar name to the legitimate Google Analytics domain (google-analytics.com), redirecting users to beladen.net.</p><p>Speaking to <em>IT PRO</em>, threat research manager Carl Leonard said he believed that the attackers were using an automated tool to find vulnerable sites to inject code into, and that it was a big increase for such a short period of time.</p><p>He said: "Right now we're seeing it increasing on a daily basis. This one is particularly interesting because it's sites that have been quiet for a while.</p><p>"Beladen.net has been known to us for quite some time, and suddenly it has woken up and is now hosting these exploits."</p><p>Leonard said that this attack showed similarities to previous attacks carried out by organised cybercriminals the <a href="http://rbnexploit.blogspot.com" rel="nofollow">Russian Business Network' (RBN)</a> in the past.</p><p>He said: "In the security industry we thought that the RBN had died out. It might be a copycat replicating some of the activities, or it could be a group within that team who are now reactivating and injecting further sites."</p><p>Websense didn't believe that it was related to the Gumblar' threat reported by <em>IT PRO</em> last May, which Sophos claimed was the [a href="</p><p>https://www.itpro.com/610878/researchers-discover-the-biggest-web-malware-threat" target="_blank"]biggest web malware threat'[/a].</p><p>Beladen also had a low anti-virus detection rate. Leonard said that at the time the attack was first reported, only four out of 40 anti-virus vendors had reported the threat.</p><p>He also said that if an exploit didn't work on a machine, the attack would also try to download rogue anti-virus software, in order to dupe users in downloading a trojan.</p>
                                                            </article>
                            ]]>
                        </content:encoded>
                                                </item>
                                <item>
                                                            <title><![CDATA[ Adobe PDF Reader patched due to critical flaws ]]></title>
                                                                                                <dc:content><![CDATA[ <p><a href="http://www.adobe.com" target="_blank">Adobe</a> has issued a <a href="http://www.adobe.com/support/security/bulletins/apsb08-19.html" target="_blank">security update</a> to fix critical vulnerabilities in its PDF-focused Adobe Reader and Acrobat applications.</p><p>Adobe Reader version 9, released in June of this year, is not affected.</p><p>The vulnerabilities were identified in Adobe Reader and Acrobat 8.1.2 as well as earlier versions and caused the application to crash as well as potentially allowing an attacker to take control of the affected system.</p><p>Security vendor <a href="http://www.coresecurity.com" target="_blank">Core Security</a> said that Adobe Reader was able to be exploited through the use of a specially-crafted PDF file which carries malicious JavaScript content.</p><p>For the vulnerability to successfully work, a user would need to open the maliciously-crafted PDF file. Attackers would then be free to execute arbitrary code.</p><p>Once Core Security made the discovery, it alerted Adobe and the two companies joined forces to create a patch to solve the problem and protect vulnerable users.</p><p>Core Security's chief technology officer (CTO) Ivan Arce said that the complexity of Adobe Reader created a broad surface for potential vulnerabilities and that Adobe's inclusion of a JavaScript engine could have introduced implementation bugs.</p><p>He said: "The bug was discovered while investigating a previously disclosed and similar problem in another PDF application, highlighting the manner in which common implementation mistakes are frequently shared among multiple vendors."</p><p>It's not the first time Adobe has had security problems in the recent months. In August, Adobe investigated <a href="https://www.itpro.com/605628/adobe-investigates-clipboard-flash-attacks" target="_blank" data-original-url="https://www.itpro.com/605628/adobe-investigates-clipboard-flash-attacks">Flash banner ads hijacking users' clipboards</a>, while in October Adobe's website suffered a <a href="https://www.itpro.com/607323/adobe-website-suffers-sql-injection-attack" target="_blank" data-original-url="https://www.itpro.com/607323/adobe-website-suffers-sql-injection-attack">SQL injection attack</a>.</p> ]]></dc:content>
                                                                                                                                            <link>https://www.itpro.com/607935/adobe-pdf-reader-patched-due-to-critical-flaws</link>
                                                                            <description>
                            <![CDATA[ In the last couple of months, Adobe has been hit by clipboard and SQL injection attacks. Now PDF file and JavaScript vulnerabilities force a new patch to be released. ]]>
                                                                                                            </description>
                                                                                                                                <guid isPermaLink="false">fekQmXdW3hep4uRpR75Rpy</guid>
                                                                                                <enclosure url="https://cdn.mos.cms.futurecdn.net/jd4ijhQiqU6TyYC77Mw2FB-1920-80.jpg" type="image/jpeg" length="0"></enclosure>
                                                                        <pubDate>Wed, 05 Nov 2008 11:17:00 +0000</pubDate>                                                                                                                                <updated>Thu, 19 Nov 2026 16:12:26 +0000</updated>
                                                                                                                                            <category><![CDATA[Security Operations]]></category>
                                                    <category><![CDATA[Cyber Resilience]]></category>
                                                                                                                    <dc:creator><![CDATA[ Asavin Wattanajantra ]]></dc:creator>                                                                                                        <dc:description><![CDATA[ null ]]></dc:description>
                                                                                                                                <cf:isSponsored>false</cf:isSponsored>
                <cf:hasAffiliateLinks>false</cf:hasAffiliateLinks>
                <cf:isPaid>false</cf:isPaid>
                                                                                                                                                                                    <media:content type="image/jpeg" url="https://cdn.mos.cms.futurecdn.net/jd4ijhQiqU6TyYC77Mw2FB-1920-80.jpg">
                                                            <media:credit><![CDATA[null]]></media:credit>
                                                                                                                                                                                                                                                                                                                                                    </media:content>
                                                    <media:thumbnail url="https://cdn.mos.cms.futurecdn.net/jd4ijhQiqU6TyYC77Mw2FB-1920-80.jpg" />
                                                                                                                                                                    <content:encoded >
                            <![CDATA[
                            <article>
                                <p><a href="http://www.adobe.com" target="_blank">Adobe</a> has issued a <a href="http://www.adobe.com/support/security/bulletins/apsb08-19.html" target="_blank">security update</a> to fix critical vulnerabilities in its PDF-focused Adobe Reader and Acrobat applications.</p><p>Adobe Reader version 9, released in June of this year, is not affected.</p><p>The vulnerabilities were identified in Adobe Reader and Acrobat 8.1.2 as well as earlier versions and caused the application to crash as well as potentially allowing an attacker to take control of the affected system.</p><p>Security vendor <a href="http://www.coresecurity.com" target="_blank">Core Security</a> said that Adobe Reader was able to be exploited through the use of a specially-crafted PDF file which carries malicious JavaScript content.</p><p>For the vulnerability to successfully work, a user would need to open the maliciously-crafted PDF file. Attackers would then be free to execute arbitrary code.</p><p>Once Core Security made the discovery, it alerted Adobe and the two companies joined forces to create a patch to solve the problem and protect vulnerable users.</p><p>Core Security's chief technology officer (CTO) Ivan Arce said that the complexity of Adobe Reader created a broad surface for potential vulnerabilities and that Adobe's inclusion of a JavaScript engine could have introduced implementation bugs.</p><p>He said: "The bug was discovered while investigating a previously disclosed and similar problem in another PDF application, highlighting the manner in which common implementation mistakes are frequently shared among multiple vendors."</p><p>It's not the first time Adobe has had security problems in the recent months. In August, Adobe investigated <a href="https://www.itpro.com/605628/adobe-investigates-clipboard-flash-attacks" target="_blank" data-original-url="https://www.itpro.com/605628/adobe-investigates-clipboard-flash-attacks">Flash banner ads hijacking users' clipboards</a>, while in October Adobe's website suffered a <a href="https://www.itpro.com/607323/adobe-website-suffers-sql-injection-attack" target="_blank" data-original-url="https://www.itpro.com/607323/adobe-website-suffers-sql-injection-attack">SQL injection attack</a>.</p>
                                                            </article>
                            ]]>
                        </content:encoded>
                                                </item>
                                <item>
                                                            <title><![CDATA[ PDF and Flash files under threat from cryptic code ]]></title>
                                                                                                <dc:content><![CDATA[ <p>PDF and Flash files are under attack by criminals using code obfuscation' and the latest Web 2.0 techniques, according to a report by <a href="http://www.finjan.com" target="_blank">Finjan</a>.</p><p>The new report claimed that malicious obfuscated code' - meaning source code or intermediate code which is very hard to read or understand - has now evolved into a serious threat.</p><p>It looked at examples where obfuscated code had not only been embedded in HTML web pages on legitimate websites, but also in rich-content files thanks to the use of JavaScript.</p><p>"Since JavaScript is the most-used scripting language for communication with web browsers, third-party applications such as Flash players, PDF readers and other multimedia applications have added support for JavaScript as part of their application," said Yuval Ben-Itzhak, chief technology officer of Finjan.</p><p>Ben-Itzhak said this offered crimeware authors ways to inject malicious code into rich-content files used by ads and user-generated content for Web 2.0 websites.</p><p>Obfuscated code has been around a while; it has been reportedly been used since 2005 as a weapon for propagating malicious code. It was able to bypass the traditional signature-based solutions which had been used by security vendors.</p><p>Finjan claimed code obfuscation utilities and other encoding methods allowed cybercriminals to plant invisible' malicious code, which infected a user's machine every time they visited the malicious site.</p><p>Last year <em>IT PRO</em> looked at the threat provided by <a href="https://www.itpro.com/101905/hackers-turn-to-code-obfuscation" target="_blank" data-original-url="https://www.itpro.com/101905/hackers-turn-to-code-obfuscation">dynamic code obfuscation'</a>.</p> ]]></dc:content>
                                                                                                                                            <link>https://www.itpro.com/606447/pdf-and-flash-files-under-threat-from-cryptic-code</link>
                                                                            <description>
                            <![CDATA[ Disguised or hard to understand code is become more of a threat to Web 2.0 websites as criminals taking advantage of JavaScript. ]]>
                                                                                                            </description>
                                                                                                                                <guid isPermaLink="false">mCnqDmgMEeHEo6ChqrExkK</guid>
                                                                                                <enclosure url="https://cdn.mos.cms.futurecdn.net/fLGjBXhRFy9ShJbmy4g9jN-1920-80.jpg" type="image/jpeg" length="0"></enclosure>
                                                                        <pubDate>Wed, 24 Sep 2008 11:29:00 +0000</pubDate>                                                                                                                                <updated>Thu, 19 Nov 2026 22:21:24 +0000</updated>
                                                                                                                                            <category><![CDATA[Threat Intelligence]]></category>
                                                    <category><![CDATA[Malware]]></category>
                                                    <category><![CDATA[Cyber Resilience]]></category>
                                                                                                                    <dc:creator><![CDATA[ Asavin Wattanajantra ]]></dc:creator>                                                                                                        <dc:description><![CDATA[ null ]]></dc:description>
                                                                                                                                <cf:isSponsored>false</cf:isSponsored>
                <cf:hasAffiliateLinks>false</cf:hasAffiliateLinks>
                <cf:isPaid>false</cf:isPaid>
                                                                                                                                                                                    <media:content type="image/jpeg" url="https://cdn.mos.cms.futurecdn.net/fLGjBXhRFy9ShJbmy4g9jN-1920-80.jpg">
                                                            <media:credit><![CDATA[null]]></media:credit>
                                                                                                                                                                                                                                                                                                                                                    </media:content>
                                                    <media:thumbnail url="https://cdn.mos.cms.futurecdn.net/fLGjBXhRFy9ShJbmy4g9jN-1920-80.jpg" />
                                                                                                                                                                    <content:encoded >
                            <![CDATA[
                            <article>
                                <p>PDF and Flash files are under attack by criminals using code obfuscation' and the latest Web 2.0 techniques, according to a report by <a href="http://www.finjan.com" target="_blank">Finjan</a>.</p><p>The new report claimed that malicious obfuscated code' - meaning source code or intermediate code which is very hard to read or understand - has now evolved into a serious threat.</p><p>It looked at examples where obfuscated code had not only been embedded in HTML web pages on legitimate websites, but also in rich-content files thanks to the use of JavaScript.</p><p>"Since JavaScript is the most-used scripting language for communication with web browsers, third-party applications such as Flash players, PDF readers and other multimedia applications have added support for JavaScript as part of their application," said Yuval Ben-Itzhak, chief technology officer of Finjan.</p><p>Ben-Itzhak said this offered crimeware authors ways to inject malicious code into rich-content files used by ads and user-generated content for Web 2.0 websites.</p><p>Obfuscated code has been around a while; it has been reportedly been used since 2005 as a weapon for propagating malicious code. It was able to bypass the traditional signature-based solutions which had been used by security vendors.</p><p>Finjan claimed code obfuscation utilities and other encoding methods allowed cybercriminals to plant invisible' malicious code, which infected a user's machine every time they visited the malicious site.</p><p>Last year <em>IT PRO</em> looked at the threat provided by <a href="https://www.itpro.com/101905/hackers-turn-to-code-obfuscation" target="_blank" data-original-url="https://www.itpro.com/101905/hackers-turn-to-code-obfuscation">dynamic code obfuscation'</a>.</p>
                                                            </article>
                            ]]>
                        </content:encoded>
                                                </item>
                                <item>
                                                            <title><![CDATA[ Mozilla unveils Firefox 3 Release Candidate ]]></title>
                                                                                                <dc:content><![CDATA[ <p><a href="http://www.mozilla.com" target="_blank">Mozilla</a> has unveiled Release Candidate 1 for Firefox 3, as the June release of the popular open-source browser creeps closer.</p><p>Mozilla claims the latest itineration contains around 14,000 updates, though the one most people are liable to notice is the page rendering, now handled by the Gecko 1.9 Engine which puts a significant spring in Firefox's step when loading web pages.</p><p>Other notable features include improved JavaScript rendering, which Mozilla claims will double the speed of script-heavy pages such as Gmail. The company is also touting its new slimline memory usage model, no doubt with one eye on Firefox's reputation for needing a lot of memory.</p><p>The team has also tinkered with behaviours in the location bar, which now displays two lines of information including the web address, page title and highlighted search terms.</p><p>It also searches bookmarks as well as browsing history, and while it has the potential to be extremely useful, many commentators have complained it's over-cluttered.</p><p>Mozilla is also boasting of greater malware protection, resumable downloading and greater integration across all operating systems.</p><p><a href="http://www.mozilla.com/en-US/firefox/all-rc.html" target="_blank">You can get hold of the Release Candidate here</a>.</p> ]]></dc:content>
                                                                                                                                            <link>https://www.itpro.com/198507/mozilla-unveils-firefox-3-release-candidate</link>
                                                                            <description>
                            <![CDATA[ The latest test version of the popular browser is released ahead of the official launch in June. ]]>
                                                                                                            </description>
                                                                                                                                <guid isPermaLink="false">3QVoWBRp7i88WVWMPsDHgg</guid>
                                                                                                <enclosure url="https://cdn.mos.cms.futurecdn.net/athaJoYQMvrvsCwDfDiYfL-1920-80.jpg" type="image/jpeg" length="0"></enclosure>
                                                                        <pubDate>Mon, 19 May 2008 10:41:00 +0000</pubDate>                                                                                                                                <updated>Thu, 19 Nov 2026 14:59:45 +0000</updated>
                                                                                                                                            <category><![CDATA[Open Source]]></category>
                                                    <category><![CDATA[Workplace Technology]]></category>
                                                    <category><![CDATA[Software]]></category>
                                                                                                                    <dc:creator><![CDATA[ Stuart Turton ]]></dc:creator>                                                                                                        <dc:description><![CDATA[ null ]]></dc:description>
                                                                                                                                <cf:isSponsored>false</cf:isSponsored>
                <cf:hasAffiliateLinks>false</cf:hasAffiliateLinks>
                <cf:isPaid>false</cf:isPaid>
                                                                                                                                                                                    <media:content type="image/jpeg" url="https://cdn.mos.cms.futurecdn.net/athaJoYQMvrvsCwDfDiYfL-1920-80.jpg">
                                                            <media:credit><![CDATA[null]]></media:credit>
                                                                                                                                                                                                                                                                                                                                                    </media:content>
                                                    <media:thumbnail url="https://cdn.mos.cms.futurecdn.net/athaJoYQMvrvsCwDfDiYfL-1920-80.jpg" />
                                                                                                                                                                    <content:encoded >
                            <![CDATA[
                            <article>
                                <p><a href="http://www.mozilla.com" target="_blank">Mozilla</a> has unveiled Release Candidate 1 for Firefox 3, as the June release of the popular open-source browser creeps closer.</p><p>Mozilla claims the latest itineration contains around 14,000 updates, though the one most people are liable to notice is the page rendering, now handled by the Gecko 1.9 Engine which puts a significant spring in Firefox's step when loading web pages.</p><p>Other notable features include improved JavaScript rendering, which Mozilla claims will double the speed of script-heavy pages such as Gmail. The company is also touting its new slimline memory usage model, no doubt with one eye on Firefox's reputation for needing a lot of memory.</p><p>The team has also tinkered with behaviours in the location bar, which now displays two lines of information including the web address, page title and highlighted search terms.</p><p>It also searches bookmarks as well as browsing history, and while it has the potential to be extremely useful, many commentators have complained it's over-cluttered.</p><p>Mozilla is also boasting of greater malware protection, resumable downloading and greater integration across all operating systems.</p><p><a href="http://www.mozilla.com/en-US/firefox/all-rc.html" target="_blank">You can get hold of the Release Candidate here</a>.</p>
                                                            </article>
                            ]]>
                        </content:encoded>
                                                </item>
            </channel>
</rss>