FrontPage Adds Non-Breaking Space to Empty Table Cells

  • Thread starter Thread starter Michael Bloustine
  • Start date Start date
M

Michael Bloustine

Does anyone know how to work around this problem? It's
extremely frustrating!

I have a table cell which is populated at run-time with a
flash movie. So the cell has a JavaScript snippet, but
nothing else. However, FrontPage insists on adding a
  to the table cell, which completely screws up the
layout.

Despite having the "Preserve HTML" option checked,
FrontPage refuses to save this page correctly. Every time
I remove the   it reappears. Are there any fixes for
this bug or workarounds that work WITHIN FrontPage?

Thanks for any and all help.
Mike
 
Remove it. It can be removed in html view
or in normal view by placing the mouse cursor
in the cell and pressing the backspace key
one time.
 
As long as the cell has some content, then you can remove the  .

FP2000 and Up, add the   so that browsers other than IE can see "empty"
table cells.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
-----Original Message-----
Remove it. It can be removed in html view
or in normal view by placing the mouse cursor
in the cell and pressing the backspace key
one time.

Actually, that is the problem... I CAN'T BE REMOVED. I
remove it from the HTML and press CTRL-S to save, and
right before my very eyes, front page adds it back in!

Like I said, it's incredibly frustrating. FrontPage
doesn't respect the code changes I type to correct the
problem.

Thanks for the help. Any other suggestions? Is there a
download to fix this bug?

Michael Bloustine
 
You must insert something into the cell first.

This is not a bug, so there is no fix for this, unless you want to go back
to FP98 unpatched version.

It was consider a bug in FP98. when FP didn't insert a   into empty
cells.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
-----Original Message-----
You must insert something into the cell first.

There IS something in the cell... a flash movie in this
case. But FrontPage insists on adding the unecessary nbsp
and it causes the height of the cell to be much larger
than the actual movie file.
This is not a bug, so there is no fix for this, unless
you want to go back to FP98 unpatched version.
It was consider a bug in FP98. when FP didn't
insert a space into empty cells.

I guess FrontPage just THINKS it's empty. I guess I was
hoping that there would be some editable configuration
file or some option I've missed. The problem I am having,
then, is that FrontPage isn't respecting the option to
leave code alone which is hand-edited.

I appreciate the help you offered. Looks like I am stuck
with a very manual workaround of editing the page in
Notepad when I am otherwise finished with it in FP.

Thanks,
Michael Bloustine
 
Can you paste the code into a post, so we can see what you are actually
inserting into this table cell?


--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
there is an option in fp 2002 to "leave source code alone"
you may want to do this:
in page view cut your JavaScript out and then in normal view click insert/
web components/ advanced control/ html and then paste your JavaScript into
that box.
this may help fp "see" your element within the cell it'll even put a little
icon where you did this. after you've done this you should be able to
eliminate the space by setting your cursor just before the little script
icon and hitting the backspace.
HTH
 
Michael Bloustine said:
There IS something in the cell... a flash movie in this
case. But FrontPage insists on adding the unecessary nbsp
and it causes the height of the cell to be much larger
than the actual movie file.

You have something wrong there then, either a) your flash movie is really
frickin short b) your font is set to make a "space" character really tall c)
something else is going on.

I vote for C. You might want to post the HTML of your entire table or maybe
even the URL of your super-secret web site so people can look at it.
Otherwise, you are forgoing the combined experience of the newsgroup
readers...
I guess FrontPage just THINKS it's empty. I guess I was
hoping that there would be some editable configuration
file or some option I've missed. The problem I am having,
then, is that FrontPage isn't respecting the option to
leave code alone which is hand-edited.

You are correct on that, I FP doesnt think the flash movie counts as
content. Maybe you could try replacing the non breaking space with a single
pixel transparent gif, which does count as content as far as FP is
concerned, and it will be sized in a way you can control.
I appreciate the help you offered. Looks like I am stuck
with a very manual workaround of editing the page in
Notepad when I am otherwise finished with it in FP.

Thanks,
Michael Bloustine

BTW, the "feature" is not a bug. FP puts a space in there deliberately
because some versions of Netscape (and really old versions of IE) define a
cell as "box with item in it", when the item is not detected then the cell
walls and cell spacing were not drawn. (Which tends to muck up tables even
worse...) I am pretty sure by FP logic they coded it to look for an image
or text, but not for javascript, java, flash, shockwave and other
proprietary tags.
 
Thomas A. Rowe said:
Can you paste the code into a post, so we can see what you are actually
inserting into this table cell?

Thanks for your help. Sorry for long delay in replying. I fixed the problem
by removing some comments within the code. Somehow, that allowed FrontPage
to see my JavaScript and not force a space to appear within the table cell.

--------------------

To be clear for everyone who read my thread, the problem had nothing to do
with the flash movie itself... as I stated in my original post, the movie
doesn't even appear until runtime. The cell's contents in the HTML contained
ONLY a JavaScript snippet and nothing else. (It's a large cell, too,
adjacent to a cell of similar size populated with a GIF.) When the page is
rendered, a flash movie is inserted. Also, I stated earlier that I DID have
the option checked to leave code alone which has been hand-edited.

So anyway, after removing the comments from the JavaScript code in the HTML,
FrontPage "saw" the script as content and stopped inserting the nbsp.

Thanks again to everyone who replied.

Michael Bloustine
 
Back
Top