'Cause JavaScript is easy :)

19Aug Simple Edit In Place feature using ierange library

Recently I found ierange library which is a great implementation of W3C DOM Ranges for Internet Explorer.
Using it and PrototypeJS I’ve created edit in place feature to easily change the content of a div element.
Check out the DEMO »

<head>

<!–[if IE]>
<script type="text/javascript" src="ierange-m2.js"></script>
< ![endif]–>

</head>

<body>
<div id="eip">
<div id="start">Click to edit and start typing. <br />Enter to confirm. ESC [...]

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 [...]

10Jun Ładowanie na żądanie i Google Maps API

Zdarza się, że funkcjonalność, którą udostępniam na stronie jest rozbudowanym modułem JS, ale jednocześnie może nie być w ogóle użyta po załadowaniu strony. Wtedy warto się zastanowić czy ładować kod od razu z całą stroną (co oczywiście wpływa na prędkość ładowania) czy dociągać go dopiero po akcji użytkownika.
Przykładem realizacji wzorca projektowego ładowanie na żądanie, [...]