Aleksandar • Vacić

iOS bits and pieces

Big cat has arrived

This should be clasified under Techs, but….

Today, I bought my first ever Mac (actually my company did, but those are minor details). It’s a beatyful iBook G4 (933MHz 14.1"), with Panther OS. I have never used (or seen) Mac before, and this was quite a revelation for me.

I played with it less then an hour, but I already want (cherish) one for home. It loads quickly (sligthly faster than my Athlon 2.4GHz Win) and shutdowns quickly. That is where the similarity stops.

As Apple’s commercials says - this just works. I pluged the network cable in and imidiatelly went to System Prefs to set it up; imagine my jaws dropping when I realized that it has done that already! Never, ever, I experienced something like that on Windows. Jolly good. (Yes, we have a all-Windows network here, so that is why I expected that special is needed).

Setting up international keyboard and stuff (Serbian cyrillic) was a breeze, and it works rather cleverly - only Unicode apps will be able to use that, all other will US. Etc, etc…

That is why this post goes to Life category. I have a feeling I got something that works for me, always.

I have yet to work with it and enjoy doing that. More over….all my scripts and sites will now be retested and debuged in all Mac browsers. How kewl is that. :)

Usability improvement for MT

This web site is hosted on the very slow server and the consequence is that the rebuilding of files takes forever, sometimes up to 1 minute. :‘(

Side-effect of this is that, when you submit a comment, it appears that nothing is happening (except the upper right browser icon is rotating) so you naturally click again and again and it sometimes posts the same comment several times. I’m not able to repeat that (which puzzles me), but I have seen it happen (and spent time deleting identical comments).

So, to save my self some time, I changed MT comment handling script. I added this into form tags on entry comment template (as well as on comment listing, preview and error templates):

onsubmit="return SubmitComment(this)"

and this is the SubmitComment function:

function SubmitComment(oForm) {

  if (oForm.submitClicked) {

    alert("Form is submitted, processing <span class="code-break">»</span>

       will take a bit (it is a slow server :( )");

    return false;


  oForm.submitClicked = true;

  if (oForm.bakecookie)

    if (oForm.bakecookie[0].checked)


  return true;


It is very simple DOM trick: property submitClicked is added to form object and later on checked, so if you click more than once you’ll be notified and that second (third etc.) submit will be canceled.

bakecookie thing is from original MT build.

Towards smaller download

I have used this version of ADxMenu at the commercial web site I’m working on, where it has proven its abilities. It is tested in IE5+ and Mozilla Firebird 0.7 on Windows and it works like a charm. Opera 7.22 is still too-buggy and I’m ingnoring it for time being.

Rules for building HTML and CSS has changed once more, so bear with me.

Work in progress...

A lot happened since the last ADxMenu post.

I was working further on the script, primarily looking for a way to work properly in IE 5.x on Windows. IE5 and IE6 are probably 98% of end-users, so this was my primary target, while keeping all CSS2-compliant browsers happy.

I had just finished version 1.5, when several things happened.

First, there was a huge discovery that IE 5, IE 5.5 and IE 6 can work side-by-side, which simplified testing. Then, Suckerfish dropdowns article appeared on ALA, which spurred excellent discussion about the possible problems and solutions.

Toni Anzlovar sent his take on nested menus, and someone posted Peter Nederlof’s script.