Bump.

Hello,

I put some javascript into the edit-macro of a homegrown widget.

    <script type="text/javascript" language="javascript">
      var testv="TestTest";
    </script>
        <script type="text/javascript" language="javascript">
  // <![CDATA[

  alert(testv);

 // ]]>
  </script>

with strange results:
The scope of the variable is limited to its enclosing script-tag, so
it is not defined when the alert fct. ist called. And the resulting
error is silently swallowed.

writing: alert("Blah"); works.

So: Does kss swallow errors and how to see them? Any clue where this
scoping problem comes from, is there some reordering of tags while they
are inserted into the page-dom?

Any clues at all are most welcome.

Markus

Plone Version: 3.1.5.1, Firefox 2


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to