Deprecated: Assigning the return value of new by reference is deprecated in /customers/ajaxorized.com/ajaxorized.com/httpd.www/wp-includes/cache.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /customers/ajaxorized.com/ajaxorized.com/httpd.www/wp-includes/query.php on line 15

Deprecated: Assigning the return value of new by reference is deprecated in /customers/ajaxorized.com/ajaxorized.com/httpd.www/wp-includes/theme.php on line 505

Deprecated: Assigning the return value of new by reference is deprecated in /customers/ajaxorized.com/ajaxorized.com/httpd.www/wp-content/plugins/CodeHighlighter/codehighlighter.php on line 42
Ajaxorized
Ajaxorized

3d image reflection with javascript

November 5, 2007

ReflectionAfter the image transisition manager we released last week, this week an image reflection script, using unobtrusive javascript. By adding a small piece of javascript to your code you can create this stunning effect. It offers a solution that is:

  • Not involved with Flash, or
  • with CSS, and
  • cross browser (Tested in Firefox, Opera and IE)
  • Preloading the images before reflection

Here is a demo on black and on white.
(more...)

Add to: del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Windows Live Yahoo
topFiled under: Uncategorized, Scriptaculous, Javascript, HTML | Willem @ 10:42 pm | Comments (12)

The Image Transition Manager

October 30, 2007

Ajaxorized proudly presents... the Image Transition Manager. The Image Transition Manager is a javascript library based on scriptaculous and prototype. It supports several image transitions, such as fading, appearing, sliding, growing and shrinking and more to come.

While working on a project for a customer, I needed to create a kind of slideshow-like effect for presenting several photos of products. When I started out making this 'effect', I found out that I could use this for much more other projects than just this single one. That is what triggered me to create a nice class out of it, so I could easily implement it into my other projects. After showing my first version to Willem, he did some of his magic and extended my class with some other nifty image transitions and functionalities. That is how our Image Transition Manager was born.

(more...)

Add to: del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Windows Live Yahoo
topFiled under: Scriptaculous, Prototype, Javascript | Martijn @ 3:56 pm | Comments (0)

Multiple Upload Solution; Using Javascript, Flash and PHP

October 19, 2007

Due to security changes in Adobe Flash player 10, this script doesn't work anymore when updated to Flash player 10. Several other similar solutions already solved this problem; FancyUpload, YUI Uploader.

Thanks for the introduction Willem and hi all! Willem asked me to write some posts on additional topics like Flash, Actionscript and so on. I hope you will enjoy some of my findings, codes, tips or stories.

For my first contribution i'd like to start sharing a script i wrote a few months ago.

A problem i often encouter is that people, often customers, would like to upload multiple files all together, instead of, what you often see, one file at the time. Of course a very simple solution is to put multiple HTML upload fields on a page, but obviously we could think of a better solution. There are many alternatives on the internet, but most of them aren't customizable and as a real webdeveloper, i would like to create my own solution of course. That is why i created a solution combining three popular webtechnologies; Javascript, Flash and PHP; Javascript constrols the visual aspects, while Flash in combination with PHP handles the upload process.

Since Flash 8, the possibility to communicate between Flash and Javascript is improved, so you can communicate easily using the Flash's ExternalInterface API. With this you can call javascript functions from Actionscript and pass any number of arguments of any data type and vice versa!

To see a working example of my multiple upload solution, click here (no files will be actually uploaded).

I also helped willem out with the design and think we came up with a nice look for this weblog. As you can see at the top we included a menu and added the page 'projects'. I hope we will be able to give this page some content and if i improved my multiple upload script, i will add this as a project. Untill then, you can download the source of this first version here.

Add to: del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Windows Live Yahoo
topFiled under: Javascript, PHP, Flash, Actionscript | Martijn @ 8:17 pm | Comments (16)

Realtime email validation with scriptaculous

October 18, 2007

When adding this tiny javascript to the onkeyup event of your inputbox, the border will turn green when the email address. It uses scriptaculous' morph function to perform this transformation. See a demo
(more...)

Add to: del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Windows Live Yahoo
topFiled under: Ajaxorized, Scriptaculous, Prototype, Javascript, HTML | Willem @ 12:42 pm | Comments (5)

Martijn joins the team!

From now, the number of ajaxorized team members is upgraded to 2, since Martijn joins the team. Martijn and I met in our universities masters program and share the same passion for informatics, web development, javascript, PHP and, of course, black coffee. So, a warm welcome to Martijn!

Add to: del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Windows Live Yahoo
topFiled under: Uncategorized | Willem @ 11:52 am | Comments (0)

JSON in prototype 1.6.0: basic example

October 4, 2007

That right guys, prototype 1.6.0 is on it's way and there is one aspect I want to share with you. In stead of using the old-fashioned 'http-header' way to transport JSON, the prototype framework now eats files with the content-type 'application/json'. A short example:

  1. First, we will use prototype to make an ajax request.
     new Ajax.Request('ajax.php',{ onSuccess: handleSuccess }, method: 'get' });
  2. After this, on the serverside we set the json headers and output the formatted data using the Services_JSON class:
    <?php
    require_once "services_json.class.php";
     
    /* Set the JSON header */
    header("content-type:application/json");
     
    /* Format some data */
    $aData = array("Car", "Plane", "Train");
     
    $oJson = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
     
    /* Output */
    echo $oJson->encode($aData);
    ?>
  3. And finally this alerts 'Car', 'Plain' and 'Train':
    function handleSuccess(transport) {
      $A(transport.responseJSON).each(function(str) {
        alert(str);
      });
    }

Add to: del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Windows Live Yahoo
topFiled under: Ajax, Prototype, Javascript | Willem @ 1:16 am | Comments (2)

The ultimate password strength meter

September 27, 2007

I made some improvements on the password strength meters available on the web. Using prototype/scriptaculous, I stole some code from ZeBadger (thanks!) and created a new meter which dynamically changes while typing your password.

Preview

Click here to see the demo

If you want to use this script, feel free to download the source and use it on your website.

Enjoy.

Add to: del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Windows Live Yahoo
topFiled under: Scriptaculous, Javascript, Code, HTML | Willem @ 2:00 pm | Comments (20)

DOM & Prototype: now even faster

September 25, 2007

While playing around with the prototype framework, I wrote 2 code snipplets I want to share with you:

 
var _ = function(sEName, id, classname, attributes) {
	var e = document.createElement(sEName);
	if(id) { e.id = id; }
	if(classname) { e.className = classname; }
	if(attributes) { for(var p in attributes) { e.setAttribute(p, attributes[p]); }	}
	return $(e);
}
 
Element.addMethods({
	_a: function(element, e) {
		element.appendChild(e);
		return $(e);
	},
	_r: function(element, e) {
		element.removeChild(e);
		return$(e);
	}
});

Using the functions above, you will be able to create HTML structures on the fast DOM-lane:

 
var oHTML = _('div', 'head', 'headClass');
oHTML._a(_('div', 'second', 'secondClass'))._a(_('img', 'myimage', 'images', {src:'pica.jpg'}));
document.body.appendChild(oHTML);

Which results in:

 
<div id="head" class="headClass">
<div id="second" class="secondClass">
     <img src="pica.jpg" id="myimage" class="images" />
  </div>
</div>
 

Enjoy.

Add to: del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Windows Live Yahoo
topFiled under: Ajaxorized, Prototype, Javascript | Willem @ 10:06 am | Comments (6)

Top 5 HTML5 Resources

August 29, 2007

In a few years, we (as in web developers) will no longer be speaking the language of (X)HTML4(.01). We will no longer speak the language of <div>'s. No, in a few years, we will no longer be partying like it's 1999. HTML5 (or Web Applications 1.0 as people call it who use the Web 2.0 phrase as well) is on it's way. Since three major Browser vendors (Mozilla, Apple and Opera ) came together as the WhatWG (Web Hypertext Application Technology Working Group) to construct the new HTML standard, the basic thought of the extended HTML version becomes more and more clear. Backwards compatibility width HTML 4.01 and XHMTL 1.1, more specific elements to fulfill the needs of web applications (instead of using <div> for every single one of them), <audio> and <video> tag support, the <dialog> element to describe conversations and many more functionalities. Sounds promising, isn't it?

(more...)

Add to: del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Windows Live Yahoo
topFiled under: Uncategorized, HTML | Willem @ 5:29 pm | Comments (0)

Replace dates in Gmail by links to Google Calendar

August 2, 2007

I've written a GreaseMonkey userscript that recognizes dates and replaces them with links to Google Calendar. So, suppose someone sends you an invitation for a particular date, it will be transformed to a link to that day in Google Calendar.

(more...)

Add to: del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Windows Live Yahoo
topFiled under: Javascript, Greasemonkey | Willem @ 12:21 pm | Comments (0)
« Older PostsNewer Posts »