Contents tagged with Javascript
-
Writing end-to-end tests with Nightmare.js
Nightmare.js allows you to automate HTTP requests in Node.js, which you can use to download files from sites, check your e-mail, runt integration tests, etc.
-
How to use nested custom elements with CSS Shaders
Last time I wrote about how to use Polymer to create custom elements. This time we will create two custom elements, where one of them is going to use the other to add additional functionality. We will also use CSS Filters and properties unique to this element.
-
Create a video player using custom elements
I previously blogged about Shadow DOM where I demonstrated how to use the Developer tools in Google Chrome to get the underlying DOM that is not visible to the user, in this case the video element. This is a great tool to get more understanding about how the element is actually built, and the API makes it possible to create our own Shadow DOM with ”hidden” elements.
-
CustomEvent in DOM Level 3 and DOM Level 4
In DOM Level 3 Events, a new type of events, CustomEvent, is available. It extends the ordinary Event with a new detail property which you can use to provide extra information. With this new method you are able to create new types of events that you can use in your application.
-
Get under the hood with Shadow DOM
When you add an element to your page, it is being added to the Document Object Model (DOM). When added to the DOM, you can use CSS to style it or JavaScript (getElementById, querySelector etc) to get a reference to the element and modify it. There are some cases where this isn´t true though.
-
New Internet Explorer 9 APIs
Internet Explorer 9 Beta 1 introduces some new APIs to make it possible to integrate with the jump lists and icons on the taskbar. To make it easier to use them, I created an even simpler API.
-
Anropa Microsoft Ajax Minifier från ASP.NET MVC
Scott Guthrie gick tidigare idag ut med att Microsoft Ajax Library Preview 6 har släppts. I samband med det så släpptes även Microsoft Ajax Minifier, vilket jag kommer att ta upp nu.
-
Använd TDD vid JavaScript-utveckling
Med tiden som webbläsare utvecklas och kan tolka JavaScript snabbare så ökar möjligheten att skriva tunga webbaserade applikationer baserade på just JavaScript. När JavaScript-funktionerna blir mer avancerade så blir även logiken bakom det mer komplicerad. Det händer allt oftare att man har en stor mängd affärslogik i JavaScript.
-
Snabba upp din sida med deflate/GZip
Det finns en intressat tråd på Aspsidan om hur man komprimerar sin HTML så att de går mycket snabbare att ladda genom att använda deflate eller GZip.
-
Update on Widget Emulator
I have just added som new features to the Widget Emulator.