JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 3rd, 2005, 02:22 PM
bobaker bobaker is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 4 bobaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 36 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old May 3rd, 2005, 02:53 PM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: I have emerged from the place of spells and fairies
Posts: 97 ChiefWigs1982 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 17 h 35 m 12 sec
Reputation Power: 4
Quote:
Originally Posted by bobaker
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.


It's telling you that 'frmEntry.txtlflogin' is null or not an object.

Come on mate, throw us a bone. Lets see the code.

Reply With Quote
  #3  
Old May 3rd, 2005, 03:05 PM
bobaker bobaker is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 4 bobaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 36 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old May 3rd, 2005, 03:22 PM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: I have emerged from the place of spells and fairies
Posts: 97 ChiefWigs1982 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 17 h 35 m 12 sec
Reputation Power: 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();
}
That might not work either cos of the dodgy includes though.

Reply With Quote
  #5  
Old May 3rd, 2005, 03:26 PM
bobaker bobaker is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 4 bobaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 36 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Error: 'document.frmEntry.txtlflogin' is null or not an object, Code 0


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT