Pages (6): «1 2 3 4 5 6
avatar

Prototype Event.fire() is not firing native events

December 15th, 2009 in JS / CSS / xHTML 0 comments
Using Prototype to observe for submit a form that has no submit button and sending it with javascript using .submit() the event is not caught. Checking the Prototype API I found out there is Event.fire() that fires events on a given element. The problem is that .fire() is not firing native events, only custom ones.

Using the code from Protolicious on github solves missing functionality Prototype has. Saving this and including it after Prototype fixes the problem of firing native events.

simulate.js to view the code read the full post ...read more
avatar

Sidebar with script.aculo.us effects

November 24th, 2009 in JS / CSS / xHTML 0 comments
I found nothing that suites my needs so I made this sidebar using Prototype and script.aculo.us. I use this sidebar in the CMS I made using CakePHP. The sidebar can have only one sub level, which on click will be blinding up and down, leaving the active element always open, in case it has a sub level. Also the top level elements will slide sideways on mouse hovering, this giving a nice visual effect.

Save the following code as sidebar.js: to view the code read the full post
Include the script: to view the code read the full post
The structure looks like this: to view the code read the full post
Every top level link must have the class name "nav-top-item" and if has no sub level it also must have the class name "no-submenu". To show the selected link and keep the sub ...read more
avatar

Vacation week 2, Plitvice Lakes National Park (Croatia)

August 11th, 2009 in Personal 0 comments
Story soon. ...read more
avatar

Vacation week 1, Dubrovnik (Croatia)

August 10th, 2009 in Personal 0 comments
Vacation! 2 weeks of freedom. I was so happy that I could leave all my problems behind, even if it was for a short period of time. I waited a long time for this.

I got the GPS route set to Dubrovnik (Croatia) and left
 ...read more
avatar

Adobe Illustrator crashes when saving file

June 30th, 2009 in Other 1 comment
I tried to copy a vector from Illustrator to Photoshop and use it as smart object. At that moment Illustrator crashed. I did this over and over again, same result. Then I tried to save it, so I could place it in Photoshop, Illustrator crashed again. I thought Windows 7 could be the fault, then maybe the file is corrupted or Illustrator got damaged.

Actually there was no problem with the OS, the file or Illustrator. It turns out that Illustrator needs the Print Spooler service to be running, at least my CS3. I started to go crazy not knowing how to fix this problem. These little annoying problems can make you go crazy. ...read more