(cf9) Coldfusion.Ajax.submitForm 'does nothing'...

I'm using cffileupload, and calling the following javascript function with the 'onuploadcomplete', here's the cffileupload code:
<cffileupload
    addbuttonlabel = "#request.uiTextBrowse#"
    align = "center"
    bgcolor = "blue"
    clearbuttonlabel = "#request.uiTextClear#"
    deletebuttonlabel = "#request.uiTextDelete#"
    extensionfilter = "#l_fileExt#"
    hideUploadButton = "false"
    maxfileselect = "#session.fileUpload.maxFiles#"
    maxuploadsize = "#session.fileUpload.maxSize#"
    name = "fileUploader"
url = "#homeDir#/member/utilities/files/act_uploadFiles.cfm"
    progressbar = "true"
    stoponerror = "true"
    title = "#session.fileUpload.Title#"
    uploadbuttonlabel = "#request.uiTextUpload#" 
    width = "400"
onerror = "uploadError"
oncomplete = "uploadComplete"
[B]onuploadcomplete = "uploadFinished"[/B]
/>
function uploadFinished(){
alert('in uploadedFinished');
Coldfusion.Ajax.submitForm('filesToUploadForm','#homeDir#/member/utilities/files/act_proc essUploadedFiles.cfm',uploadProcessed, uploadProcessedError);
After checking about abazillion times I'm convinced I've got everything spelled correctly.  The url is correct (checked 'viewsource'). The callback and error javascript functions:
function uploadProcessed(rtnText){
  alert("in uploadPorcessed, text returned: ");
function uploadProcessedError(code, msg)
        alert("Error!!! " + code + ": " + msg);
The upload works fine, files are uploaded.  I know I'm getting into the uploadFinished as I get the alert which is directly in front of the Coldfusion.Ajax.Submit call.  But after that alert, nothing.  No error, nothing.  Any ideas what are some common causes of behavior (or better, 'lack of' behavior) like that?  The '#homeDir#/member/utilities/files/act_processUploadedFiles.cfm' file is in the same directory as the template being processed, but I can't find much about whether the full path is needed.  If I just use 'act_processUploadedFiles.cfm'' I get the same (lack of) behavior.

Hmmmm...
The ColdFusion Fairy visited me last night, and left a working ColdFusion.Ajax.submitForm call under my pillow...
In other words, it works this morning, and I don't know what I did to fix it!!!! 

Similar Messages

  • ColdFusion.Ajax.submitForm error handler problem with AppleWebKit-based browsers

    All-
    When using an AppleWebKit-based browser (i.e. Safari or
    Chrome), the
    message argument of the Coldfusion.Ajax.submitForm error
    handler always contains the string "OK", regardless of what error
    was cfthrown by my CFM form handler.
    Recall that the signature for the error handler is this:
    MyFormErrorHandler = function( code, message )
    In other browsers (i.e. IE or Firefox), the
    message argument of the error handler properly contains the
    message that was cfthrown by my form handler.
    Can anyone offer any guidance for this problem? Thanks in
    advance for your help.
    -Josh

    I was testing on IE8, Windows7 Starter.  I don't have IE6 available to test on.  Can test on IE7 a bit later on, but I have to fart-arse around with a VM to get it ready, so I'll do that after work.
    I tested multiple submits both via clicking between the tabs within one main "request" as well as multiple entire requests (like via refreshing the whole browser window).  I had no problems.
    I think you're being quite optimistic ot expect AJAX stuff to work reliably on IE6.  IE6 crashes.  That's what it's most famous for doing.  One needs to expect crashes if one pushes it (push it anywhere than out the window, that is).  And your client company's IT dept should be lined up against a wall and shot for still running it.  That's professionally negligent IMO.  But... you probably don't need to be told that.
    Adam

  • ColdFusion.Ajax.submitForm no longer works in IE10? any solutions

    I have the following code, it works fine in IE8 & IE9 but stopped working in IE10, does anyone know why? the alert is displayed and it re-loads the page...it just doens't call the Ajax call..any help need to get this working again ASAP! Thanks.
    function submitaddsitemed(){
    alert('test');
    ColdFusion.Ajax.submitForm('frm_testmed','test_add.cfm',callback,errorHandler,false);
        location.reload();

    I have seen a similar and possibly related issue with IE10. I don't use ColdFusion's ajax routines and instead use jquery but I have found that using ajax with a POST fails on some IE10 users whereas GET works all the time. Like your symptom, no alert or error of any kind displayed or logged. It does not fail for all IE10 users, only some which leads me to believe there is a security setting somewhere in IE to not allow ajax POST requests but I have not spent enough time to determine the issue -- I cannot duplicate the issue with my hands on IE10 testing.

  • ColdFusion.Ajax.submitForm Return a Value

    The below code. I am trying is to pass a value to a CFC and
    return a 0 or as 1.
    But the response back with Asynch ColdFusion.Ajax.submitForm
    is returning a bunch of javascript code and other stuff. All I am
    expecting is just one value of either a 0 or 1. Can some one look
    at the below and tell me what I am doing wrong. This form submits
    to itself then I validate an input form. If its there, I pass the
    value to cfc

    Obviously it looks like you can not have <cfsetting
    enablecfoutputonly="yes"> set in a cfm page that has Bind values
    to a CFC, the behavior is unpredictable. I had to create an action
    page to do the Asynch submit now it is returning a blank popup OK
    form. The problem is still there and not returning any value
    atall.

  • Richtext fails with coldfusion.ajax.submitForm in IE

    Hi all,
    got a cfform containing a cftextarea with richtext = true, invoking the FCKeditor.  The form is inside a cflayoutarea and to maintain the page view I'm doing the calling forumAddPost to do the submission using coldfusion.ajax.submitform, processing it through a CFC method....shown below.
    The CFC simply writes to the database and once returned, the handler navigates the layoutarea to the mainpage.
    function forumAddPost() {
    ColdFusion.Ajax.submitForm('formnewpost', 'groups.cfc?method=forumNewPosts', forumAddPostHandler, errorHandler);
    function forumAddPostHandler(result) {
    ColdFusion.navigate('forum_showtopics_search.cfm?subject_id=<cfoutput>#group.forumid#</cf output>&searchtext=', 'MOD2');
    function errorHandler(code, msg)
    alert('error '+code+': '+msg);
    This code works fine in Chrome or Firefox, but in IE it fails and closes IE down.  If I remove the richtext option the posting works fine, so I've established it's something to do with the FCKeditor and the ajax posting method, but can't work out what?!
    Anyone have any ideas?
    Cheers
    Phil

    I was testing on IE8, Windows7 Starter.  I don't have IE6 available to test on.  Can test on IE7 a bit later on, but I have to fart-arse around with a VM to get it ready, so I'll do that after work.
    I tested multiple submits both via clicking between the tabs within one main "request" as well as multiple entire requests (like via refreshing the whole browser window).  I had no problems.
    I think you're being quite optimistic ot expect AJAX stuff to work reliably on IE6.  IE6 crashes.  That's what it's most famous for doing.  One needs to expect crashes if one pushes it (push it anywhere than out the window, that is).  And your client company's IT dept should be lined up against a wall and shot for still running it.  That's professionally negligent IMO.  But... you probably don't need to be told that.
    Adam

  • Can ColdFusion.Ajax.submitForm be used with a CF Flash Form ?

    Hello,
    Adobe has provided a great example of how
    ColdFusion.Ajax.submitForm can be used to submit forms without
    refreshing or redirecting the page (
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=JavaScriptFcns_01.html),
    but does anyone know whether it can be used with flash forms ?
    The attached code from the example compiles and runs
    perfectly when the form has not been defined as flash, but when you
    change <cfform name="myform"> to <cfform name="myform"
    format="flash">, submitting produces the following error, likely
    because it no longer recognizes the form name/ID:
    Error!!! -1: ColdFusion.Ajax.submitForm: Form not found, form
    id: myform
    Does anyone know how to integrate this feature into a flash
    form ?
    Thanks !
    Lucien

    Obviously it looks like you can not have <cfsetting
    enablecfoutputonly="yes"> set in a cfm page that has Bind values
    to a CFC, the behavior is unpredictable. I had to create an action
    page to do the Asynch submit now it is returning a blank popup OK
    form. The problem is still there and not returning any value
    atall.

  • CF8 / IIS7 / ColdFusion.Ajax.submitForm errorhandler not working

    We make use of ColdFusion.Ajax.submitForm to do the login for our site. If the user/password provided is not found I do a cfthrow with a custom
    error message that gets picked up by the errorHandler and updates the screen with the message "User not found". This worked fine till we upgraded
    the server to IIS7. Now all I get is the "Internal Server Error."
    I have googled the issue and searched these forums and found various threads about changing the errorMode or setting the existingResponse to passthrough in the IIS7 config. I have tried these and still not gotten anything to work. The only change I get is if I update the coldfusion config to
    not pass in the HTTP error codes but in that case my error message simply becomes "OK". Not too helpful of a message.
    My question is. Has anyone else run into these issues on IIS7 with Coldfusion 8 and if so, how did you configure the server to stop blocking the custom
    errors? Any help would be great.
    Thanks in advance.

    See, Joecopely's reply in this thread, that might resolve your issue,
    http://forums.adobe.com/thread/532051?tstart=30
    HTH

  • ColdFusion.Ajax.submitForm ResultHandler Question

    I am developing an CF Ajax based solution in which I use
    ColdFusion.Ajax.submitForm to pass form values to a CFC for
    processing via Java Script. My question is related to the Java
    Script resultHandler and whether or not there is an easy way to
    return the results from the CFC to handler.
    My Java Script looks like this...
    function InsertRec() {
    ColdFusion.Ajax.submitForm('MyForm',
    'service.cfc?method=InsertRec', resultInsertHandler,
    resultErrorHandler);
    My CFC looks like this.. (condensed)
    <cffunction name="insertRec" access="remote" output="no"
    returntype="numeric">
    <cfargument name="NAME">
    <cfargument name="Phone">
    <cfquery name="recInsert" datasource="#request.DS#">
    <cfset NEW_NUMBER = updatedNum( )> <-- Getting new #
    from another table via CFC
    INSERT INTO MYTABLE
    (NUMBER, NAME, PHONE)
    Values (' #NEW_NUMBER# ' , ' #ARGUMENTS.NAME# ' , '
    #ARGUMENTS.PHONE# ' )
    </cfquery>
    <cfreturn NEW_NUMBER>
    </cffunction>
    What I'm trying to do is return the value of NEW_NUMBER from
    the CFC back to resultInsertHandler so I can use it in a Java
    Script alert msg. Any ideas or thoughts would be greatly
    appreciated.
    Regards
    Martin Franklin

    MMFranklin wrote:
    > What I'm trying to do is return the value of NEW_NUMBER
    from the CFC back to
    > resultInsertHandler so I can use it in a Java Script
    alert msg. Any ideas or
    > thoughts would be greatly appreciated.
    Something like this I would presume.
    function resultInsertHandler(returnMsg)
    alert(returnMsg);

  • Coldfusion.ajax.submitform httpMethod

    Hello,
    Any one has an
    coldfusion.ajax.submitform httpMethod post example? I am
    trying to submit all the form elements as form variables instead of
    url variables.
    Please a working example will help alot.
    Thanks
    EZ

    have you looked in the cfml reference manual?
    download from adobe.com if you do not have one.
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Ajax.submitform broken in Safari?

    I receive an "element ... undefined in form... " error when
    using ColdFusion.Ajax.submitForm on a safari browser. This same
    code works just fine on IE. Is anyone else having this problem?
    Thanks

    Welcome to Apple Discussions
    The "creative" e-mail approach has yet to come to Safari. In your case, its availability is entirely dependent on Yahoo or GMail. Yahoo says it expects to bring the service to Safari in 2007. In the meantime, other browsers such as Firefox represent the only alternative for using this feature.

  • I am trying to install a language disc. I clicked on the installer. It ran for a long time without installing. I click stop installing and it says it is stopping but is doing nothing. I am unable to eject the disc or stop anything.

    I am trying to install a Portugese language disc. I clicked on the installer icon and it said it was installing, but it ran forever without doing anything. I clicked "stop installing" and it says "stopping", but it is doing nothing. I am unable to eject the disc or do anything because it says an operation is in progress.

    Please provide some info on the disc, where it comes from, who made it, etc.  Also tell us what version of OS X you are running.

  • I upgraded from 3.6.13 to Beta 4.0 and now Firefox will not open at all I tried to uninstall to start again but it will not uninstall either it does nothing.

    I uninstalled Beta 4 and re-installed 3.6.13 now Firefox will not open at all I tried to uninstall to start again but it will not uninstall either it does nothing, I have been using Firefox for a long time but cannot resolve this problem can anyone help and give me a solution please. As I use Firefox as my web browser it is very frustrating.
    The fact it will not uninstall appears to be something completely new as nobody I know who uses Firefox has ever encountered this in the past.

    Did you check your security software (firewall)?
    A possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See [[Server not found]] and [[Firewalls]] and http://kb.mozillazine.org/Firewalls
    If necessary then also see:
    * http://kb.mozillazine.org/Browser_will_not_start_up
    * http://kb.mozillazine.org/Error_loading_websites

  • Trying to do a software update, but my macbook pro does nothing after it prompts me to restart

    I am trying to do a software update on my Macbook Pro so I can update the new iTunes so I can start using my new iPod. Every time I go through the process of the computer searching for updates and confirming there are software updates, then being prompted to restart my computer, it does nothing. After my Macbook Pro turns on again, nothing pops up and I go into my information and it says I still have the old software. Nothing is prompting me to do the update after I restart my computer, or beforehand for that matter. HELP.

    Are you really still running 10.6.2? If Software Update isn't working for you, you may want to try using the 10.6.8 combo update found here -->> http://support.apple.com/kb/DL1399.
    If that doesn't work, call back...
    Clinton

  • Why does my itunes crash after start up with an "APPCRASH" error every time i open it?! I have been trying to fix this for weeks but all i can do it re-install it every other day which does nothing!

    Why does my itunes crash after start up with an "APPCRASH" error every time i open it?! I have been trying to fix this for weeks but all i can do it re-install it every other day which does nothing! I am desperate to get access to my itunes to get music on my phone and all of this just makes me want me to sell my iphone since there is no other way to add music to my phone. If things go get sorted soon you can say goodbye to my support.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • My 4S has stopped ringing. Voicemail's disabled but if you call me, you'll hear it ring your end but it does nothing at mine and freezes if I make a call. Texts are not being delivered or coming through delayed. Ringer is on, tone enabled - help!

    My iPhone 4S has stopped ringing altogether. Voicemail is disabled but if you call me, you'll hear it ringing at your end but it does nothing my end and freezes in the phone app if I make a call (doesn't ring or connect and doesn't freeze the phone, just the calling part). Texts are not being delivered or coming through delayed. Ringer is on, tone enabled - help!
    I've disabled roaming so it only runs on wifi (this after getting a £4k phone bill...) and I can use Skype, Viber and WhatsApp with no problem at all.
    Would really appreciate any help at all!
    Many thanks.

    Hi there - am with Orange and they said nothing wrong with account and service running normally.  They said if they had cut me off I would've received a text (debatable with current message receiving situation!) and when I called out it would say 'calls from this number are barred'.  Also if you called me it would say something similar.  But it doesn't, it will ring and ring until it rings off but nothing happens at all on my handset. Not even a missed call notification.  If I call out, it will display that it is calling the number but that's it.  If I cancel the call it will constantly display 'ending call'.  If I come out of the phone and go to another app then revist phone it will start calling that last dialled number - without ever getting as far as ringing or connecting.

Maybe you are looking for

  • 3rd gen. nano fails Device Sync in Diagnostic Tests - Nike+ Run won't sync

    I have not been having any trouble with my nano, iPhone 3G, or my wife's Touch until three days ago. Then, after a run, I tried to sync the nano (to upload my workout data) and it would not work. The iPod shows the workout and iTunes shows the workou

  • Safari Help

    Hello guys i am rather new to mac and I'm facing my first problem with Safari: My son pulled the plug off while I was browsing. Since then, Safari just doesn't start, it quits just after clicking on it. It appears that "Safari quit unexpectedly windo

  • Diff values are displaying in VAT report_S_ALR_87012357

    Hi experts, Our user is trying for VAT report in t. code S_ALR_87012357, different values are displaying in Tax base amount column and Deduct Input Tax as Wrong Report: Tax base amount    : 303.40 Deduct. Input Tax    : 19280 Gross amount           

  • Unable to connect to Forms and Reports

    Hi, I'm unable to connect to Forms and Reports. I have done the following installations. 1) First I have installed oracle 9i database in C:\oracle. oracle schema is devlp I was able to connect to database at scott/tiger@devlp 2) I have downloaded ora

  • How to turn off my phone app witout havin da phone cause it gone 2 get fixed

    How to turn off my find my phone app witout havin my phone cause its gone 2 get fixed