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

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

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

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

  • 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

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

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

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

  • Silverlight integration with coldfusion

    Anyone have experiance with silverlight integration with coldfusion. I have a cf server running on ISS. If I install visual studio, how easy can I get my intergration happening?

    I'll just add a 'me too'. Exactly the same with MySQL, CF 9, running FB 4.6 on W7 x64. Silent fail. I can't trace any more into the code as it is in the swc or something. Can anyone else confirm that they can use the auto-generated cfcs, .as's , etc., to create, update or delete records?
    Joe

  • LCDS 3.1 installation with ColdFusion 8

    I have seen a bunch of examples with connecting LCDS 3.1 with ColdFusion 9. We are currently locked into CF8 only and I need to figure out how to properly connect the two. Can someone please point me to some instructions on how to properly configure LCDS 3.1 with ColdFusion 8?
    Thanks,
    John

    Hi, I couldn't get pointbase setup for petstore. It seems like you get farther than I do. Could you help me with this? When I run ant in db.setup, I get the following error:
    setup.pointbase:
    [java] utils.Schema will use these parameters:
    [java] url: jdbc:pointbase:server://localhost/demo
    [java] driver: com.pointbase.jdbc.jdbcUniversalDriver
    [java] dbserver: null
    [java] user: public
    [java] password: public
    [java] SQL file: createPointBaseUser.ddl
    [java] java.sql.SQLException: No suitable driver
    [java] at java.sql.DriverManager.getConnection(DriverManager.java:532)
    [java] at java.sql.DriverManager.getConnection(DriverManager.java:171)
    [java] at utils.Schema.main(Schema.java:112)
    [java] Could not make database connection
    BUILD FAILED
    C:\bea\user_projects\domains\petstore\db.setup\build.xml:9: Java returned: 1

  • OpenScript fails to record AJAX element for load testing

    OpenScript 12.2.0.1 is failing to record AJAX element for load testing.
    After I press a button a text box should appear in another part of the screen.
    What can I do in this case?

    Hi,
    I think your password is encrypted. Try replace password "a99fad1866af01d9375627d5d08d7f1c11ed4d3f6d5d2372d40908884a15b8e6" with your password.
    Or Get output of obfuscate("your password") and replace "a99fad1866af01d9375627d5d08d7f1c11ed4d3f6d5d2372d40908884a15b8e6" with {{@deobfuscate( output of obfuscate("your password") )}}
    Regards,
    Deepu M

  • First Request fails with Error 500.00

    Good morning Pro's!
    Although I have allready installed many ColdFusion release's, I'm running in a very strange problem with my ColdFusion 8.01 32bit on my Windws 2008 R2 64bit (IIS7) server:
    When I'm trying to connect to any ColdFusion Website, the FIRST request fails with an 500.00 Error -> IsapiModule - ExecuteRequestHandler - AboMapperCustom-18532 - ErrorCode: 0x800703e9. When I reload the page, the Website is running until I restart IIS and the same problem starts again.
    AppPools are configured to 32-bit Apps
    Thanks for your help!
    Mätu

    I solved the Problem
    I had to set the UserRights of the IIS_IUSRS to FullAccess for the ColdFusion Dir

  • Jabber call to voice mail fails with fast busy over VPN

    I have an issue that I ran into with CIPC phones over a VPN.  If a CIPC phone called over a VPN and started ringing a phone the call would fail with fast busy at the time the call would be forwarded to voicemail.  I found the issue was when remote the CIPC phone would negotiate the g.729 codec, when forwarded to a voicemail pilot over a SIP trunk set to g.711 the call would fail due to codec missmatch when no transcoders are present.
    So now I am running into what I believe to be the same issue with Jabber, when on premise the calls to voice mail work just fine, but when remote they fail.  I can directly call the voicemail pilot without error, but if calling a phone the call gets fast busy at the point we are forwarded to voicemail.  Even though all my regions are set to talk to all other regions on G.711 and the voicemail SIP trunk is set to G.711, I believe with the new features in CUCM9 that a lower speed codec has been negotiated since the we are going over the VPN, or Jabber has done this as it knows it's over VPN (not sure).  WIth CIPC I could go into the settings and turn off the Optimize for Bandwidth check box and the call would negotiate G.711.  With Jabber I can't find anything that would tell my Jabber client to stay on G.711 and I can only imagine this is a codec missmatch as the following are true.
    1. CIPC and Jabber share the same line
    2. VPN established and CIPC optimised for low bandwidth un-checked
    3. Over the same VPN the CIPC phone can leave a voicemail
    4. Over the same VPN the Jabber client gets fast busy once forwarded to voicemail
    5. Voicemail environment is Exchange-UM over SIP trunk
    6. SIP trunk is assigned a Device Pool, that is assigned to a region that all other regions communicate G.711 to
    7. On CIPC if optimised for low bandwidth is checked I get the exact same issue as I get with the Jabber client (fast busy when forwarded to voicemail)
    Would anyone know what I can do in CUCM 9 to fix this issue, as said no issue when all devices are on premise.  Wondering if there is a service parameter or a way to change the codec selection so the Jabber client attempts to always negotiate G.711.  The correct answer would be to get some PVDM DSP resources and kick up a transcoder in my resource group, and that may be what I talk them into doing if I have no other options.                  

    We have been getting the exact same thing for almost a year now... since switching to FiOS Digital Voice in May of last year!  Every time I call in to report it they 'escalate' the issue but it never gets resolved.  The problem seems to be in the initial connection.  Most of the time it works fine but, several times a month, after I call to get messages and it starts to play the new message it goes dead and I get the busy signal.  I get the same message when I call back:  “I’m sorry – that account is in use at this time.  Please try again later!”  I have even called in with my cell phone and get the same message!  I HAVE EVEN used the Internet to see if I could get my messages and, when I hit Play, I get a pop-up saying: “Your Voice Mail box is currently in being accessed; please try again later.  If the problem continues, please contact our Customer Support Center at 1-888-553-1555. We apologize for any inconvenience.”  This is obviously a software bug that Verizon has no clue on how to troubleshoot OR fix!!!  I wonder how many people have the problem and just don’t bother reporting it because of the hassle?  When it first started happening they destroyed my entire mailbox and I had to re-enter the complete mailbox setup again – 3 times!!!  NEVER let them talk you into that!!!  It’s their problem and they need to fix it!!!!!!!  I wish I could go back to the ‘normal’ voicemail we originally had… they want hundred$ to switch back because I’d be breaking my #$@%^&* contract!  Good luck if you have Verizon………

Maybe you are looking for