On 21.03.2014 19:49, Paul Alfille wrote: > Applied. Thanks. Thanks Paul!
While doing further tests (and writing a demo-page as promised with jQuery and jQGrid which is pretty cool ;)) I found another problem which creates invalid JSON (jsonlint.com, jQuery also bails out..): owhttpd_read.c: FS_dir(ShowDeviceJsonCallback, out, pn); Should *not* output a comma after the last property/value in "directory" after "]" and before "}" My tries to fix it where dirty quirks, maybe FS_dir is aware if there where records before or anymore are to come if and the Content-type is ct_json(?) P.S.: - The problem with ct_json not getting selected on further requests (Cache?) and outputting HTML instead of an empty JSON-object on simply invalid paths isn't that important because owhttpd still returns a) a "404" b) isn't valid JSON -> which both could be caught easily for error-handling on the client.. Though it should be kept in mind as it's not 100% clean.. But this boost Web-Apps by 1000% on low-end platforms, so I think getting these really minor troubles fixed is really worth the effort! Michael ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
