Dot Net Mafia

Group site for developer blogs dealing with (usually) Ionic, .NET, SharePoint, Office 365, Mobile Development, and other Microsoft products, as well as some discussion of general programming related concepts.

Real World Dojo part Four: User Feedback

It doesn't really give any useful feedback, though. No real end-user's going to read the console, I'm not actually doing anything with the file upload progress, and using an alert to show that the metadata uploaded is incredibly lame.

The point to doing the fadeOut first is to avoid animation flicker while the DOM is being updated.

Feedback about the file upload is a tad bit more involved.

Add some divs for tracking upload progress:

<div id="uploadProgress"></div> <div id="uploadResult"></div>

So far, I've limited these articles to using events assigned in the markup. Now we have to scrape the surface of Dojo's rich event system. The nutshell version is that, in an addOnLoad method (or whenever else seems appropriate) you connect various named events to whatever function you want to fire when that event happens.

For starters, let's inform the user that we realize they've selected a file: