DevConnections 2013 Sessions Summary

Tuesday, October 1, 2013

DevConnections 2013 Sessions Summary I had the pleasure of delivering three sessions in DevConnections 2013. Here are the slide decks: Creating Data Driven HTML5 Applications: Creating Data Driven HTML5 Applications from Gil Fink Building End to-End Web Apps Using TypeScript: Building End to-End Web Apps Using TypeScript from Gil Fink jQuery Fundamentals: ...

Bootstrapping Your Web App Front-End Code

Thursday, September 12, 2013

Bootstrapping Your Web App Front-End Code Yesterday while delivering one day workshop about different JavaScript libraries (jQuery, RequireJS, SammyJS and more), I was asked how to start my web app front-end code. This post will explain the question and later on will show you a code template that I sometimes use in projects. Web App Front-End Bootstrapping? When dealing with Single Page Apps (SPAs) or even just webpages with a lot of JavaScript code, you will have to start your code and sometimes do things like initializing components, modules, views and etc. It’s just like running...

New Speaking Engagement – DevConnections

Thursday, July 11, 2013

New Speaking Engagement – DevConnections I got notifications a few weeks ago that I have been chosen to speak at DevConnections 2013 conference. The conference will take place between September 30 to October 4 at Las Vegas, USA. In the conference I’ll have the following sessions: Creating Data-Driven HTML5 Applications HTML is the markup language that every web developer uses in order to structure and present content on the Internet. HTML5 is the standard that is currently being shaped and developed. It extends and improves the HTML4 standard, taking it to the next level...

Why My WCF Data Service isn’t Returning JSON Format?

Monday, January 28, 2013

Why My WCF Data Service isn’t Returning JSON Format? Lately, I had the need to use WCF Data Services in a project. It has been a while since I used and wrote about WCF Data Services and a lot was changed in the framework. The scenario I needed to implement was calling a data service using jQuery. So I wrote the relevant service and used the code I wrote a few years ago and nothing happened… I got a HTTP error – HTTP Error 415 Unsupported media type. Since I know that WCF Data Services support JSON format,...
2 comments

Avoiding Circular Reference for Entity in JSON Serialization

Monday, October 17, 2011

Avoiding Circular Reference for Entity in JSON Serialization One problem that I was facing yesterday while working on an ASP.NET MVC application was a JSON serialization issue. The problem was a circular reference caused by the DataContractJsonSerializer because of relations between the entity and other entities. In this post I’ll show you how you can use a simple workaround in order to avoid the problem.    The JSON Serialization Error Returning the output of the JSON method in an ASP.NET MVC controller with a JSON object graph based on an Entity Framework Code First object causes...

Profiling JavaScript 101 Using IE9 Developer Tools

Monday, August 15, 2011

Profiling JavaScript 101 Using IE9 Developer Tools Lately I’m involved in a very interesting project which suffer from JavaScript performance issues in old browsers. The main “pain” in the project is the need to support IE8 which is used by many of the client’s users. I’ve got a call to come and help in the process of tuning the application and decided to share some tips of how I profiled the application and found some of the bottlenecks in the application JavaScript execution. Those bottlenecks were handled by the development team very fast and the application’s execution is becoming much...
3 comments

HTML5 Web Notifications

Friday, July 29, 2011

HTML5 Web Notifications Ever wanted to notify your site clients/users while they are surfing in your site? notifications like “Mail message arrived”, “Printer out of paper” are available through smart clients for decades but in web applications they are not so easy to implement. In the past you could have implemented a blinking behavior that will make the icon of the browser blink or you could add a popup which will annoy your users. There are ways to implement this behavior in a browser specific way (for example Overlay Icon API in IE9) but in HTML5 there is...
no comments

HTML5 – Selectors API Level 1

Tuesday, July 12, 2011

HTML5 – Selectors API Level 1 Lately, I’m dealing a lot with HTML5. I co-authored a three days course in that topic for Sela, the company I work for. During the process of creating the course I got to learn a lot about HTML5 and what to expect from the new specifications so expect more posts about this subject in the near future. In this post I’m going to describe what is the JavaScript Selectors API Level 1 and compare it with jQuery.   Selectors API The Selectors API enables web developers to select DOM elements and retrieve DOM nodes that match...
no comments

My Sela Dev-Days Experience

Tuesday, June 28, 2011

My Sela Dev-Days Experience Today I finished my Sela Dev. Days experience. Sela Dev. Days is a conference which include 5 days, 15 top experts, 25 session, and a whole lot of attendees (around 600 people registered for this week). If you are not familiar with Sela Dev. Days you can go to the conference’s site. In the conference I had three tutorial days in three different subjects: ASP.NET MVC 3, EF Code First integration, and Razor: Oh My! In this one day tutorial...

Combining WCF Data Services, JSONP and jQuery

Sunday, April 24, 2011

Combining WCF Data Services, JSONP and jQuery During Mike Flasko’s session at MIX11, he showed how to create a JSONP aware WCF Data Service with a JSONPSupportBehavior attribute that is available for download from MSDN code gallery (and is supposed to be a part of Microsoft.Data.Services.Extensions namespace). In this post I’ll show a simple example that uses the attribute and jQuery in order to make a JSONP cross domain call for a WCF Data Service. Setting up the Environment First I started by creating two different ASP.NET web applications. The first application includes the...
no comments