Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

2.0.19 question

Just upgraded to the gold version I have a quick question.

I have this in an article created with the beta version that contains:
<script type="text/javascript">
document.write ({$.season$}+1);
</script>

If I flips to Normal mode and back to HTML it's converted to:
//<![CDATA[
document.write ({$.season$}+1);
//]]>
</script>

I just wonder if it will make any difference once I publish it?

Another Q..I noticed that the undo-is grayed out after that kind of manouver, would it be possible for the undo to track any changes made - even these kind of "html/normal translation-changes"?

Fredrik Jacobsson
Monday, August 25, 2003

the missing
<script type="text/javascript">
in the second paste there is just an error by me.

Fredrik Jacobsson
Monday, August 25, 2003

It's converting the JavaScript to the XHTML equivalent of JavaScript. Works fine and is legal XML, to boot. (Note that the lines which are added are JavaScript comments).

Joel Spolsky
Monday, August 25, 2003

Thanks Joel!

I know you've explaind about this earlier but I just wanted to make sure it behaved as expected.

Fredrik Jacobsson
Monday, August 25, 2003

I added a knowledge base article about this in case it comes up again.

http://www.fogcreek.com/CityDesk/kb/troubleshooting/JavaScriptSeemsMauled.html

Joel Spolsky
Wednesday, August 27, 2003

*  Recent Topics

*  Fog Creek Home