[Product-Developers] Problems with inline editing and javascript - kss swallows errors

Markus Bleicher lists at markusbleicher.de
Mon Sep 22 13:44:58 UTC 2008


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




More information about the Product-Developers mailing list