I've been working on a page all day and at some point i actually fixed
some of the formatting problems i was having but killed the
functionality. This page queries a SQL server in the back-end and
spits out an answer of sorts. I'm writing this page over an existing
page since the company needs to keep some uniformity. I would like to
show you my problem instead of telling you. It'll make more sense that
way.
Go here. http://www.bigkaiser.com/phil/e-assist.htm
Go ahead and click solve, it doesn't matter what you put in. It used
to, but not since I broke it. Now it tells me that
'document.kpt.style' is null or not an object. (Line 44, Char 19). I
say it is, and I say that it works on other pages that we use. So why
is it yelling at me?
Thanks a lot for helping. I feel quite needy today :(.
-pk 6 1232
Investigating a bit more I find that Firefox's JavaScript Console tells
me that many objects have no properties. Here is the list of objects
with no properties.
document.getElementById("Finish") has no properties
document.kpt.submit.style has no properties
document.kpt.lit has no properties
document.kpt.bck1 has no properties
document.kpt.fwd1 has no properties
Why does document.kpt.bck have properties while document.kpt.bck1
doesn't?? Same goes for document.kpt.fwd and document.kpt.fwd1. I'm
utterly lost.
Thanks.
-pk
pk said: Investigating a bit more I find that Firefox's JavaScript Console tells me that many objects have no properties. Here is the list of objects with no properties.
document.getElementById("Finish") has no properties document.kpt.submit.style has no properties document.kpt.lit has no properties document.kpt.bck1 has no properties document.kpt.fwd1 has no properties
Why does document.kpt.bck have properties while document.kpt.bck1 doesn't?? Same goes for document.kpt.fwd and document.kpt.fwd1. I'm utterly lost.
What element of your page do you believe can be refered to as "Finish"
or as "document.kpt". I don't find either of them.
pk wrote: I've been working on a page all day and at some point i actually fixed some of the formatting problems i was having but killed the functionality. This page queries a SQL server in the back-end and spits out an answer of sorts. I'm writing this page over an existing page since the company needs to keep some uniformity. I would like to show you my problem instead of telling you. It'll make more sense that way.
Go here. http://www.bigkaiser.com/phil/e-assist.htm
Go ahead and click solve, it doesn't matter what you put in. It used to, but not since I broke it. Now it tells me that 'document.kpt.style' is null or not an object. (Line 44, Char 19). I say it is, and I say that it works on other pages that we use. So why is it yelling at me?
Thanks a lot for helping. I feel quite needy today :(.
-pk
Hello pk,
First, I would like you to clean up your code. It's not very readable
(for me anyways).
Secondly, you have a lot of scripts going on in their own script tags.
Glancing at it, this seems entirely unnecessary. Have a single <script
type = "text/javascript"> and place all your code within.
Third, did you know you're doing nested forms? This is a bad practice,
and the forms won't even function correctly. Try to have at least a
valid page before proceeding.
After all this is done, let's try to tackle the problem once again.
I apologize if I couldn't be more helpful.
OK, I totally agree with you that this code is unreadable, but I didn't
know that nested forms were a no-no. I'm looking to create some valid
code from this page but I'm going to need help. I have <form
Name="myform"> nested inside <form Name="kpt"> and I have no idea how
to get away from that without losing the functionality of the "myform"
form.
Lee, in response to your question, perhaps I have the naming
conventions wrong. I'm only editing this page, I didn't create it from
scratch. I thought that something like
"document.kpt.bck1.style.backgroundColor" would refer to the
backgroundColor of button "bck1" in form "kpt" in my document. No?
pk
pk said: OK, I totally agree with you that this code is unreadable, but I didn't know that nested forms were a no-no. I'm looking to create some valid code from this page but I'm going to need help. I have <form Name="myform"> nested inside <form Name="kpt"> and I have no idea how to get away from that without losing the functionality of the "myform" form.
Lee, in response to your question, perhaps I have the naming conventions wrong. I'm only editing this page, I didn't create it from scratch. I thought that something like "document.kpt.bck1.style.backgroundColor" would refer to the backgroundColor of button "bck1" in form "kpt" in my document. No?
If you're going to respond to me, you should respond to my post.
Yes, that is the correct convention. I don't find a form named
"kpt" in your document.
Line 114? Or did I name it wrong? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: nam |
last post by:
could someone please help me with this bizarre problem -
I've created a swf file at the top of my html page. The
swf file (using Swish) is simply a menu of 5 links to 5
anchor points on the html...
|
by: Cardman |
last post by:
Greetings,
I am trying to solve a problem that has been inflicting my self
created Order Forms for a long time, where the problem is that as I
cannot reproduce this error myself, then it is...
|
by: Retlak |
last post by:
The recommended (on dozens of websites) and effective (works in
Netscape, MSIE, Mozilla, probably others) way to detect if a browser
has Javascript turned off is to put this in the <head>:
...
|
by: Matt |
last post by:
By using javascript, is it possible to disable the REFRESH
functionality (F5 or refresh icon) in a browser?
Please advise. Thanks!!
|
by: Adrienne |
last post by:
I am the first to admit that I know bupkis about javascript, except that
sometimes I need it to do something client side that I can't do server
side.
Anyway, here's my problem:
<input...
|
by: optimistx |
last post by:
Which url in your opinion would be a good or even the best example of
javascript usage in a set of pages at least say 10 or more pages? How to use
css, how to split js-code to files, how to code...
|
by: Joey |
last post by:
Hello,
In my C# asp.net 2.0 application, I have a webform with a button server
control on it. The webform, like most others in the site, subscribes to
a master page. I have determined that the...
|
by: thatsMaBoy |
last post by:
Hi,
I am attempting to display a simple Javascript alert when a webpage
loads. It works on some pages but not on others. For example, the
following code does not produce an alert:
Code in...
|
by: tjc0ol |
last post by:
Hi all,
I made contact page which allows visitors to input their name, email address, phone number, comments and select a comment type by using <select> element in html with javascript. Among the...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| | |