#2091 JavaScript error when running FWT table example as JS

gyromaxx Wed 30 Jan 2013

With Fantom v1.0.64, I tried to run the FWT example "table.fan" as a JS demo by simply copying file "<FANTOM_HOME>/examples/fwt/table.fan" to "<FANTOM_HOME>/examples/js/table.fwt" and running "<FANTOM_HOME>/examples/js/demo.fan".

The table is indeed displayed in the browser and rows can be sorted, but all options in the right pane do not work except halign.

In the browser's JavaScript console, the following error is reported at each try (e.g. in IE 9.0):

SCRIPT5022: sys::NullErr: Coerce to non-null 
sys.js, line 12464 character 1

A similar error is reported in FireFox 18.0 and Chrome 24.

But it seems that as soon as halign is changed and button refreshAll is pressed the error does not occur anymore and everything appears to work as expected!?

Can you please check this and see if this can be easily fixed?

In any case, congratulations for these fantastic and pragmatic open-source language and libraries! 8-)

andy Wed 30 Jan 2013

That example was not originally written for @Js - so its probably just something small with the way the two scripts were written.

Login or Signup to reply.