masterorb
asked on
_CF_submit_status variable is making my page have yellow exclamation point (JavaScript?) in IE
Hello, I am using IE 7 to browse a page I'm developing. In IE 7, I get the annoying yellow exclamation point at the lower left of page (see image).
In the past I have seen this associated with JavaScript errors. However, in error window, it says problem is that '_CF_submit_status is undefined'
Does anyone know what this variable is and how I can make it defined so the page looks good?
Thank you!
-CF-submit-status.png
In the past I have seen this associated with JavaScript errors. However, in error window, it says problem is that '_CF_submit_status is undefined'
Does anyone know what this variable is and how I can make it defined so the page looks good?
Thank you!
-CF-submit-status.png
Clixk on your IE page with the right mouse button and open the page source view Copy that page html source here for analysis.
ASKER
<script type="text/javascript" src="../../../opt/coldfusi on8/wwwroo t/CFIDE/sc ripts/cffo rm.js"></s cript>
<script type="text/javascript" src="../../../opt/coldfusi on8/wwwroo t/CFIDE/sc ripts/mask s.js"></sc ript>
<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['j_use rname']=tr ue;
</script>
<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['j_pas sword']=tr ue;
</script>
<script type="text/javascript">
<!--
_CF_submit_status["CFForm_ 1"]=null;
_CF_checkCFForm_1 = function(_CF_this)
{
//return false if form submit button has already been pressed once
if( _CF_submit_status[_CF_this .name] == "submitting" ) return false;
//reset on submit
_CF_submit_status[_CF_this .name] = "submitting";
_CF_error_exists = false;
_CF_error_messages = new Array();
_CF_error_fields = new Object();
_CF_FirstErrorField = null;
//form element j_username required check
if( !_CF_hasValue(_CF_this['j_ username'] , "TEXT", false ) )
{
_CF_onError(_CF_this, "j_username", _CF_this['j_username'].val ue, "Enter a username.");
_CF_error_exists = true;
}
//form element j_password required check
if( !_CF_hasValue(_CF_this['j_ password'] , "PASSWORD", false ) )
{
_CF_onError(_CF_this, "j_password", _CF_this['j_password'].val ue, "Enter a password.");
_CF_error_exists = true;
}
//display error messages and return success
if( _CF_error_exists )
{
if( _CF_error_messages.length > 0 )
{
// show alert() message
_CF_onErrorAlert(_CF_error _messages) ;
// set focus to first form error, if the field supports js focus().
if( _CF_this[_CF_FirstErrorFie ld].type == "text" )
{ _CF_this[_CF_FirstErrorFie ld].focus( ); }
_CF_submit_status[_CF_this .name] = null;
}
return false;
}else {
return true;
}
}
//-->
</script>
<title>Omitted</title>
<form name="CFForm_1" id="CFForm_1" action="omitted.cfm" method="post" onsubmit="return _CF_checkCFForm_1(this)">
<TABLE>
<TR>
<TD colspan="2">Please log in.</TD>
</TR>
<TR>
<TD>username:</td>
<TD><input name="j_username" id="j_username" type="text" /></td>
</tr>
<TR>
<TD>password:</td>
<TD><input name="j_password" id="j_password" type="password" /></td>
</tr>
<TR>
<TD colspan="2"><small>You must have cookies enabled to proceed.</small></td>
</tr>
</table>
<input name="submitButton" id="submitButton" type="submit" value="Login" /> <input type='hidden' name='j_username_CFFORMREQ UIRED' value='Enter a username.'>
<input type='hidden' name='j_password_CFFORMREQ UIRED' value='Enter a password.'>
</form>
<script type="text/javascript" src="../../../opt/coldfusi on8/wwwroo t/CFIDE/sc ripts/cffo rm.js"></s cript>
<script type="text/javascript" src="../../../opt/coldfusi on8/wwwroo t/CFIDE/sc ripts/mask s.js"></sc ript>
<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['j_use rname']=tr ue;
</script>
<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['j_pas sword']=tr ue;
</script>
<script type="text/javascript">
<!--
_CF_submit_status["CFForm_ 1"]=null;
_CF_checkCFForm_1 = function(_CF_this)
{
//return false if form submit button has already been pressed once
if( _CF_submit_status[_CF_this .name] == "submitting" ) return false;
//reset on submit
_CF_submit_status[_CF_this .name] = "submitting";
_CF_error_exists = false;
_CF_error_messages = new Array();
_CF_error_fields = new Object();
_CF_FirstErrorField = null;
//form element j_username required check
if( !_CF_hasValue(_CF_this['j_ username'] , "TEXT", false ) )
{
_CF_onError(_CF_this, "j_username", _CF_this['j_username'].val ue, "Enter a username.");
_CF_error_exists = true;
}
//form element j_password required check
if( !_CF_hasValue(_CF_this['j_ password'] , "PASSWORD", false ) )
{
_CF_onError(_CF_this, "j_password", _CF_this['j_password'].val ue, "Enter a password.");
_CF_error_exists = true;
}
//display error messages and return success
if( _CF_error_exists )
{
if( _CF_error_messages.length > 0 )
{
// show alert() message
_CF_onErrorAlert(_CF_error _messages) ;
// set focus to first form error, if the field supports js focus().
if( _CF_this[_CF_FirstErrorFie ld].type == "text" )
{ _CF_this[_CF_FirstErrorFie ld].focus( ); }
_CF_submit_status[_CF_this .name] = null;
}
return false;
}else {
return true;
}
}
//-->
</script>
<title>Omitted</title>
<form name="CFForm_1" id="CFForm_1" action="omitted.cfm" method="post" onsubmit="return _CF_checkCFForm_1(this)">
<TABLE>
<TR>
<TD colspan="2">Please log in.</TD>
</TR>
<TR>
<TD>username:</td>
<TD><input name="j_username" id="j_username" type="text" /></td>
</tr>
<TR>
<TD>password:</td>
<TD><input name="j_password" id="j_password" type="password" /></td>
</tr>
<TR>
<TD colspan="2"><small>You must have cookies enabled to proceed.</small></td>
</tr>
</table>
<input name="submitButton" id="submitButton" type="submit" value="Login" /> <input type='hidden' name='j_username_CFFORMREQ UIRED' value='Enter a username.'>
<input type='hidden' name='j_password_CFFORMREQ UIRED' value='Enter a password.'>
</form>
<script type="text/javascript" src="../../../opt/coldfusi
<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['j_use
</script>
<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['j_pas
</script>
<script type="text/javascript">
<!--
_CF_submit_status["CFForm_
_CF_checkCFForm_1 = function(_CF_this)
{
//return false if form submit button has already been pressed once
if( _CF_submit_status[_CF_this
//reset on submit
_CF_submit_status[_CF_this
_CF_error_exists = false;
_CF_error_messages = new Array();
_CF_error_fields = new Object();
_CF_FirstErrorField = null;
//form element j_username required check
if( !_CF_hasValue(_CF_this['j_
{
_CF_onError(_CF_this, "j_username", _CF_this['j_username'].val
_CF_error_exists = true;
}
//form element j_password required check
if( !_CF_hasValue(_CF_this['j_
{
_CF_onError(_CF_this, "j_password", _CF_this['j_password'].val
_CF_error_exists = true;
}
//display error messages and return success
if( _CF_error_exists )
{
if( _CF_error_messages.length > 0 )
{
// show alert() message
_CF_onErrorAlert(_CF_error
// set focus to first form error, if the field supports js focus().
if( _CF_this[_CF_FirstErrorFie
{ _CF_this[_CF_FirstErrorFie
_CF_submit_status[_CF_this
}
return false;
}else {
return true;
}
}
//-->
</script>
<title>Omitted</title>
<form name="CFForm_1" id="CFForm_1" action="omitted.cfm" method="post" onsubmit="return _CF_checkCFForm_1(this)">
<TABLE>
<TR>
<TD colspan="2">Please log in.</TD>
</TR>
<TR>
<TD>username:</td>
<TD><input name="j_username" id="j_username" type="text" /></td>
</tr>
<TR>
<TD>password:</td>
<TD><input name="j_password" id="j_password" type="password" /></td>
</tr>
<TR>
<TD colspan="2"><small>You must have cookies enabled to proceed.</small></td>
</tr>
</table>
<input name="submitButton" id="submitButton" type="submit" value="Login" /> <input type='hidden' name='j_username_CFFORMREQ
<input type='hidden' name='j_password_CFFORMREQ
</form>
<script type="text/javascript" src="../../../opt/coldfusi
<script type="text/javascript" src="../../../opt/coldfusi
<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['j_use
</script>
<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['j_pas
</script>
<script type="text/javascript">
<!--
_CF_submit_status["CFForm_
_CF_checkCFForm_1 = function(_CF_this)
{
//return false if form submit button has already been pressed once
if( _CF_submit_status[_CF_this
//reset on submit
_CF_submit_status[_CF_this
_CF_error_exists = false;
_CF_error_messages = new Array();
_CF_error_fields = new Object();
_CF_FirstErrorField = null;
//form element j_username required check
if( !_CF_hasValue(_CF_this['j_
{
_CF_onError(_CF_this, "j_username", _CF_this['j_username'].val
_CF_error_exists = true;
}
//form element j_password required check
if( !_CF_hasValue(_CF_this['j_
{
_CF_onError(_CF_this, "j_password", _CF_this['j_password'].val
_CF_error_exists = true;
}
//display error messages and return success
if( _CF_error_exists )
{
if( _CF_error_messages.length > 0 )
{
// show alert() message
_CF_onErrorAlert(_CF_error
// set focus to first form error, if the field supports js focus().
if( _CF_this[_CF_FirstErrorFie
{ _CF_this[_CF_FirstErrorFie
_CF_submit_status[_CF_this
}
return false;
}else {
return true;
}
}
//-->
</script>
<title>Omitted</title>
<form name="CFForm_1" id="CFForm_1" action="omitted.cfm" method="post" onsubmit="return _CF_checkCFForm_1(this)">
<TABLE>
<TR>
<TD colspan="2">Please log in.</TD>
</TR>
<TR>
<TD>username:</td>
<TD><input name="j_username" id="j_username" type="text" /></td>
</tr>
<TR>
<TD>password:</td>
<TD><input name="j_password" id="j_password" type="password" /></td>
</tr>
<TR>
<TD colspan="2"><small>You must have cookies enabled to proceed.</small></td>
</tr>
</table>
<input name="submitButton" id="submitButton" type="submit" value="Login" /> <input type='hidden' name='j_username_CFFORMREQ
<input type='hidden' name='j_password_CFFORMREQ
</form>
ASKER
I'm sorry I pasted that twice and I don't know how to modify comment!
It repeats at
<script type="text/javascript" src="../../../opt/coldfusi on8/wwwroo t/CFIDE/sc ripts/cffo rm.js"></s cript>
<script type="text/javascript" src="../../../opt/coldfusi on8/wwwroo t/CFIDE/sc ripts/mask s.js"></sc ript>
It repeats at
<script type="text/javascript" src="../../../opt/coldfusi
<script type="text/javascript" src="../../../opt/coldfusi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I understand. Fixed it. The problem was that in the CF Administrator, the directory for ScriptSrc Directory was set to the wrong path. When I changed it to "CFIDE/scripts", message went away.
Thank you!
Thank you!