Code: Select all
<script type="text/javascript">
// Instructions on how
// To use the script
Code here;
</script>
Code: Select all
<script type="text/javascript">// Instructions on how // To use the script Code here;</script>
I tried replacing the line comment marker // with block comment /* and */ so the end result would be like this:
Code: Select all
<script type="text/javascript">/* Instructions on how To use the script */ Code here;</script>
I have double and triple checked and as far as I can tell the line endings on the server are the Windows standard CRLF. I re-transferred the file using binary mode from my Windows box to make sure the line endings are right.
It sure seems like something is stripping off those line endings in my scripts. How do I find out what is doing it? Could it be IIS7, is it AbleCommerce doing it when it puts the final html together? This is really driving me crazy, anyone have any idea what's doing this?