Postby dirkster » Tue Sep 14, 2010 8:58 am
Hi,
I want to generate Javascript to be used on the client side. Earlier on, I thought this needs some special configuration on the server side but this appears to work by simply stating the correct statements.
My Problem, though, appears to be the following:
In my javascript code there is a reference to an array object:
<script type="text/javascript" language="JavaScript">
var _oDT = oDT[i];
</script>
And that reference is being interpreted by the Polarion Wiki syntax as a link, so it gets replaced with a link
<script type="text/javascript" language="JavaScript">
var _oDT = oDT<a onclick="return checkDiscardChanges();" class="wikicreatelink" ..
</script>
Escaping the squared bracket with backslash does not help because the result is:
<script type="text/javascript" language="JavaScript">
var _oDT = oDT[i];<p class="paragraph"/>
</script>
...which is not valid JavaScript on the client side (browser). So, I guess my question is now:
What is the best way to escape a squared bracket in Javascript - do I need to configure a separate
tool for this or is this possible out of the box?
Cheers Dirk