AngularJS – HTML5 Canvas Drag and Drop Directive Using KineticJS

Tuesday, January 7, 2014

Recently for one of my projects I needed to add drag and drop (DnD) functionality. After examining the native HTML5 DnD I come to conclusion that the awesome HTML5 feature still suffers from cross browser computability issues, second of all the lack of mobile touch support really pissed me off. On the other hand, Canvas has no cross browser computability issues and has a great touch support. To make a long story short, I implemented Canvas DnD functionality in AngularJS directive. We use KineticJS -an HTML5 Canvas JavaScript framework that enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling...
no comments

AngularJS – Migrating From 1.0 to 1.2 $event Object Changes

Wednesday, December 4, 2013

Here's a quick tip about how to avoid $event object problems when migrating AngularJS From 1.0 to 1.2 version. After migrating to 1.2 version i noticed that the $event.srcElement  object we get when working with  ng-click or some other event function, is deprecated and for some reason is not documented at all. So keep in mind and use other similar objects $event has to offer us. For example you can use $event.currentTarget it will give you the same result. Hope you'll find this quick post helpful.
no comments

Creating Facebook Canvas Apps Using The New Template And Library For ASP.NET MVC 4 Presentation

Sunday, July 21, 2013

I would like to share my presentation about "Creating Facebook canvas apps using the new template and library for ASP.NET MVC 4” Presentation link: FacebookGoogleSlider/index.html (open in chrome browser). Presentation on SlideShare: Creating facebook canvas apps from Alex Choroshin Hope you’ll like it
no comments

How to Get Login Name and Display Name using SharePoint 2013 REST API

Wednesday, May 1, 2013

Working with REST API is quite simple and straight forward, for example when you need to fetch data from a list you can use the following JQuery Ajax code snippet: jQuery.ajax({ url: "http://YourSite/_api/web/lists/getbytitle('ListName')/items", type: "GET", headers: { "Accept": "application/json;odata=verbose" }, success: function(data, textStatus, xhr) { ...

I’m Speaking at Israel JavaScript Conference 2013 (js-il)

Thursday, April 4, 2013

The Israel first JavaScript Conference - will take place on Tuesday, June 18, 2013. The topic of my session is: JavaScript UI Components As the HTML5 and JavaScript applications continues to gain incredible momentum and also the need for cross-platform development brought many companies like "Kendo UI" to realize that if they plan to stay in the game they need to re-invent them self's and offer developers a rich HTML, JavaScript framework to enhance their web development experience . In our lesson we'll discuss about why when and how we plan to use awesome UI Components like Charts, Trees, Graphs, Lists and...
no comments

A Cool New ‘Paste JSON As Classes’ Feature in ASP.NET Web Tools 2012.2 RC

Saturday, January 26, 2013

Great news for Web developers, With ASP.NET and Web Tools 2012.2 RC installed, you now have a great and easy tool for converting your JSON objects into C# or VB.NET classes. This feature uses Newtonsoft JSON parser to parse JSON text from clipboard. Once Newtonsoft JSON parser validates the clipboard data as valid JSON, then it will be converted into C# or VB.NET class depending on the selected file type. Here’s a simple example: A) Copy to clipboard your JSON object. { "link": "", "virtual": "Virtual Keyboard", "partial": " The magnesium panels are finished...

SharePoint Control Overrides My JavaScript “Keypress” Event

Monday, December 3, 2012

When you want to bind an event handler to the "keypress" JavaScript event, or trigger that event on an element, you can achieve this using JQuery  handler like .keypress( handler(eventObject) ) . For example, binding "keypress" event to a text box on your custom control : $("#input").keypress(function (event) { var code = (event.keyCode ? event.keyCode : event.which); if(code == 13) //Enter keycode // your logic here... } });   As you can see, the task is very simple and straightforward, but when dealing with SharePoint , sometimes things get pretty messy. Scenario:  You developed a custom control with a text box and used a "keypress" JavaScript event...