T
Terry Olson
The wrapping is caused by the auto wrap my editor does, in actually all
these lines are only 80ish. I will copy it unword wrapped next time. This is
why I try to avoid posting entire things of code.
And top post because all the stuff below is unimportant, I only read the
last thing posted, if I want to read the stuff before it, I read the posts
before it. My habit, my preferance.
these lines are only 80ish. I will copy it unword wrapped next time. This is
why I try to avoid posting entire things of code.
And top post because all the stuff below is unimportant, I only read the
last thing posted, if I want to read the stuff before it, I read the posts
before it. My habit, my preferance.
RobG said:Terry said:that isn't very helpful, I got this window.open code striaght from my
javascript codebook. What's wrong with it? [snip]There are really to many errors in the syntax of your code in a whole.
Please correct them first and then we can continue discussing...
Please don't top post, it destroys the flow of
the conversation.
There are a stack of errors caused by wrapping, please
manually wrap your posts at about 60 characters to allow
for quote marks. It took me half an hour just to get
your code to "work".
Some minor errors:
<style> should be: <style type="text/css">
<script> should be: <script type="text/javascript">
missing </form> tag
<body onLoad="fcus()">
// Calling focus on a table element that doesn't exist yet
// This may error if the browser executes the script
// faster than it draws the table ... or it may not
// to save doubt, put it at the bottom of the page.
The error is in your logic. When w=4, you end the row and
then start a new one when w=5, but when the letter changes,
you re-set w. So if the first letter has 6 cells, you
write 4, then a new row, then two more. Then you start on
the next letter with w=1 again and write 4 more cells
before ending the row so now this row has 6 cells.
You need to make the cell counter independent of the letter
counter. This error was staring you in the face, you are
writing w to the page.
Rob.
PS. This is a pretty awful way of doing what you are doing.
If it really came from a book, I'd toss it. Your CSS has
issues too, but that's for another group to fix.