|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Error: 'document.frmEntry.txtlflogin' is null or not an object, Code 0
Below neophite status in regards to javascript, but I've coded in the past. In plain english, what is this error message telling me, and how should I proceed in fixing it?
Thanks in advance. |
|
#2
|
||||
|
||||
|
Quote:
It's telling you that 'frmEntry.txtlflogin' is null or not an object. Come on mate, throw us a bone. Lets see the code. |
|
#3
|
|||
|
|||
|
Code paste update
LOL! Here's the part of the code that isn't working, also a link to the testsite area where the code is blowing up on me:
[code] meta name="doc-class" content="Published"> <meta name="doc-rights" content="Burt Investment"> <meta name="doc-publisher" content="Burt Investment"> <meta name="rating" content="SAFE FOR KIDS"> <meta name="description" content="Burt Investment"> <meta name="keywords" content="Burt Investment"> <script language=javascript src=jsValidation.js></script> <script language="javascript" type="text/javascript"> function setfocus() { document.frmEntry.txtlflogin.focus() } function frmlogin() { if(isBlank(document.frmEntry.txtlflogin.value)) { alert('Please enter login id') document.frmEntry.txtlflogin.focus() ; return; } [end code] Here's a link to the page that isn't working: http://www.investforcollege.com/testsite1/www/login.asp Last edited by bobaker : May 3rd, 2005 at 03:10 PM. Reason: Additional (and complete code) for problem |
|
#4
|
||||
|
||||
|
It's because you have some ugly ass code there. You're using
includes, aren't you? Look at your src code. You have 2 body tags, so that's probably screwing with your onLoad call to the set focus function. You really need to sort out your includes so that you are only including the correct data, i.e. not the <body>/<head> tags that you currently do. Or, this might work as an imterim solution: remove the onLoad call you have in the first body tag, and put this in the <script> tag: Code:
window.onload=function()
{
document.frmEntry.txtlflogin.focus();
}
|
|
#5
|
|||
|
|||
|
Thanks. Good to know my developers suck. Needless to say, Im trying to modify some of the things they have done, and this is the starting point. I'll try to implement what you've suggested - gracias.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Error: 'document.frmEntry.txtlflogin' is null or not an object, Code 0 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|