Creating a ‘blocking’ confirm dialog with dojo

Update 30.03.2018: Version 1.10 of dojotoolkit includes a dijit/DialogConfirm now, which is simply a dijit/Dialog featuring ‘OK’ and ‘Cancel’ buttons, no blocking though. Update 15.10.2012: Code is available on githup now. I also fixed updating the content of the dialog after creation (e.g. dialog.set(‘content’, newContent) overwrote the confirm/cancel buttons because they were part of the …

phpStorm and documenting JavaScript

I’m awed again and again by phpStorm‘s features. I just came across this one: When I comment my JavaScript methods/functions with the @param, all IDEs I have tried out so far, let you only set a primitive type in curly braces, e.g.: /** * Some method description. * @param {Object} deferred dojo.Deferred */ someMethod: function(deferrede) …

How to create JavaScript documentation in PhpStorm

Update 19.07.2013: This guide is outdated. Read How to Generate JavaScript Documentation with JSDoc 3 and PhpStorm PhpStorm’s code assist feature nicely displays our own JavaScript code documentation. But what if you wanted to create a separate documentation you can hand out or integrate into your website? Then you should use jsdoc-toolkit. You can configure …

How to create PHP documentation in PhpStorm

PhpStorm displays your own code documentation in the code assist. But what if you wanted to create a separate documentation you can hand out or integrate into your website? Then you should use phpDocumentor. You can configure and run phpDocumentor directly from PhpStorm as an external tool. Here is what you have to do:

How to get code assist for dojo in PHPStorm

Update: Since Version 2.0 EAP 98.458 you get JavaScript library support, thus the following is obsolet. In case you were wondering how you get dojo code support in PHPStorm even if dojo is not in your project folder, here’s the solution: 1. Open Project Settings 2. Select Directories 3. Add the path to your dojo …

Why I love PhpStorm: JavaScript code completion with dojo

Just a quick post about the new PHP IDE by JetBrains. So far I’ve been working with Aptana Studio. I also tried NetBeans and Comodo Edit, but none was really satisfying, because either dojo or ftp support was missing (if I find time, I’ll write a post in more detail about the differences between those …

Review of Solmeta Geotagger N2 for Nikon

Geotagging your photos is very useful because it allows you to display your pictures on a map helping you remember where you took them. Furthermore, you can use reverse geocoding to automatically add location information (country, nearby places) to your image by using a webservice such as geonames.org. The good stuff The Solmeta Geotagger N2 …

Integration of phpDocumentor into Eclipse or Aptana

You can execute phpDocumentor directly from Aptana or Eclipse. The PHP-project you would like to document with phpDocumentor needs to be open and selected in eclipse before you start the following steps:

Check if node in tree is already selected

It took me a long time to figure out how to check if a node in a dijit.tree is already set to selected, when the user clicks on it. So I thought I share what I found out: dojo.connect(this.tree, ‘onMouseDown’, this, function(evt) { var node = dijit.getEnclosingWidget(evt.target); if (node.item == this.tree.attr(‘selectedItem’)) { console.debug(‘selected’); } });

Tutorial Part 1: REST with Dojo and PHP

I only started recently to dig into REST, so I’m in no way an expert in this field. There are not that many tutorials on the internet, and the ones I found were only of limited help. They all seemed to miss something or, rather, I missed something. So I decided to write my own …