Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript Error on Internet Explorer 6.0

Status
Not open for further replies.

1935

Technical User
May 17, 2002
77
0
0
US
I am getting an "Error on Page" message on a page I am trying to do work on.

Here is the error:

Line: 68
Char: 3
Error: 'htmlSubmit.value' is null or not an object
Code: 0
URL: http//10.0.3.5/ap_sec_ap-client-security-adv_a.htm

What could be causing this message?

Thanks
 
Sounds like your trying to get the value for an form object that doesn't exist. Do you have the source code available for us to look at?
 
Hello,

I can't send you my code but is it something in the code that I should look for?

Thanks
 
Hmm... ok a challange... time for some Q&A..

1) Make sure there is a form element named htmlSubmit.
2) What is htmlSubmit? A button? An input field?

Any possibilty of posting line 68?
 
Hello again,

"htmlSubmit" is a button and when I click this "Apply" button, nothing happens. It is like the page doesn't know what do you from there.
 
3) Are you getting the message when the page loads or when you click the button?
 
4) Is this code placed before the button on the page?
5) Is this code placed inside a function? Or just between script tags?
 
I get it when I load the page. So when I click on the "Apply" button nothing happens.

The "Error on page" shows up when the page loads.

Also how will be able to find line 68 in the code?

Thanks
 
The code is placed inside a function.
 
Since it's in a function when is this function being called? OnLoad? OnClick of the apply button? OnSubmit of the form?
 
The "htmlSubmit" is under "OnAdd", "OnConfigure" and "OnRemove.
 
Ok... that makes no sense to me without seeing what your doing...

But one last question:

Are you setting the value to a variable?

Code:
var btn_value = document.form.htmlSubmit.value;
 
This is a wireless access point that I am configuring and code is already configured. I don't do anything with the code. I guess I should talk to the vendor about the code. I think that a variable is missing from this program when it comes to IE 6.0. I don't have this issue when I open the page on Netscape.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top