Importing Scripts in Web Workers

Sunday, February 17, 2013

Importing Scripts in Web Workers While implementing a background task in a HTML5/JavaScript Windows Store app, I had the need to import scripts in the background task. Since background tasks are implemented on top of Web Workers, I used the importScripts function which is a global function that Web Workers can use to import scripts. In this post I’ll explain how to use the function and show a simple use example. The importScripts Function The importScripts function is a global function that Web Workers can use to load and execute additional scripts. You will use that...
no comments

A New Version of story.js is Available

Thursday, November 15, 2012

A New Version of story.js is Available Yesterday, I released a new version of story.js library. The main changes in the new version: The entire library was rewritten using TypeScript. You can find a new story.ts file that includes all the library functionality in TypeScript language. I’ll write about my TypeScript adventures in a follow-up post. Using TypeScript, I managed to find some bugs and to solve them. The Query object was consolidated into the main story.js file and isn’t available in a different file. ...
no comments

Web Development Community (WDC.IL) – Advanced HTML5 and JavaScript APIs Slide Deck and Demos

Tuesday, September 4, 2012

Web Development Community (WDCil) - Advanced HTML5 and JavaScript APIs Slide Deck and Demos Last night, I delivered a session called “Advanced HTML5 and JavaScript API’s” at the Web Development Community (aka WDC.IL) user group. First of all, I want to thank all the attendees! It was cool seeing so many people enthusiastic for web development. In the session, I talked about the following HTML5 JavaScript APIs: Web Storage API IndexedDB API File and FileSystem API ...
one comment

Advanced HTML5 and JavaScript APIs Slide Deck and Demos – Second Round

Monday, June 4, 2012

Advanced HTML5 and JavaScript APIs Slide Deck and Demos – Second Round Today I delivered a second round of my “Advanced HTML5 and JavaScript API’s” MSDN session at Microsoft Ra’anana. First of all, I want to thank all the 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 ...
no comments

story.js on Nuget Gallery

Wednesday, May 9, 2012

story.js on Nuget Gallery Today I decided to create a Nuget package for story.js. I was planning to do that earlier in the development process but since I‘m so occupied with work lately I forgot to (my bad). If you are not familiar with the Nuget Package Manager, I urge you to read the following post I wrote. In order to install story.js package in Nuget, all you have to do is one of the following: In Visual Studio, in the Nuget Package Manager Console, write: PM> Install-Package story.jsLike in the following figure and press Enter. In Visual Studio, right...
no comments

story.js New Query Object

Sunday, May 6, 2012

story.js New Query Object If you are following my Blog you probably know that I’ve published a new JavaScript library by the name story.js. story.js enables web developers to use client-side storages in a simple and consistent way. Today, I’ve added a new feature – query language which resembles LINQ. The query language implementation include functions such as where, forEach, first, last and etc. The query language was created as a plugin to story.js and we are going to add more features to it in the near future. Here is an example of using story query: ...
no comments

The story Begins

Saturday, 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