Advanced HTML5 and JavaScript APIs Slide Deck and Demos

April 29, 2012

Advanced HTML5 and JavaScript APIs Slide Deck and Demos Today I delivered a MSDN session at Microsoft Ra’anana about “Advanced HTML5 and JavaScript API’s”. First of all, I want to thank all the session attendees! In the session, I talked about the following HTML5 JavaScript APIs: Web Storage API AppCache API IndexedDB API File and FileSystem API CORS EventSource API Web Sockets API ...
2 comments

JavaScript Minify Tools and the objectStore delete Function

April 24, 2012

JavaScript Minify Tools and the objectStore delete Function One of the good practices when deploying web sites or applications is to minify your JavaScript/Css files. Minifying the files can help to improve a little the performance of your site or application since it will minimize the impact on the network. In most of my web projects, I add a MSBuild task to minify the JavaScript/Css files using one of the following tools: Microsoft Ajax Minifier or YUICompressor for .Net. Both of them are good enough for my needs and very easy to set in Visual Studio...
no comments

Generating ASP.NET MVC View Controls According to Xml Configurations

April 23, 2012

Generating ASP.NET MVC View Controls According to Xml Configurations Last week I was consulting about ASP.NET MVC at a customer. One of the customer project requirements is to generate forms according to Xml configuration files. In this post I’ll offer an end-to-end solution to this requirement. This solution can be rafactored to use databases or any other data sources in order to achieve the same results. Setting The Environment Create a new default internet ASP.NET MVC 3 web application: Pay attention to the folders I added such as Classes and ViewModels. The Classes...

The story Begins

April 21, 2012

The story Begins Lately, I’ve decided to write my own JavaScript library for educational and experimental purposes. The idea came to me while I was creating a demo to a session that I will deliver in the near future. In the session, I wanted to show how to use different JavaScript storage types and didn’t wanted to change my code every time for every storage type. So I’ve created a library to handle client-side data storages in simple and consistent way. The library is called story.js and its first bits are hosted in GitHub. Right now...
3 comments

Getting All Stored Items in an IndexedDB objectStore

April 18, 2012

Getting All Stored Items in an IndexedDB objectStore One of the things that I found very common to do when you use IndexedDB is retrieving all the stored items in an objectStore. This post will show you how to implement such a function. Getting All Stored Items in an IndexedDB objectStore When dealing with databases there are a lot of times that you find yourself retrieving all the stored items in a database table. When using IndexedDB, which is an index database, the retrieve all items operation is also vital. Here is an example...
one comment

New Speaking Engagement – Visual Studio Live

April 12, 2012

New Speaking Engagement – Visual Studio Live Lately, I have been chosen to speak at the Visual Studio Live (VSLive) conference. The conference will take place in August 6-10 at Microsoft headquarters in Redmond, WA, USA. I’m going to have a ~16 hours flight to go there, but I’m not flying alone. Ido Flatow, one of my Sela Group colleagues which is a “veteran” VSLive speaker, is going to the conference also and will have two sessions (one about ASP.NET Web APIs and the other about Windows Azure). I’ll have two sessions: ...

Using HTML5 Server-Sent Events with JSON and ASP.NET MVC

April 10, 2012

Using HTML5 Server-Sent Events with JSON and ASP.NET MVC I’m getting ready for a session that I’m delivering at the end of this month. I wanted to create a sample for using HTML5 Server-Sent Events and decided to share that sample with my Blog’s readers. But before I write about the sample, lets get to know the Server-Sent Events HTML5 API. Server-Sent Events Server-Sent Events is an acronym to the HTML5 EventSource JavaScript API. The Server-Sent Events enable servers to push data over HTTP using push protocols. The data that is sent to the client-side must...

Writing Your Own JavaScript Library – Enums

April 8, 2012

Writing Your Own JavaScript Library – Enums Continuing the post series about writing a JavaScript library, in this post I’m going to show how to create enums in JavaScript. JavaScript Enums If you use an object oriented language you probably used enums in your code. Enums are strongly typed constants that assign meaningful names to integer values. Then, instead of using magical integers all over your code you will use an enum instead. When writing an API or a library (not necessary in JavaScript), it is very helpful to create enums to express your integer...
no comments