Skip to main content
Participant
June 13, 2008
Question

setSubmitClicked error

  • June 13, 2008
  • 2 replies
  • 663 views
I have an error that is way over my head in trying to debug it. It only happens in live environment on a ChrystalTech shared server. Everything works fine on my development edition server. Both servers are same version (8.1)

I have a CFForm that contains cflayout tabs. When the site went live all was working fine but since then (nothing has changed in my code) tabs are gone and the page just scrolls down. Firebug reports the following error right after the call that returns the page:

ColdFusion.setSubmitClicked is not a function
(no name)()cfajax.js (line 990)
fire()cfajax.js (line 1084)
_2c0(XMLHttpRequest, div#mainedit)cfajax.js (line 885)
callback(XMLHttpRequest, function(), div#mainedit)cfajax.js (line 172)
onreadystatechange()cfajax.js (line 125)
[Break on this error] $C.handleError(_2c8,"ajax.replacehtml.jserror","http",[_2c7.id,ex]);

Here is what I think is the relevant portion of the response as reported by Firebug:


<script type="text/javascript">
ColdFusion.Ajax.checkImportedTag('CFFORM');
</script>

<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['CoachFname']=true;
</script>

<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['CoachLname']=true;
</script>

<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['CoachBirthday']=true;
</script>

<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['CoachEmail']=true;
</script>

<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['CoachCell']=true;
</script>

<script type="text/javascript">
var _cf_SUBMIT_init_1213386677126=function()
{
ColdFusion.setSubmitClicked('form_Coach','submit');
};ColdFusion.Event.registerOnLoad(_cf_SUBMIT_init_1213386677126,{_cf_containerId:'mainedit'});
</script>

Apparently this has something to do with CFFORM onSubmit validation and some code CF generates but then complains about.

Validation does not seem to be affected by this, only the tab layout is broken.

What could be the problem?
    This topic has been closed for replies.

    2 replies

    Participant
    November 6, 2008
    I'm having the same problem and one of the differences I'm finding between my production and my development server, is the version of the Ext JS framework: check /CFIDE/scripts/ajax/ext/ext-core.js on both of your servers. My two servers say 1.0 and 1.1.1. Unfortunately, both CF versions are identical: 8,0,1,195765.
    Inspiring
    June 13, 2008
    did you use <cfajaximport tags="cfform,cflayout"> in your code?
    Participant
    June 14, 2008
    Yes I did.
    Participant
    June 27, 2008
    anyone from adobe could elaborate? There are similar problems reported at Crystaltech using other ajax functionality.