Why so much whitespace in <NOSCRIPT> tags?

  • Thread starter Viken Karaguesian
  • Start date
V

Viken Karaguesian

Hello all,

When I'm working in the Code window and choose "Reformat HTML", Frontpage
puts a *lot* of white space in anything enclosed in a <noscript> tag. The
<noscript> tag contents end up taking a lot of space. Anyone know why this
happens and if there's an option to prevent this from happening? Below is an
example, copied and pasted from a recent "Reformat HTML" command. It should
take up way less space. Thanks in advance for any replies!


<div id="noscript">



<ul class="menu">



<li><a href="home.htm">Home</a></li>
<li>About Us
<ul>



<li><a href="about_us.htm">About St. Stephen's</a></li>

<li><a href="admissions.htm">Admissions and Tuition</a></li>

</ul>


</li>


<li>Boards
<ul>

<li><a href="committee.htm">Committee Members</a></li>
<li><a href="pto.htm">PTO</a></li>
<li><a href="alumni.htm">Alumni</a></li>
</ul>


</li>


<li><a href="pre_school.htm">Pre-School</a></li>
<li>Elementary School
<ul>


<li><a href="elem_overview.htm">Overview</a></li>
<li><a href="arm_curric.htm">Armenian Curriculum</a></li>
<li><a href="eng_k.htm">English Curriculum</a></li>
<li><a href="programs.htm">After-School Programs</a></li>
<li><a href="faculty.htm">Faculty</a></li>
</ul>


</li>


<li>Class Pages


<ul>


<li> Grade 1</li>
<li> Grade 2</li>
<li> Grade 3</li>
<li> Grade 4</li>
<li> Grade 5</li>
</ul>

</li>


</ul>


</div>

</noscript>

--
 
A

Andrew Murray

Just delete the blank lines then; I am curious: why is all that code between
"no script tags" in the first place?

"No Script" has to do with browsers not supporting Javascript or where it is
turned off as in and allows a message to be rendered on the screen, as in:
<no script>Your browser does not support Javascript</noscript>

There's a similar thing with frames: <noframes>Your browser doesn't support
Frames</noframes>

Anyway, you might want to check this link on the usage of the <noscript>
(note: it is one word) tag.
http://www.htmlhelp.com/reference/html40/block/noscript.html

I don't know what context you've used it in, but appears to be incorrect,
and Frontpage has just messed things up more because it doesn't understand
what you've done. Maybe it can be used the way you've shown; I've just
never seen it done that way.

The bullet list works perfectly well without that <div id=noscript> and
</div> and besides there's no javascript in that code.
 
V

Viken Karaguesian

I have been deleting the lines, but it becomes a hassle when you have to do
it over and over again on multiple pages.
The code is there because I want to support people who turn off Javascript
deliberately.

I have a Javascript-based menu on this website that I'm working on. If
someone disables Javascript, they'll never be able to browse the site, so
I've provided an alternate menu system for people that don't have
Javascript. Try it out. Go to www.ssaes.org/test_site see the page as it
normally is, then turn off JavaScript in your browser and reload the page.
You'll see what I mean. :>)


Viken K.
--

Andrew Murray said:
Just delete the blank lines then; I am curious: why is all that code
between "no script tags" in the first place?

"No Script" has to do with browsers not supporting Javascript or where it
is turned off as in and allows a message to be rendered on the screen, as
in:
<no script>Your browser does not support Javascript</noscript>

There's a similar thing with frames: <noframes>Your browser doesn't
support Frames</noframes>

Anyway, you might want to check this link on the usage of the <noscript>
(note: it is one word) tag.
http://www.htmlhelp.com/reference/html40/block/noscript.html

I don't know what context you've used it in, but appears to be incorrect,
and Frontpage has just messed things up more because it doesn't understand
what you've done. Maybe it can be used the way you've shown; I've just
never seen it done that way.

The bullet list works perfectly well without that <div id=noscript> and
</div> and besides there's no javascript in that code.
 
T

Trevor L.

This may have absolutely nothing to do with blank lines.

But why are lines 88-132 duplicated to lines 133-177 ?
 
V

Viken Karaguesian

Oh...

I was using the "Replace" feature to add this code to all pages. Some pages
may have had this code in it already. Thanks for pointing it out.

Viken K.

--
 
R

Ronx

I can confirm the behaviour, but do not know why this occurs.

The easiest way to remove the excess lines is to remove the <noscript>
tag, then Reformat HTML, then replace the <noscript> tag (the
</noscript> can be left in position for this process).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top