Feb 06

The MooTools JavaScript framework has a lot of nice methods, where store and retrieve are only two of them. The concept is a pretty simple one. I call it the "registry". Every element may have properties which are also present in the DOM, like href, title and so on. But with MooTools, you have one more option to assign properties to elements which will NOT have a "physical" representation in the DOM. For being able to identify one specific element in the DOM, a unique identifier is mandatory. As there is no such thing for every HTML element by default, they had to create one.

Technically, there is the id property, but not every element has to have it, so that is not the solution. Within the framework, there is a $uid method, which assigns an integer value to every element once MooTools is initialized (also for elements which are created dynamically later on). There is also a global counter value which increases the integer value and holds this "auto increment" value. This is Native.UID.

So after that magic method has been called for every HTML element, each one has a "uid" which can be obtained by myElement.uid. Sounds pretty easy and logic, right? Well, it is - except for forms. Guess what happens if an HTML form contains an input element with the name "uid" and we want to store something at the form. You're right: it crashes! Here's why: The browser simply returns an input element instead of the integer value. Now imagine you have several forms of that kind and you want to submit them with the Form.Request class. It uses the occlusion pattern of the MooTools framework. Now as soon as one form has been sent that way, all the other forms will simply check if there is a request stored for input instead of their integer uid value. Thus: all the forms share the same request object and your application will crash!

Check out the exmaple page.

Okt 25

... auf der man sich eintragen kann. Ich hoffe, je länger sie wird, desto eher muss er gehen! Ruhe in Frieden mein Freund, wir haben viele Stunden gemeinsam verbracht (viele bedeutet hier automatisch "genug").

Sep 03

Ich benutze Google Chrome diese Woche mal auf Arbeit und auch privat und werde in diesem Artikel meine "Entdeckungen" posten. Dazu werden sicherlich Eigenheiten und Unterschiede zu anderen Browsern kommen und vielleicht sogar Bugs, mal sehen. Weiterlesen »

Sep 03

Falls sich jemand noch nicht die Mühe gemacht hat, die Bedingungen zu lesen, hier mal ein paar Auszüge ohne weiteren Kommentar:

10.2 Es ist Ihnen nicht gestattet, den Quellcode der Software oder Teile davon zu kopieren, zu verändern, darauf basierende Werke zu erstellen, ihn zurückzuentwickeln, zurückzuassemblieren oder auf andere Weise zu extrahieren. Es ist Ihnen zudem nicht gestattet, einem Dritten dieses Recht zu gewähren, es sei denn, dies wurde Ihnen ausdrücklich oder per Gesetz gestattet oder es wurde schriftlich mit Google eine anders lautende Vereinbarung getroffen, die dieses Vorgehen ausdrücklich erlaubt. Weiterlesen »

Jun 11
  • english
  • german

Many people came to my blog yesterday, searching for Firefoxlii.de. Thus, I decided to dig a little deeper because I am not the only one interested obviously. I searched for more strange landing pages, trying to earn money with Firefox downloads and the large amount of such websites just hit me. Simple example: just type "Mozilla Firefox" into Google. Weiterlesen »

Jun 10
  • english
  • german

I just a google ad for the version 2.1 of Mozilla Firefox which made me curious because the version 3 has not even been officially released yet. The click on the ad brought me to www.Firefoxlii.de where some features are described and a litte comparison to IE is given (in German). Then I clicked on the "download link" (by webmasterplan), and came to the eBay download page for FF. Of course, I neither found the advertised version 3.1 of FF, nor the google pack, but just the version 1.5 with eBay extension.

Owner of the jump website is a comapny called "Marketing Innovation Ltd." from Great Britain and the email address is a spam blocker from Bluebottle.

Let's sum this up for better understanding: somebody pays for google ads to generate traffic to his own website. There he earns money with the download of a FREE external product. Strange world!

Apr 15
  • english
  • german

If I take a look on the current development of different software sectors, I sometimes think about the future of Microsoft. If you take a little closer look on the latest post-alpha well tested releases, you may understand why Yahoo is now to be accquired: Weiterlesen »