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.

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

  • 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

  • (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!!!! 

  • 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 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 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 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.

  • I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID

    I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID?
    The apple ID was his personal account and can no longer gain access. Im sure I can get purchase recipts from the accounting department if needed. I tried to put the Ipad in restore mode and used itunes to "recover" the ipad but it still wont let me in because he registered the device with the "lost iphone" feature or whatever that is.

    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818
    The Apple ID and Password that was Originally used to Activate the iDevice is required
    If you do not have that information you will not be able to use the Device.

  • I have a smart rg router can a airport capsule be used with it

    can a airport utility be used with a smarter router

    The "smarter" router would need to have an available Ethernet port, and the Time Capsule would need to connect to the router that way permanently.
    If you can provide a few more details about what you are trying to accomplish, we can probably provide a better answer for you.

  • HT204387 Can a wireless mouse be used with the new IPAD?

    Can a wireless mouse be uses with the new iPad?

    While it is true that mice or other pointing device like track pads are not supported on the iPad since there is no real pointer, I use a stylus pen. I know it would probably tip over the iPad if you are standing it up, but it's the closest I've seen. I use the Wacom Bamboo stylus and a Zagg keyboard and the case for the iPad and keyboard. I use the stylus a lot on the Paper app to take notes in meetings and such. Not really a solution but if you are trying to move an insertion point in a document, it does work.

  • Can a C2890A printer be used with a laptop?

    Can a C2890A printer be used with a HP 15-1004dx laptop?

    Hi,
    It's time to buy a new printer.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Can a docking speaker be used with IPod nano 7th generation

    Can a docking speaker be used with IPod nano 7th generation

    It should work if you can plug in the iPod

  • HT1178 Can the time capsule be used with a pc running Windows Vista , 7 or 8 as a backup drive

    Can the time capsule be used with a pc running Windows Vista , 7 or 8 as a backup drive. If so what software do I need to buy?

    Can the time capsule be used with a pc running Windows Vista , 7 or 8 as a backup drive.
    Yes, on XP, Vista and 7. Have not tried 8.
    If so what software do I need to buy?
    Genie Timeline Pro does a very nice job...and it is similar to Apple's Time Machine.  It's not cheap though.  Check with the Genie folks for more info and compatibility with Windows 8.
    Genie Timeline Pro | Overview | Time Machine Backup Software for ...
    Other users may have some other suggestions.

  • Can a Thunderbolt display be used with an iPad?

    Can a Thunderbolt display be used with just an iPad? 
    Hal

    Not that I know of since the iPad does not have a Thunderbolt port and I know of no adapters to go from the iPad digital adapter or component cables to the new display.

Maybe you are looking for

  • Help needed for MySQL 5 database DSN less connection with Oracle reports

    Hi, I am using Oracle Develper Suite and java (J2EE) for my application. I am using MySql 5 as database tool. I want to use Oracle reports of Oracle Develper suite. I have created some reports by first creating system DSN for MySql database and then

  • Photoshop CS6 Crashes on Launch

    Hi! I was using an Adobe free month trial of CS6 Production Premium about one month ago, before I purchased it for keeps. Photoshop was working fine. Ever since registering my CS6, though, whenever I try to launch Photoshop, it gets as far as "Measur

  • Lag after latest update of Premiere CC

    Hello Everyone. I am having large response times from Premiere in few specific situations: (10-15 secs) MultiCam Editing (As i playback and edit in multicam mode when press space, premiere doesn't stop) _      update. problem occurs when i have selec

  • Save to smb-mounted file = kernel panic

    I use a shared network fileserver, with most of my files on a device mounted on smb: Three times now I've encountered kernel panics while saving to a file on that device from BBEdit. Their technical support note (quite rightly I'm sure) that this can

  • Trouble with Flash and SpeakPipe in Safari (Mac)

    I can't get Flash Player to let me "Allow" recording via SpeakPipe in Safari. I have the current version of Yosemite installed on my Mac, I have the most recent version of Flash Player installed, and I can record using SpeakPipe in Chrome, but in Saf