Logo


Applying ajax to our applications

Posted in ajax, personal by Dragan on the June 2nd, 2008

Ajax

Is there a better way to start a week?
:)

Viewed 15634 times by 6552 viewers

Fancy javascript intro in 55 lines of code

Posted in ajax, Javascript by Dragan on the May 26th, 2008

Tonight I was supposed to do some boring database related stuff, but instead I got some ideas about
playing with table cells, random access and opacity.

Result is quite interesting, and it shows true power of Javascript. I suppose it would take lot more trouble to do something similar in flash, and if even if it could be done, this method gives you lot more control.
(For example you can add specific onmouse effects/events on some table cells ;) )

So, here it is, 55 linse of javascript, no framework used:

ss2

Demo:
http://dragan.yourtree.org/projects/javascript-intro/

UPDATE

and now something even more crazy than our last example:
really nice mouse effect in just 18 lines.
(using prototype though :) )

ww2

Demo:
http://dragan.yourtree.org/projects/js-mouse-grid/

I'm starting to wonder, is it possible to make, lets say 400x400 "display" made from 1x1 table cells and make an javascript demo, like they did in the 90's...
You know, plasmas, rotating cubes, etc.. :)

Viewed 20224 times by 7621 viewers

Give you input fields Facebook look

Posted in ajax, Programming by Dragan on the February 15th, 2008

I found one really interesting piece of code on ajaxian.

I really like this example, it shows true power of ajax in just few lines, an also it runs very smooth and fast.

here is the author page
http://devthought.com/textboxlist-meets-autocompletion/

and the demo
http://devthought.com/wp-content/articles/autocompletelist/test.html

Viewed 53160 times by 17081 viewers

MGraph update - multiple graphs

Posted in ajax, Javascript, graph by Dragan on the January 16th, 2008

MGraph - Ajax based graph, updated to v0.96

I've got a letter today from James who asked me how to draw multiple values on the same graph.
That would been too much complicated, because that kind of solution must involve some kind of overlay.

Instead I decided to enable second best solution (as suggested by James), and that is - multiple graphs

New features

 

  • Added Option to draw two or more graphs
  • code modified to be more user friendly, and up to date with modern standards

I'll try to improve MGraph as much as I can, so if you have any new ideas - I'm listening.

Viewed 63568 times by 18993 viewers

Google Chart API Prototype plugin

Posted in ajax, internet, graph by Dragan on the December 15th, 2007

Wrapper in less than 50 lines

Few days ago find out about Google chart api and i thought it might be a good idea to write Prototype plugin, so here it is:

google-chart-graphs1.jpg

Project page


Version 0.4 alpha

Download GoogleChartAPI.prototype.js

Viewed 80883 times by 23640 viewers

Canvas Gallery with reflections

Posted in ajax, Programming, Javascript by Dragan on the November 13th, 2007




Canvas gallery with thumb reflection. Based oin Prototype and reflection.js


Coding time (6-8 hours, done in two days)


Demo

For last two days I was playing with canvas (again :) ).
This time i decided to build Gallery, but i wanted to add reflection to images, and to make them scroll left and right, instead of usual scrolling.


First task was to extend Prototype and add 3 new functions: scrollLeft, scrollRight, and stopScroll.

This may not seams completley necessary but it makes code a lot cleaner. Take scroll buttons for example:

		//Add event listeners on scroll buttons
		$('md').observe('mouseover',function(event){
			$('img-holder').scrolRight();
		});
		$('md').observe('mouseout',function(event){
			$('img-holder').stopScroll();
		});

   // as simple as that :]

I really learned a lot from this project, mostly about prototype.
Prototype really have awesome possibilities, all that you need is good plan and some coding skills.
Even if you are not top-notch ajax programmer there is a lot of examples and resources on the Internet.

Future of this project and usage

This project is still in deep beta, and if someone wants to use this gallery i advise to take demo page and modify it to your needs.
Otherwise you risk to loose some css or javascript dependency.

I will try to make new version of this as soon as possible.

If you have any comments or ideas please let me know.

Viewed 90385 times by 26868 viewers

Next Page »

All Rights Reserved, Copyright © 2007 Dragan Bajcic.
YourTree | Dragan@YourTree | LG Shop | Web Development and Consulting