I am stumped.....
I have to admit, I'm pretty new at all this. This is what I have so far, but it's not liking my code AT ALL. I would really appreciate a debugger right about now.
Anyway, I'm going to keep playing with this, but just in case I'm WAY off, I thought you would be able to tell me. I really want to figure this out, but if you see I'm going in the wrong direction - I can rethink this!!!
It keeps telling me I have a syntax error on my "document.acct_info.A_ACCT_GROUP.focus();" line. Also, when I try using it, it says object expected.
Here's some code:
(testIt.cfm)
<CFOUTPUT>
<SCRIPT language="JavaScript">
function valAcctGrp(AG)
{
var AcctGroup = AG.value.toUpperCase();
<IMG SRC="
if (image.complete == true)
{
if (image.height == "2"

{
alert('Invalid Account Group.');
document.acct_info.A_ACCT_GROUP.focus();
}
else
{
document.acct_info.a_quick_addr.focus();
}
}
}
</SCRIPT>
</CFOUTPUT>
...
<form name="acct_info" action="">
<table>
<tr><td>Account Group: </td>
<td><CFOUTPUT><input type="Text" name="A_ACCT_GROUP" value="" onchange="valAcctGrp(this.value)"></CFOUTPUT></td>
</tr>
</table>
</form>
(checkIt.cfm)
<CFIF isdefined("AcctGroup"

>
<CFSET ACCT_GROUP = #AcctGroup#>
<CFELSE>
<CFSET ACCT_GROUP = "">
</CFIF>
<CFSCRIPT>
<CFQUERY NAME="GetAcctGroup" DATASOURCE="#session.ORA_NAME#">
SELECT 'x'
FROM mk_acct_grp
WHERE coy="#session.G_COY#"
AND acct_group="#ACCT_GROUP#"
</CFQUERY>
<CFOUTPUT query = "GetAcctGroup">
<CFIF GetAcctGroup.x eq 'x'>
<CFCONTENT TYPE="image/GIF" file="
<CFELSE>
<CFCONTENT TYPE="image/GIF" file="
</CFIF>
</CFOUTPUT>
</CFSCRIPT>
Well, hope you're having a better day than me!!!
clueless,
hacole