HTML problem.. (surpriiise! :-)
I've made this small "program" where a user choose an acid, and then write a couple of other variables... anyway... the thing is that when they write more than 2 letters (numeric) in the "Utsläpp liter" box (it says 20 as standard) the **** page moves around a bit (after they have TABed)... I realise that it is because I worthless as a HTML-'coder' but its **** annoying
Anyone can find an error on the page that would explain this odd thing?
I'd really appreciate the help... since I cant fix it
you can find the page on:
http://www.carlsberg.nu/mdk/
<EDIT>
I know the word isn't that bad, but there are young ones who read posts here so I edit out 4 letter words.
-John
</EDIT>
------------------
./mdk
[This message has been edited by John Pollock (edited 14 December 1999).]
[This message has been edited by John Pollock (edited 14 December 1999).]
./mdk
Anonymous posted this at 16:36 — 14th December 1999.
They have: 5,633 posts
Joined: Jan 1970
That is very strange, I'm not sure why the page moves around a bit, the only things I can see which don't look quite right is firstly I get an error message (in IE5) saying:
Line: 119
Char: 2
Error: 'amne' is undefined
Code: 0
URL: http://www.carlsberg.nu/mdk/neutral.htm
And secondly as far as I know arrays have to begin with the number 0, not number 1.
Hope this helps
John Pollock posted this at 16:46 — 14th December 1999.
He has: 628 posts
Joined: Mar 1999
Yes, I got the same error. It seems amne is being used as it were an array, but there is no variable or array named amne before this line:
temp = amne + "[1]";
document.neutral.syra.value = eval(temp);
So, something must be changed before this line to define it, or you should use one of the arrays that is defined.
As Tom said, the arrays should go from 0 to 11 (The length is still 12) rather than 1-12 as this could cause a number of problems as well.
Hope this helps,
------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com
Java Script: A Beginner's Guide
Page Resource
mdk posted this at 19:09 — 16th December 1999.
They have: 11 posts
Joined: Nov 1999
Took me a while to find out what the problem was... or more correctly, to come up with an idea for it... did you guys remember to choose an acid in the top-right selectionboxthingy? or did you get that error when you loaded it?
if you dont have an acid selected, it aint gonna work you see... could of course make one of them default, but I didnt really want to do that... I guess its a bit easier to see it when you know swedish...
Thanks for telling me about the array-error, Im a really bad javascript coder... I just try to code and sometimes I actually get it to work
Anyway... the mainproblem still remains... The page moves around ... and I just dont find an error that can explain it... you got any other ideas?
And by the way, sorry about my terrible language, I'll try to stick to "bible language" from now on
Regards, Martin
------------------
./mdk
./mdk
Justin S posted this at 19:26 — 16th December 1999.
They have: 2,076 posts
Joined: Jun 1999
I see- yeah... it happens to me also. But I don't get a JS error with IE5. Weird. Have you tried making the table a certain amount of pixels (say 600) and see if it still moves?
------------------
FireBurn Web Publishing: http://www.fireburn.com
Get paid to be ONLINE: http://www.getpaid4.com
Justin Stayton - [email] [icq]
mdk posted this at 21:43 — 16th December 1999.
They have: 11 posts
Joined: Nov 1999
Yeah... Im quite sure I did that (I've made 5-6 small html "programs" lately, never remember in which one I've been working.. =) but it didn't work, and then I threw my computer out of the window. well almost anyway, I really wanted to.
I'll check it out tomorrow when I get to work though...
Not that it SHOULD be like that, even if I use % ... something is very very wrong here =)
anyway... will report tomorrow (its almost 11 pm here in sweden now) if I had tried the absolute width thingy...
....
./mdk
Jack Michaelson posted this at 09:07 — 17th December 1999.
He has: 1,733 posts
Joined: Dec 1999
mdk,
I choose an Acid, fill in more than 2 characters in the "Utsläpp liter" box and I press TAB like you described in your first message.
The page isn't moving(?!) I use IE4.
------------------
Jack Michaelson
[email protected]
! Click here for my profile !
Shakespeare: onclick || !(onclick)
mdk posted this at 10:03 — 17th December 1999.
They have: 11 posts
Joined: Nov 1999
Well... it doesnt happen every time for me, but almost... havent tried it in IE4 though, perhaps I should do that... not that it would help, but then Id know that its because IE5 sucks
Try it a couple of times and see if it happens than... I'll try to find myself a computer that still has IE4 installed
Greets...
./mdk
./mdk
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.