'Cause JavaScript is easy :)

05Aug Load content while scrolling with Prototype and JSON-P via Yahoo API

Today I’d like to present my solution for loading content while scrolling down the page in the DZone style using PrototypeJS library.
Check out simple DEMO »
Demo was tested in Firefox, Chrome, IE7/8 and Opera.
I used Yahoo Local Search API as a JSON data source for keyword kitesurfing.
Here is simple table where data will be [...]

20Jul Twitter API: Stream of messages for query with PHP, JSON and Prototype

Last week Antonio Lupetti presented on his blog turorial on Twitter API: How to create a stream of messages Monitter-like with PHP and jQuery.
I would like to present how I did such widget using PrototypeJS and JSON.
I left html and css unchanged and you can CHECK OUT DEMO HERE.
I used JSON-PHP library to convert $results [...]

27Mar 4 sposoby definiowania klasy w Javascript

O co chodzi?
W Javascript programowanie obiektowe może być zrealizowane przy pomocy różnych składni. Poniżej opiszę cztery sposoby podejścia do tematu.
Należy pamiętać, że w JS nie ma klas, tak jak w innych językach. Możemy symulować klasy przy pomocy funkcji, ale generalnie wszystko jest obiektem.
1. Funkcja
Definiujemy klasę, następnie przy pomocy słowa kluczowego new tworzymy obiekt z [...]