Questions
Recently active
I'm a little new to using cfinput. I always use HTML input. I have radio buttons for gender. When the form is submitted, the value is entered into a db column 1 or 2: <cfinput name="g" id="g" type="radio" value="1" required="yes" /> F<cfinput name="g" id="g" type="radio" value="2" /> I want to check one by default depending on the value stored in the db column when the form loads. I'm able to use a CFIF statement to check one by default in the HTML radio like: <cfif rs.g eq 1>checked="true"</cfif> but you're not allowed to have cfif in a single cfinput tag. How do I do it.
Got a massege saying Form is meant for website developer for debuggin purposes. Error occurred while processing request of life insurance through Acuuquote. Please help me. Thank you.
<tr><cfoutput query="myDirectory" maxrows="1"> <td align="center"><a href="#Name#"> <cfimage source="#Name#" name="Name1"> <cfset ImageScaleToFit(Name,200,"")><!--- ---><img src="#Name#" /><br />#Name#</a></td> <cfif myDirectory.currentRow MOD 3 EQ 0></tr><tr></cfif></cfoutput>Whenever I try the code above I get the following error "Unable to cast an object of type java.lang.String to Image. "How can I use this tag and resize images that are stored in the variable Name and get them to display correctly? HELP!
Hi,when i click on the radio button, the text box for fname is showed. If i don't enter anything into text box then hit submit, the pop up will display with code for validate below. When i hit OK to go back,the text box is gone but the radio button still checked. How can i keep the text box stays on the page?<!---form.cfm---><cfform name="myform" action="action.cfm"><cfinput type="radio" name="approve" value="1" onclick="show('d0','d1')" /> <div id="d0"> <cfinput type="text" name="fname"> </div> <cfinput type="submit" name="submit" value="Add"></cfform><!---action.cfm---><cfif isDefined("form.submit")> <cfif Not Len(Trim(form.fname))> <script type="text/javascript"> alert("Name can not be blank."); history.back(-1); &nbs
Installing CF10, in Configuration and Settings Migration Wizard, in browserhttp://127.0.0.1/CFIDE/administrator/enter.cfm, ColdFusion has been successfully installed. This wizard will guide you through the remaining server configuration steps and, if applicable, migrate settings from a previous version of ColdFusion.To guarantee the security of your server, please enter your ColdFusion Administrator password.- getting error: Invalid Password. It won't take the password I provided in previous "Set Admin password" screen. Help?
Hello, everyone. I'm working on a script that will delete specific SOLR collections, re-create them, index them, then optimize them. The delete portion succeeds. The create, however, is failing with a permissions issue: access denied ("java.io.FilePermission" "X:\www\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\collections\xyz" "read") What the heck is it trying to "read" when creating a collection with a CFCOLLECTION tag?? <cfcollection action="create" collection="xyz" categories="no" path="X:\www\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\collections\xyz" language="English" engine="solr">It runs fine if sandbox is disabled. This is not an option. Can anyone, please, help fix this? Sandbox gives the CF account Read,Write,Execute on EVERYTHING.^_^
RE: <a href="http://www.adobe.com/support/security/advisories/apsa13-03.html">http://www.adobe.com/support/security/advisories/apsa13-03.html</a> Open letter to Adobe… Adobe, Please assign someone to trend all the ColdFusion vulnerabilities for the last five years. I am certain you'll find that a vast majority of them revolve around the CFIDE directory. Idea: Instead of endlessly patching the CFIDE modules every time a vulnerability is found or exploited, if you were to eliminate the CFIDE directory ColdFusion would probably be one of the more secure web platforms on the market. Just a thought. For users of ColdFusion, my advice is to remove the CFIDE virtual directory from all your public facing sites. If your site requires the CFIDE/scripts directory, point the CFIDE virtual directory to an empty directory and then create a "scripts" virtual directory under it and point it to the original /CFIDE/scripts location. Poof -- probably 80% or more of t
I am new to coldfusion. I am using coldfusion-10. I am trying to upload multiple image files using cffileupload. I am able to upload files as expected. But I would like to get the metadata before uploading and get the clientFileDirectory of the uploaded files. PFB codefileupload.cfm<cffileupload name = "uploadDemo" url="uploadSelectedFiles.cfm" progressbar="true" addButtonLabel = "Select File(s)" clearButtonLabel = "Clear" width="500" height="400" title="Choose Files To Upload" maxUploadSize="1" maxFileSelect="10" extensionfilter="*.gif,*.jpg,*.png,*.doc" uploadButtonLabel="Upload" onComplete="previewfile" > uploadSelectedFiles.cfm<cffile action="uploadall" destination="#expandpath('.')#" nameconflict="makeUnique" result="uploadResult" /> <cfoutput>try</cfoutput> <cfdump var="#cffile#"> But cffile.clientDirectory throws an Status code :500 (una
Is there a way I can apply CF 10 mandatory update without using the root account?I don't have access to root account in my environment.
Hi,i am uisng CF7 and develope the page with have cfmail send the url to customer but i don't want them to see the ID from the link. Is there the way to hash, encode, decode for not letting them see an ID but when they click on the link, the ID will propertly decode and retireve the record from the table?thankskt
Hi,I want pass a variable for number part in Dateadd() funtion instead of hardcoding it.Eg:<cfset var a = 180>now i want to pass this value of a into "number" part of dateadd function.DateAdd("d", number, now())How can be this done..?
<cfstoredproc datasource="MyDSN" procedure = "MySP"> <cfprocparam value = "1" CFSQLTYPE = "cf_sql_numeric"> </cfstoredproc>for my report query using a stored procedure need parameter.I got Variable REPORTQUERY is undefined.I notice that the default name for query report is ReportQuery, but CFSTOREDPROC doex not have name property.I am not sure how I can assign the variable using a stored procedure.Your help and information is great appreciated,Regards,Iccsi,
I use CFQUERY to run a query in my cfr file which created by Report Builder.I tried to use CFSET and CFOUTPUT to assign a label caption from CFQUERY.It seems does not work,Can any on advise me how to set a label caption from a query data source?Your help and information is great appreciated,Regards,Souris,
I got following error message The CFML compiler was processing: A cfprocparam tag beginning on line 275, column 7. A cfprocparam tag beginning on line 275, column 7.when I have followignn code query for my report.<cfstoredproc datasource="MyDSN" procedure = "MySP"> <cfprocparam value = "#ReportQuery.MyID#", CFSQLTYPE = "cf_sql_numeric"> </cfstoredproc>I tried to create a report query using a stored procedure and pass parameter.I would like to know is it correct way to do it or I am on the wrong track.Your help and information is great appreciated,Regards,Iccsi
I have a stored procedure from MS SQL backend and the result heading is WeekResult1, WeekResult2, WeekResult3... etc until Week20Result for report datasource.I would like to assign the heading at run time to May/01/2013, May/08/2013, May/15/2013 ... etc base on user enter date range.I have folloing code on report before export event<cfstoredProcdatatsource = "MySource"procedure = "MyColumnHeading"<cfprocparam cfsqltype="cf_sql_date" value="#StartDate#"><cfprocparam cfsqltype="cf_sql_date" value="#EndDate#"><cfprocparam cfsqltype="cf_sql_date" value="#StartDate#"><cfprocparam cfsqltype="cf_sql_numeric" value="#DateDiff#"><cfprocparam cfsqltype="cf_sql_numeric" value="#DateDiffType#">>I would like to know how can I assign my 20 columns heading record by record from stor
I use ColdFuiosn and MS SQL server.I use a stored porcedure for my report using advance on query builder like following.<cfquery name="ReportQuery" datasource="myDataSource">execute MyStoredProcedure MyParam1, MyParam2</cfquery>I got ColdFusion Report Designer is unable automatically to retrieve meta data for the report fields.Can you please advice how can I manually to get field information to drop on the report designer?Your help and information is great appreciated,Regards,Iccsi
I would like to use user input as CFQUERYPARAM for example,I have txtMyID on the form and would like to use user input as my query parameter.I tried to use <cfqueryparam value = "#trim(form.txtMyID)#" CFSQLTYPE = "cf_sql_integer"> but does not work, I tried the following which works, but I need get the value from user enter. <CFSET MyID = "1"> <cfqueryparam value = "#MyID#" CFSQLTYPE = "cf_sql_integer">Your help and information is great appreciated,Regards,Iccsi
Hi, The second dropbox is displayed when location eq 5 is selected from the first drop box. When i select the value from second dropbox, i want the value from the first drop box stays the same as location eq 5, and results need to refreseh to reflect with the select from the second box. Can you pls help?- thx<cfoutput><cfform name="myform" action="" method="post">Location:<select name="location" onchange="this.form.submit();"><cfloop query="variables.qlocations" ><option value="#id#" <cfif isDefined('form.location')><cfif form.location eq "#id#">selected</cfif></cfif>>#location#</option></cfloop></select><cfif form.location eq 5><select name="action" onchange="this.form.submit();"><cfloop query="variables.qAction" ><option value="#id#" <cfif isDefined('form.action')><cfif form.action eq "#id#">selected</cfif></cfif>>#action#</option></cfloop>&l
This has never happened to me: something actually works in IE and NOT in FF! Current version of FF is 3.06. The CFdatefield input does not function in any Mozilla-based browser and throws a Javascript error: Error: "_f is undefined" "Source File: http://localhost:8500/CFIDE/scripts/ajax/package/cfcalendar.js" This points to a line in the JS: "ColdFusion.Calendar.setUpCalendar=function(_6,_7,_8,_9,_a,_b,_c){ var _d=ColdFusion.DOM.getElement(_6+_b+"_cf_button",_b); var _e=ColdFusion.DOM.getElement(_6,_b); var _f=null; var _10=null; if(_e.value!=""){ _f=_e.value; _10=_f.split("/"); } " Where the last two lines seem to have a problem. Can anyone help? This appears to be either a new issue (with a new release of FF maybe) or it's a local issue with my code (everything is possible I guess :). Robert
I use cf_sql_date as my report data source format.The report shows ts '2013-05-13 15:00:00 for the report.Please advise how I can change the format like mmm/dd/yyyy to my report for the date and hh:mm:ss for the time format for the report.Your help and information is great appreciated,Regards,Iccsi
Could people recommend a nice menu library that could be used easily with ColdFusion application?
My cfcookies are only good for "domain.com" and if a user goes to "www.domain.com" the cookie is not valid. Any ideas on how I can make the cookie valid for the entire domain? I have entered the domain as ".domain.com" in the cfcookie tag. Coldfusion version is 8.Thanks!Mike
F1 !!!!! Need HELP asap. I get a server error by trying installing the hotfix APSB13-13 for CF 9.0. I try to install the hotfix under java-version 7.21, 7.11, 6.10, 6.14 and 6.16. What can I do?
Hi,Used the following URL to access the CF Adobe ColdFusion 10 Configuration and Settings Migration Wizard:http://localhost/CFIDE/administrator/After installing Cold Fusion 10, The CF Adobe ColdFusion 10 Configuration and Settings Migration Wizardscreen appears. The Login button is pointing to the following URL:http://localhost/CFIDE/administrator/enter.cfmEither after entering the password or just selecting the Login button, the following screen:HTTP Error 404.0 - Not FoundThe resource you are looking for has been removed, had its name changed, or is temporarily unavailable.The question I have is what should the Login button be pointing too?Thanks,Mike
We started testing the migration of one of our main websites from CF9 to CF10 and everything seemed to be going well. When we started testing our web services though things got a little weird. All of our web services were throwing error messages. Both installations co-exist on the same Windows 2008 R2 server running inside of the same instance of IIS.wsVersion = 1AXIS errorSorry, something seems to have gone wrong... here are the details:Fault - Error attempting to create Java skeleton for CFC web service.; nested exception is: coldfusion.xml.rpc.CFCInvocationException: [java.lang.NullPointerException : null] AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Error attempting to create Java skeleton for CFC web service.; nested exception is: coldfusion.xml.rpc.CFCInvocationException: [java.lang.NullPointerException : null] faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:DevwsVers
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.