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

Similar Messages

  • Error handling problem with outbound idoc status 02 and  XML HTTP Port

    I set up an ALE scenario to send master data out of SAP via an XML HTTP port.  All goes well until the idoc receives error 02. 
    It looks like idocs in this error status with the use of an XML HTTP port can not be reprocessed via the standard SAP techniques.  Program RBDAGAIN takes them out of the list for reprocessing (even though the connection is back up and running).
    Is there any solution to still use the standard ALE error handling ?

    Hi Karin,
    Looks like based on note 701597, you can only reprocess these idocs manually via a workitem.  I qouted the relevant text below:
    3. Error handling with status '02':
    An HTTP IDoc in status '02' should not automatically be sent once again.
    Up to now, the RBDAGAIN report was used to resend incorrect IDocs.
    However, this report was adjusted and now deletes all IDocs in status 02
    to be routed to a HTTP port from the list of selected IDocs. IDocs to a
    HTTP port in status '02' should only be sent manually via a work item.
    Regards:
    Rex

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

  • (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);

  • I am not able to open iCloud from pc, error is "problem with the server". what should I do?

    I am not able to open iCloud from pc, error is "problem with the server". what should I do?

    Go to Settings>General>Restrictions>Accounts (near the bottom) and set this to Allow Changes.  You will then be able to access Settings>iCloud again.

  • Trying to upgrade to 10.6 so my iPhone could synch...I'm getting this error message "Problem with this Windows (XP) Installer package.  A program required for this install to complete could not be run."  Any ideas?

    I had iTunes 10.2.1.1 but needed to upgrade to 10.6 so my iPhone could synch...I'm getting this error message "Problem with this Windows (XP) Installer package.  A program required for this install to complete could not be run."  Any ideas?

    This has been fixed.  Answer is that I needed to go to "Apple Software Update" and repair it.  (From my Control Panel).

  • Error "DATABASE PROBLEMS WITH TABLE MC11VA0HDRSETUP"

    Hi Friends,
    I got the following message when am trying to delete the setup tables.
    " Error DATABASE PROBLEMS WITH TABLE MC11VA0HDRSETUP"
    Am trying to delete the setup tables for application '11', but it gives me the above error. I have gone throug similar threads but it did not solve my issue.
    Please can anyone provide a solution.
    system detials:
    R/3 release    - 4.6c
    PI                 - 2004_1_46c
    SAP_BW      - 30B
    PI_BASIS     - 2003_1_620
    Any information will be appreciated
    Thanks,
    VBR

    Hi Kishor,
    Thanks for your reply.
    I have gone through that SAP Note 456102 and it was not of much help for our issue because we are ahead of PI that is mentioned in the note.
    Can you send your email id so that i can forward the error screenshots.
    Regards,
    VBR

  • Error out problems with measuring frequency VI

    I am having some error out problems with measure frequency VI. The instructions is change error out from indicator to control but does not work. Anyone can help? The VI is attached
    Attachments:
    Measure Frequency VI error.vi ‏27 KB

    This VI does not have an error out. Obviously, you replaced a subVI that did have an error out with this one, otherwise you would not have been able to create this wire.
    Simply remove the wire or save the subVI with another name then modify it to have the error out that you are looking for.
    Hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How can I synch my iTunes?  If often says unknown error or problem with application?

    I have problems synching my iPhones 4s with my MAcbook pro (10.8.2) and iTunes (11.0.1).  I can connect my iphone 4s(6.0.1) directly to my macbook pro or via the same network.  I can start the synch via itunes or my phone.  20% of the time it works.  If often says unknown error or problem with application. The software is up to date. What can I try?  Thank you

    The iphone/ipod is NOT a storage/backup device.  Not maintaining a backup copy is a big mistake.
    You can transfer itunes purchases from your iphone/ipod to your computer:
    Authorize your computer for all accounts and then click  File>Transfer Purchases

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

Maybe you are looking for