Angular – Numeric Control Directive

Thursday, July 3, 2014

in one of LogoUi’s projects we had a requirement for  a numeric input type.My first thought was using an HTML5 input type number . Example: <input type="number" min="1" max="5"> The problem was that not all browsers has support for HTML5 input types.Check this site for more information about HTML5 forms browser support . so as a solution I decided to do 2 things: A) Use jQuery Spinner (numeric) widget which solves my cross browser compatibility issue.B) Wrap the widget as an Angular directive. Final Result: http://embed.plnkr.co/o33VP56azuA22FLjpU3p/preview You can find my source code and more examples regarding Numeric directive in my GitHub page. Enjoy!

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: https://dl.dropboxusercontent.com/u/18850826/ 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": "http://www.microsoft.com/Surface/en-US", "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...

How To Create A Windows 8 App For SharePoint Part 1 – The Planning Stage

Saturday, September 15, 2012

The Planning Stage There’s a big buzz going on around Windows 8 app development, In my earlier post “Create a Metro Live Tile using MetroJS, JsRender and the new REST API” I showed how to create a metro live tile using html and JavaScript and today we continue exploring this subject area and create Windows 8 app that interacts with SharePoint. We will focus on Windows 8 HTML5 app, There are 4 main reasons why I chose to use HTML5 development in this example. A) SharePoint developers will feel much more comfortable around JavaScript and HTML rather then in XAML development. B) Leverage...

SharePoint 2013: Create a Metro Live Tile using MetroJS, JsRender and the new REST API

Saturday, August 11, 2012

Hi guys, One of the biggest changes made in SharePoint 2013 is the UI. And of course I’m talking about The Metro UI Style. We see it ,feel it and interact with it since Microsoft introduced Windows phone 7. and later on in Windows 8 etc... As stated on Wikipedia “A key design principle of Metro is better focus on the content of applications, relying more on typography and less on graphics ("content before chrome").” More and more websites are adopting the Metro UI Style, web sites like www.microsoft.com, www.touchality.com and www.mykindofphone.com. more examples you can find here. We will focus on the Metro...