Page and Iframe communication with postMessages

יום ראשון, נובמבר 17, 2013

  I was interviewed in a company that deals with advertizing. They asked me a question I didn’t get right, seeking for a way to determine whether a commercial, located in an <iframe>, is on thevisible screen or not. So, what do you do after you don’t get the right answer to the question? Go and find it. So I did. In HTML5, on of its API is a method named postMessage. This methodenables window objects (such as iframes) to communicate with one another. With this API the solution is quite simple: When loaded ,the hosted frame can send...
no comments

Demos and Slide deck from Sela Open house

יום שני, יולי 29, 2013

Today We held an open house at Sela when I presented SignalR  I want to thank all attendees who participate in that session.   You can download the demo code presented in that session here   You can watch the slide deck here below.   Realtime web open house from ranwahle
no comments

Getting started with SignalR

יום רביעי, דצמבר 12, 2012

Getting started with SignalR   Recently I’ve begun testing ASP.NET.SignalR, an open source project that supports real-time web functionality in our application. SignalR can be added to an existing ASP.NET application and help as easily gain real-time functionality in no-time. It can run with browsers that supports HTML5 WebSocket or long polling (IE 8).   SignalR has both server and client code, its client code is based on jQuery In this post I’ll demonstrate how to work with SignalR along with a few basic terms related to it. ...
3 comments

KnockoutJS–Dependencies

יום שני, דצמבר 5, 2011

KnockoutJS–Dependencies One of the things we’ll probably need is to be able to have dependency tracking in our bounded data. For example – if we have a customer’s list, we’d like to see the customer’s orders whenever we click on a customer. In this post I’ll demonstrate how to do it using the dependentObservable function of KnockoutJS Let’s look at the following JavaScript code: var viewModel = { ...
no comments

KnockoutJS–Event binding

יום ראשון, דצמבר 4, 2011

KnockoutJS–Event binding After binding the data into our page, we wish to be able to create an interactive page. This means that we want to be able to add some behavior to our view-model, triggered by an event on the page. (A button being clicked for example). The click binding You can bind to the click binding the same as you bind to the value only that now it’s expects a parameter-less function. In case you have a method that expect parameters you can have a binding expression like that: ...
one comment

KnockoutJS–Templates

יום חמישי, דצמבר 1, 2011

KnockoutJS–Templates After being introduced to KnockoutJS concept and go to know the basics of data-binding with Observable and  observableArray, let’s move on to how to work with templates and our collection to them. In this post I’ll explain how to bind a collection with template. Prerequisites Now, adding to KnockoutJS Prerequisites (jQuery 1.4.2 and above)  you’ll need another Javascript library: jQuery.tmpl . You can download this version or visit the project page for latest version. HTML as script The templates are HTML content written inside of a script tag,...
one comment

KnockoutJs–MVVM in HTML & Javascript

יום ראשון, נובמבר 20, 2011

KnockoutJs – MVVM in HTML & Javascript Previously I’ve posted about MVVM and Silverlight, It seems long ago, before Microsoft has begun focusing on HTML & Javascript as a client development platform. One of the things I’ve cherished the most about XAML related technologies development was the ability to completely decouple behavior and UI using MVVM. I didn’t know about any possibility to implement the same pattern on HTML & Javascript based applications. In order to do so, we can now use KnockoutJS, a Javascript library based on jQuery  that...
no comments

AJAX and Dates

יום שבת, אוקטובר 25, 2008

AJAX and Dates While AJAX in general, and Data-Services in particular becomes more and more in use, you may encounter a problem of sending / receiving dates when you don't usually share the same Time Zone settings.   Dates between services When sending dates over soap the date is serialized with the date and it's time zone (The GMT +/- # part which comes straight after the date itself). When consuming a service through .Net application you won't noticeany difference, That's mainly because it  is being translated to your local time. What's happens "behind the scene" is that...
no comments

New hours reporting system @ SRL

יום חמישי, אוקטובר 23, 2008

  SRL, the company I work for, for the past two years, is saying goodbye to it's old hours reporting system. The old system, which was developed long before I've started working thereand served SRL employees ever since, will continue serve SRL payroll staff (untill  we move all management interfaces to the new system)but all other workers are going to use the new one. Usually this news it's not very exciting, not enough to write about, howeverin this case, I was the one who developed it.   It has all started on my first week on...
one comment

Using Firebug extension

יום שלישי, אוקטובר 7, 2008

Before Visual Studio 2008 there wasn't many decent client debugging tools. One of the tools that were already (and for free) was the Firebug extension  for Firefox. Firebug provides, among it's many features an in-browser script debugger which consists some basic debugging features such as break points, step  into functions, watches of local and global variables, automatic variables and so on...   Script debugging Like in VS-2008, you can actually debug your client scripts. the main difference is that you can stay on the browser and not even have to open Visual Studio for that meter. All...
no comments