dotnetomaniak.pl - Artykuły z tagiem JavaScript

This blog post is an overview of testing focus behavior in web browser. During the work on Azure Portal I spent quite a bit of time on ensuring rich keyboard support. This requires appropriate focus management. When user press some keyboard shortcut, the focus should move to appropriate element. Focus behavior should be also tested very succinctly. As it is very easy to change (break) with even the smallest change in the HTML or JavaScript.

Źródło: jj09.net
Dziel się z innymi:
[EN] Testing focus in JavaScript

Web 3001 dni, 8 godzin, 45 minut temu jj09 58 źrodło rozwiń

We received a big present for the 10th anniversary of jQuery, jQuery 3.0 has reached beta status. Let’s take a look at what’s new in jQuery and how to use it.

Źródło: stapp.space
Dziel się z innymi:
[EN] New features in  jQuery 3.0 in Stapp.space

Web 3006 dni, 8 godzin, 13 minut temu Sam Smith 179 źrodło rozwiń

Quoting Wikipedia: Blue Monday is a name given to a day in January (typically the third Monday of the month) reported to be the most depressing day of the year. The concept was first publicised as part of a 2005 press release from holiday company Sky Travel which claimed to have calculated the date using an equation. [...] In 2016 is predicted quite late, on 25th of January. So still there is a time to fulfill my New Year's resolution: try more new JavaScript front-end frameworks. Especially that there ...

Tagi: JavaScript
Źródło: stapp.space
Dziel się z innymi:
[EN] New Year's resolution: try new front-end JavaScript frameworks in Stapp.space

Inne 3017 dni, 7 godzin, 37 minut temu Sam Smith 82 źrodło rozwiń

From time to time we need to use npm packages on Continuous Integration build agentwith no access to internet (usually CI agent)with slow internet proxy Moreover as Windows developers we have Windows servers. ...

Źródło: stapp.space
Dziel się z innymi:
[EN] Private npm registry with fallback to global registry in Stapp.space

Narzędzia 3021 dni, 10 godzin, 18 minut temu Sam Smith 32 źrodło rozwiń

Czasami w widoku wywołujemy funkcję JavaScript z parametrami, które są przekazane za pomocą ViewModel z kontrolera. Załóżmy, że nasza metoda w kontrolerze wygląda następująco...

Tagi: .Net, C#, JavaScript, mvc
Dziel się z innymi:
ASP.NET MVC: Wywoływanie funkcji JavaScript z parametrami z modelu

Web 3047 dni, 8 godzin, 15 minut temu rroszczyk 350 źrodło rozwiń

The current state of front-end software development is great, and considering how active the open source community is, the future looks very promising. In this article we will show how to transfer back-end practices to front-end development and list the benefits of doing so.

[EN] How to fight front-end code spaghetti? | Future Processing

Web 3059 dni, 10 godzin, 5 minut temu FutureProcessing 149 źrodło rozwiń

Recently, together with my co-worker Breck, we were looking at the error logs. One of our ideas – in order to investigate errors that were hard to diagnose – was to check in which part of the World users who get errors are located.

Źródło: jj09.net
Dziel się z innymi:
[EN] IP heatmap generator

Web 3131 dni, 8 godzin, 16 minut temu jj09 156 źrodło rozwiń

Last Saturday I had a pleasure to speak at Seattle Code Camp. It was an amazing event, which was free. There were over 50 talks, 500 attendees, and raffle with many prizes, e.g., Microsoft Surface Pro 3! Check out videos, code, and slides from my talks!

Źródło: jj09.net
Dziel się z innymi:
[EN] Seattle Code Camp: Aurelia and TDD with TypeScript, AngularJS, and Node.js

Web 3138 dni, 7 godzin, 19 minut temu jj09 111 źrodło rozwiń

Last Thursday I had a pleasure to give a talk about Speech Recognition in the Browser at the Code Fellows in Seattle. Many people were surprised how easy it is to add speech recognition to your website with pure JavaScript. So I thought I will share a few code snippets here.

Tagi: JavaScript, voice
Źródło: jj09.net
Dziel się z innymi:
[EN] Speech Recognition in the Browser

Web 3152 dni, 10 godzin, 44 minuty temu jj09 72 źrodło rozwiń

Kilka postów wcześniej pisałem o JSONP, jako sposobie na wywoływanie serwisów znajdujących się w innych domenach z poziomu JavaScript. Domyślnie przeglądarki blokują takie wywołania ze względu na bezpieczeństwo. Załóżmy, że mamy następujący serwis w jakiejś domenie...

Dziel się z innymi:
Cross-Origin Request sharing (CORS):  wywoływanie zewnętrznych usług z JavaScript

Web 3180 dni, 10 godzin, 24 minuty temu rroszczyk 168 źrodło rozwiń

Recently I learned the hard way about setTimeouts side effects...

Tagi: JavaScript
Źródło: jj09.net
Dziel się z innymi:
[EN] setTimeout considered harmful

Web 3180 dni, 10 godzin, 24 minuty temu jj09 191 źrodło rozwiń

Bardzo często tworzymy osobne usługi, które dostarczają jakieś dane. Pisząc aplikacje ASP.NET Web nierzadko chcemy korzystać z zewnętrznych usług, zamiast hostować dane w tym samym projekcie. Niestety może to spowodować problemy, jeśli chcemy skonsumować usługę w JavaScript, a należy ona do innej domeny. Załóżmy, że mamy jakąś usługę REST. Dla testów posłużyłem się http://www.mocky.io. Polecam tą stronę, można generować tam własne “mocki”.  Dla tego wpisu stworzyłem mock, który zwraca następującą treść ...

Tagi: .Net, JavaScript, REST
Dziel się z innymi:
JSONP – wywoływanie zewnętrznych usług z JavaScript

Yesterday I had a pleasure to speak at .NET Developers Association meetup in Redmond, about building web applications with TypeScript...

Źródło: jj09.net
Dziel się z innymi:
[EN] Building Large Scale Web Applications with TypeScript - Jakub Jedryszek

Web 3270 dni, 10 godzin, 8 minut temu jj09 270 źrodło rozwiń

Although ECMAScript6 has not been officially released yet, we can play around with new language features today. There are tools such as Traceur or Babel which are able to convert ECMAScript6 into ECMASciprt5, thus we are able to run the code in every browser. So let's try to run the snippet below, which leverages destructuring assignment using those tools ...

Dziel się z innymi:
[EN] .NET Blog: Using ECMAScript6 today

Web 3292 dni, 10 godzin, 23 minuty temu nocturn 87 źrodło rozwiń

We all know that JavaScript has some bad parts. However, one of them is usually forgotten, and skipped in most of “JavaScript Bad Parts” lists on the Internet. It is a Date object. You can have hard time working with it, especially if you want to support time zones. In this post I would like to outline quircks of Date in JavaScript.

Tagi: JavaScript
Źródło: jj09.net
Dziel się z innymi:
[EN] JavaScript Date: a Bad Part - Jakub Jedryszek

Web 3327 dni, 4 godziny, 17 minut temu jj09 71 źrodło rozwiń

Dziś wpis, który nie tak dawno temu zapowiadałem już na Facebooku – na temat ECMAScript 6 prowadziłem ostatnio Lightning Talka (krótka prezentacja, maks 15 minut) u mnie w firmie i pomyślałem, że szkoda by było zmarnować zebrany materiał. Dlatego też dziś wersja blogowa tamtej prezentacji Na początek, dla porządku warto wspomnieć (w razie jakby ktoś nie wiedział), że ECMAScript to standard obiektowego języka p...

Dziel się z innymi:
ECMAScript 6 - co nowego w JavaScript? | burczu programator

Web 3327 dni, 4 godziny, 17 minut temu burczu 163 źrodło rozwiń

One of the features I miss the most in AngularJS is ability to easy unsubscribe event handlers. There is no convenience function opposed to $on, so in order to unsubscribe event, we have to call method returned by $on function (function () { angular.module('app.download', []) .controller('downloadCtrl', downloadController); function downloadController($scope) { // keep the unsubscribe function in local variable var afterRenderUnsubscribe = $scope.$on('afterRender', onAf...

Dziel się z innymi:
[EN] AngularJS - extending existing services using decorator

Web 3339 dni, 7 godzin temu nocturn 83 źrodło rozwiń

W pierwszej części pokazującej dziedziczenie w JavaScript, pokazałem tzw. podejście „klasyczne”, mające niby być najbardziej zbliżonym do tego, spotykanego w językach programowania posiadających silne typowanie. Tamten wpis wywołał pewne kontrowersje… Być może ja nie do końca dobrze wszystko wyjaśniłem, a może to ja się mylę Nie jestem alfą i omegą… Jednak zostawmy już w spokoju podejście „classic” ponieważ jest ono mało sz...

Dziel się z innymi:
Dziedziczenie w JavaScript? Rozwiązanie tajemnicy - część #2 | burczu programator

Web 3339 dni, 7 godzin temu burczu 143 źrodło rozwiń

There are couple of ways of injecting dependencies into AngularJS components. The most common one is just to specify the dependency name in the function's argument list (function() { angular .module('app') .controller('shellCtrl', function ($scope, $http) { $scope.title = "Title"; }); })(); However this technique fails in real life scenarios, because for production we usually (or rather always) minify and uglify javascript files. Uglify proces renames our varia...

[EN] .NET Blog: AngularJS - dependency injection

Web 3345 dni, 20 godzin, 9 minut temu nocturn 159 źrodło rozwiń

Ostatnio w projekcie natrafiłem na problem, który najlepiej było rozwiązać stosując dziedziczenie. Niby prosta sprawa, „podstawowe podstawy” każdego obiektowego języka programowania. Jak jednak się pewnie domyślacie, dziedziczenie w JavaScript „nieco” różni się od tego klasycznego podejścia, znanego z innych języków programowania, a ja zdałem sobie sprawę, że choć na tym blogu poruszam różnorakie (i na różnym poziome skompli...

Dziel się z innymi:
Dziedziczenie w JavaScript? Rozwiązanie tajemnicy - część #1 | burczu programator

Web 3347 dni, 7 godzin, 15 minut temu burczu 211 źrodło rozwiń

1 2 3 4 5 6 7 8... 10 11

Najaktywniejsi w tym miesiącu