Courion Tip – HTML, Javascript and Whitespace

The issue was that the screens had a lot of extra spaces in them after a number of javascripts were implemented. When you went to the page, there was text at the top, then a number of blank lines, then more text. If you did a view source in Internet Explorer, you would see a number of paragraph marks and line breaks, but I could not determine where they were coming from.

Here’s what the Form Instructions (under Change, Unique Resource data) looked like (I deleted the text part as it wasn’t needed to illustrate my point):

Here’s the visually – UN – appealing version, but it doesn’t generate the unwanted whitespace – just to be completely clear, it’s ALL strung together into one line….


Posted July 11, 2011 by mmdmurphy in Courion Tip

Tagged with

%d bloggers like this: