[Mapbender-dev] JS exceptions
Christoph Baudson
christoph.baudson at ccgis.de
Tue Jan 9 08:01:17 EST 2007
Hello again,
thanks for your input Marc.
Returning a boolean sounds like a sensible thing to do. At the moment
the php-class doesn't return a value either, so I will go and edit it as
well.
I believe you, Marc, are quite experienced in Ajax, so I will ask
rightaway: What is the best way to return the value? I would send http
headers in mb_js_exception.php and just echo 'true' or 'false'. Is this
the way it is done? Or do I have to build an XML?
Christoph
Marc Jansen schrieb:
> Hi list,
>
> this is IMHO a good approach!
>
> However: How about having a callback function when the AJAX-request has
> completed? One might want to react on the logging of the error. Most
> frameworks for AJAX-stuff provide this functionality. Is this worth a
> consideration? BTW: What does the function return right now? According
> to your snippet nothing? What about a boolean - this could then be used
> to determine further script logic, and might as well replace the
> callback-function-thing.
>
> -- Marc
>
> Christoph Baudson schrieb:
>> Hi developers,
>>
>> today I added a new class for handling Javascript exceptions to
>> map.php. Until today, I only alerted error messages, which is a bit
>> awkward once a software is delivered. Check this out:
>>
>> http://www.mapbender.org/index.php/Talk:For_developers#Javascript_exceptions
>>
>>
>> Is this a sensible approach? Please comment and I'll add it to the SVN.
>>
>> Cheers, Christoph
>> _______________________________________________
>> Mapbender_dev mailing list
>> Mapbender_dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapbender_dev
>>
>
> _______________________________________________
> Mapbender_dev mailing list
> Mapbender_dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_dev
More information about the Mapbender_dev
mailing list