[Product-Developers] Problems with inline editing and javascript - kss swallows errors
Markus Bleicher
lists at markusbleicher.de
Mon Sep 22 21:05:31 UTC 2008
Sorry for thread capturing, I've overlooked it.
Markus
Markus Bleicher wrote:
> 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
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
More information about the Product-Developers
mailing list