Re: [Xsltforms-support] Javascript URIs in XSLTForms
Brought to you by:
alain-couthures
|
From: Alain C. <ala...@ag...> - 2016-02-25 20:43:20
|
Hi Tim,
This exception is due to Javascript strict mode detecting an undeclared
variable. In previous commits, an undeclared variable was automatically
created when assigning a value to it.
The missing declaration will be added in the next commit. It is already
possible for you to remove "use strict"; at the very beginning of
xsltforms.js
Thank you for your feedback!
--Alain
Le 24/02/2016 19:27, Tim Thompson a écrit :
> Hi, Alain,
>
> I tried to use Javascript URIs recently (in <xf:load
> resource="javascript: .."/>), but this feature seems to be broken in
> the latest versions of XSLTForms. I had to revert to rev. 625 for it
> to work.
>
> In rev. 631, I get an XSLTForms exception:
>
> XSLTForms Exception
> --------------------------
>
> Error evaluating the following Javascript expression :
>
> if (!(typeof d3.selectAll('g.node') == 'undefined')) {
> d3.selectAll('g.node').remove(); d3.selectAll('line.link').remove(); }
> { queueD3js('resources/data/nodes4.csv', 'resources/data/edges4.csv')}
>
> ReferenceError: assignment to undeclared variable XsltForms_context
>
> What do you think?
>
> Tim
>
> --
> Tim A. Thompson
> Metadata Librarian (Spanish/Portuguese Specialty)
> Princeton University Library
>
|