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.
Similar Messages
-
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 -
My photoshop no longer works with lion, any solutions?
my photoshop and microsoft office no longer works since i upgraded to lion, and suggestions plz?
Lion doesn't support Rosetta PPC based programs, you either need to FIRST check with your third party software before upgrading a operating system or have a easy means to revert to a earlier OS version.
You can look though my extensive post here and find various ways to go back to Snow etc.
https://discussions.apple.com/message/16276201#16276201 -
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.
-JoshI 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!!!! -
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
PhilI 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 !
LucienObviously 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 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
EZhave 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/ -
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 FranklinMMFranklin 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 cfcObviously 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. -
my very new iphone5s will not turn on its as if the button no longer works is there any additonal swiping actions or hidden buttons i may have triggered accidently it is barely 2 weeks old and has no obvious signs of wear............not impressed APPLE
im hoping that by holding both the power and circle buttons it will spring back to life ..........somtimes apple you are too clever with your secert hidden butttons switches
-
my itunes account is on a computer that no longer works...any way to get at my account on a new computer?
You can authorize five computers with your account.
-
my 2nd Generation Ipod touch lock button is no longer working is there any other way to lock my screen?
Just go to Settings>General>Autolock and set a time period.
-
Hello .. in my personal address book - I can no longer drag a name from personal address book to a sub address list/book .. it will no longer work, are there any known issues,please ?
thank you in advanceI suspect that your Personal Address Book file is corrupted and won't save any changes. As a check, what happens if you double-click the List in question and add the new member by typing it in? And then if you close and reopen Thunderbird?
-
After update my iPad 2 with IOS 6.0.1 the botton mute and sound + doesn't work...any solution for this??? Thanks
There are numerous reports of this issue happening on iPhones. It may be a glitch that will need a new update. Some find that a full shut-down and restart fixes that problem, but not always.
Maybe you are looking for
-
I recently had a new hard drive installed on my laptop; this hard drive has the Windows 7 OS on it. At the same time, I had my old hard drive mounted in an SATB enclosure so that I could use it as an external USB drive. [I stupidly did not export my
-
My iPod isn't being detected by my PC
I've been wanting to restore my iPod but my computer won't detect the device. So I have tried DFU mode and recovery mode but my PC just doesn't seem to detect the device even being there. I really don't know what the problem is... and I've tried the
-
Aperture First Aid won't launch
Had a USB hub fail while my Aperture library was open, which evidently caused some database corruption. Read up on how to use the Aperture 3 First Aid function to repair...but the thing _will not launch_. Every time I try and launch Aperture (whether
-
SQ01/SQVI SAP QUERY for PIR Planned Independent requirement
I wanna make a query to see all the PIR with respect to a plant , material , date etc .. I tried with table PBIM and PBID , but could not get a success. Can you tell me the table names to be included to make this query along with the links. Thanks
-
I'm trying to issue a SELECT ... FROM ... FOR UPDATE, and under specific verified conditions runs an UPDATE (where the current is positioned!). The error code I get is: ORA-01002: Fetch out of sequence. Here you are my code: /////////////////////STAR