[Mapbender-dev] console.log vs new Mb_notice

Christoph Baudson christoph.baudson at wheregroup.com
Fri Dec 19 05:00:03 EST 2008


When debugging new Mapbender functionality, most developers I know use 
Firebug's

console.log

to do so. I recommend not to use it. In a non Firebug environment, your 
code will fail. And I don't want to add code to Mapbender that checks if 
console is defined etc.

You can use "new Mb_notice('text')" instead. Just configure your 
mapbender.conf to log notices and set the LOG_JS constant to "console".

-- 

----------------------------------

 FOSSGIS Konferenz 2009
 17.-19. März 2009 in Hannover
 http://www.fossgis.de/konferenz

---------------------------------- 

_______________________________________

W h e r e G r o u p GmbH & Co. KG

Siemensstraße 8
53121 Bonn
Germany

Christoph Baudson
Anwendungsentwickler

Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
christoph.baudson at wheregroup.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________

Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
_______________________________________



More information about the Mapbender_dev mailing list