473,730 Members | 4,274 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Element XXX is undefined in FORM But Only Sometimes

4 New Member
I'm supporting a web site (6 web servers and 2 DB servers) that's using ColdFusion MX Version: 6,1,0,83762. We have logging set up where we get email notification of errors. We have gotten 90 of these errors, since Oct. 2007, about undefined form elements, but they are clearly defined on the page. There are 10 different pages that this error has occurred on. And it's happening with users using both IE 6 and IE 7. It’s happening with both <cfform> and <form>. Some are text and some are checkboxes. Some pages post to themselves and some posts to a hidden window. And to top it off, I am unable to duplicate this issue in dev or production (nice, right?). Here are two examples of undefined values:

Expand|Select|Wrap|Line Numbers
  1. <td>$<input type=text name="targprice" value="#Trim(NumberFormat(targprice,'999999.99'))#" tabindex="6" id=numberinput size="9" onFocus="select();" onBlur="doFormatCurrency(this);"></td>
  2.  
  3. <input type="checkbox" name="procs" value="#UrlEncodedFormat(sql)#" #chk#>
I've tried setting the database fields in question to null thinking that CF may be removing these fields because they are null but I'm still unable to reproduce it. I’ve also tried adding single and double quotes to some of the database fields and was unable to reproduce it.

Has anyone experienced this or have any ideas?
Apr 8 '08 #1
8 5975
acoder
16,027 Recognized Expert Moderator MVP
Welcome to bytes.com!

Roughly how many requests are we talking about out of which you've got 90 error pages?

To avoid the errors, you can use cfparam to define default values for them.

Can you show the code where the error actually occurs?
Apr 9 '08 #2
calexander
4 New Member
Looking at the logs on all of the web servers for yesterday, one of the pages in question got 448 requests. If you multiple that by 170 days (Since Oct 25th) that puts it in a rough estimate of 76,000 request. Out of these requests, we 6 errors about one field that was missing, and another 6 errors about a different field that was missing. So this one page is throwing an error roughly .02% of the time. So itís not happening that much per page, but the thing is, its multiple pages doing it as well.

Iíll try using cfpram to the pages. That should do the trick, but it doesnít explain whatís causing the form elements to not get rendered. So it might mask the underlying issue and pass it along to the next form element or another part of the page.

Sorry, but I talked to my project manager and even after I tried to mask the sensitive information on the page, he still didnít feel comfortable with me posting the code. But the form and elements are clearly defined on the page. The only thing that I can see that could possibly cause an issue is some of the elements are being formatted and set by JavaScript. But we require that JavaScript be enabled, and there's just no way a user could make it this far in the application if they didn't have it enabled. In addition, Iíve tried testing locally by setting the elements to null, they are still rendering for me.

I did read a thread that was similar about having multiple pages and multiple forms that could cause possible cause the wrong form to get submitted. And being that the web site uses some of the same form name for different pages, and then this raises an interesting point. But I was still unable to even duplicate this hypothesis.

Any thoughts/Ideas/Comments?
Apr 9 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
I forgot to ask what browser users were using. If it's Internet Explorer, this might help solve your problem.
Apr 10 '08 #4
calexander
4 New Member
We only support IE and we recommend that our client upgrade to IE 7. But as far as I know, all users are using either IE 6 or IE 7. Also the issue is occurring using both IE 6 and IE 7.

I'm trying to get the numbers for the load on the system at the time of these errors to see if there's a relationship there. On a normal day we peak around 70-75 hits per second, but on bad days we'll peak around 120 - 125. On these days we've seen ColdFusion get out of whack and have to restart itself. It seems like jrun starts using up a lot of memory during that time as well. But I just donít see what that has to do with form elements? Who knows it might not have anything to do with it, but I guess itís worth investigating.

We are building a new web server, upgrading it to IIS 6 and looking at upgrading ColdFusion to see if that helps out. In our development environment it seems to be running a lot faster. Hopefully we'll get that deployed in the next week or two without too many issues. This way we can see if the error still occur on the other web servers and stop on the new one (we'll cross our fingers).
Apr 10 '08 #5
acoder
16,027 Recognized Expert Moderator MVP
It is an old technote, so the issue may affect IE7 too.

Anyway, good luck with the new servers.
Apr 10 '08 #6
calexander
4 New Member
So you'd say it's probably an IE issue instead of a CF issue?
Apr 10 '08 #7
acoder
16,027 Recognized Expert Moderator MVP
Possibly. You could try the workaround on the server-side (increase or disable the HTTP keep-alive timeout) as explained in the Microsoft KB article.
Apr 11 '08 #8
D Roger Maves
1 New Member
calexander,

Did you ever find a solution to this problem. I'm facing the same issue and can't figure it out.
Feb 14 '11 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3478
by: Martin O'Rourke | last post by:
All, I am hoping someone might be able to put me out of my misery and let me know if it is possible or not to dervie the name of an element in a form, based on its associated label, only knowing the value of the label, and working on the assumption that the <label for="???" links to the <select id="???" Below is the html that I am working from, which has been dynamically created. Unfortunately I have no control over this at all. I...
1
20698
by: Covad | last post by:
Hi all, For some reason my change() function is only called when the page loads. I'd much rather it gets called when the select changes. Here's the code: window.onload = init; function init() {
1
8326
by: Stanimir Stamenkov | last post by:
Here's an example: <form action="bogus" method="post"> <p> <a href="prev.cgi"><input type="submit" name="prev" value="< Back"></a> <a href="next.cgi"><input type="submit" name="next" value="Next >"></a> </p> </form>
21
3985
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does nothing in IE. I'd be greatful for any assistance. Also, if I will have problems the code on Opera or Safari, I'd appreciate any pointers--I don't have a Mac to test Safari. THanks very much, Michael
6
13374
by: Luke Dalessandro | last post by:
I'm not sure if this is the correct forum for platform specific (Mozilla/Firefox) javascript problems, so just shout and point me to the correct newsgroup if I'm being bad. Here's the deal... html file (generated using .NET 2.0 beta2): <form method="post" action="Test2.aspx" id="form1">
8
1698
by: Doug Lerner | last post by:
I have this snippet of client side code running: var makeField = document.forms; alert("makeFieldName name,length,type=" + makeFieldName + ", " + makeField.name + "," + makeField.length + "," + makeField.type); The alert is just in there for debugging.
8
2292
by: bennett.matthew | last post by:
Hello all, This is probably an elementary (no pun intended) question, but I've spent all afternoon on it and it's driving me crazy. I have a function which dynamically adds to a table. It receives a variable which basically encapsulates this: <div id="tableid"> <tr>
8
13630
by: jesmi | last post by:
my code is: addRecord.cfm <cfinclude template="head.cfm"> <p> <table width="100%" border="0" align="center" cellpadding="2" cellspacing="0"> <tr> <td> <div align="center">
3
4308
by: blackrunner | last post by:
ERROR in my Query?! ERROR: Element GESCHLECHT is undefined in FORM. i think everything ok. Maby somebody can help me here Element GESCHLECHT is undefined in FORM. The error occurred in \anmeldung2.cfm: line 404
0
8943
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8770
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9441
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9300
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9229
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9176
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4542
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4801
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.