Questions
Recently active
Can any one help me out giving a good example to understand when should I scope a query result sets in a session scope.
I installed CF11 on a CF9 machine (Windows 2008 R2 Standard). The website running on CF9 is fine but I can't get to the administrator. It says the file isn't found and does not exist.
Hi,in CF10, I'm trying to print barcodes with ttf barcode fonts inside a PDF document generated with the cfdocument tag. The barcode is generated, but with wrong spacing.The code printing the barcode is quite simple:<span style='font-family:Code-39-25-DMI;font-size:32.0pt;letter-spacing:0px'>*BKUM70709997B*</span>This is what it should look like:cfdocument renders the barcode like this:The spacing between the individual barcode characters is wrong. The "letter-spacing" CSS option doesn't make andy difference. Any idea for a solution?Regards, Richard
Hi,We have a time clock (time tracking) web application that I need to change the user authentication from a traditional username/password to a fingerprint scanner.Has anybody done this before and is willing to share some insights?We are willing to pay somebody too.I've looked around and could not find a whole lot of information. I did try to jump into some Java SDKs for various devices, but my knowledge of Java is not the greatest.Please let me know if you've done this before.Thank you!!!
I have login code that has worked perfectly for years. It still works in development, but has stopped working in production. The only change has been a recent "upgrade" to ColdFusion 11. Here's what's happening.User logs in.SESSION.login is set.User moves around from page to page and finally clicks a link that's formatted like so, "/admin." (The entire site is configured in IIS to use index.cfm as a default document.)SESSION.login (along with a number of other session variables) disappears so the user is take to the login screen even though he/she has already logged in.Now, if I change the link in step three above to be "/admin/index.cfm." then the session variables do not disappear and the user is simply taken to the page like they should be instead of being prompted to login again. I have no idea why the elimination of the directory's default document the link would trigger ColdFusion to purge session variables (especially when it's always worked fine in the past), but it does. What'
Hello.I'm currently running ColdFusion 9.0 on a Windows Server 2008 R2 machine. I need to uninstall ColdFusion altogether so that I may reinstall it. My ColdFusion came with an 'uninstall' directory, which contains the file "Uninstall Adobe ColdFusion 9.exe". However, when I try to run this program, I get a JVM error. I've tried running this program as adminstrator, as well as updating my JVM to the newest version (in the case that it was a version mismatch). This hasn't solved anything.I then turned to the "Programs and Features" section of the control panel, where it shows an "Adobe ColdFusion 9" instance. But, when I try to uninstall here, I get the message "You do not have sufficient access to uninstall Adobe ColdFusion9. Please contact your system administrator." I am logged in as the administrator, and am able to uninstall other programs.Any ideas or information would be greatly appreciated!Thanks,
I have found this page, Adobe ColdFusion 9 * Configuring and using session variables, but I do not know if the way I'm using is correct. In the contact us page, I set the session variable to 1 (for yes the user has turned off java script). In the submission-success.cfm, I tried this:<cfif #session.EmailSuccess# eq 1> <cfif (form.mailto is not "" AND form.mailfrom is not "" AND form.message is not "" AND form.name is not "")> <cfset session.myweb.email.success = "true"> <cfmail to = "#form.mailto#" from = "#form.mailfrom#" subject = "Inquiry from Contact Us Form by #form.name#" server="smtp.myweb.com" port="25" type="html"> <cfoutput> <p>This message was sent by an automatic mailer by #form.name#:</p> <p>= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =<p> <p>#form.message#</p> <p><cfif structkeyexists(form, "phone")>Phone: #form.phone#</cfif&g
I recently migrate code from a CF8.01 instance to a freshly installed/updated CF11 instance. As I was going through some testing I ran into an issue where the "setter" methods within a CFC are not setting the values of the locally scoped instance data within the CFC. The exact same code works on CF8. I read a couple articles which made reference to a new attribute of the cfcomponent tag (accessors=true) that will implicitly create getters/setters. I am not using this attribute so I'm not sure if that has anything to do with it. Below is some sample code.test.cfm:<cfscript> myObj = CreateObject('component', 'WorkUpBean').init(); myObj.setTypeID(2);</cfscript><cfdump var = "#myObj.getTypeID()#">WorkUpBean.cfc:<cfcomponent name="WorkUpBean" displayname="WorkUpBean" hint="I am a workup bean"><cfscript> local = StructNew(); local.TYPE_ID = 0;</cfscript><cffunction name="init" access="public" output="false" retu
I have an order form where my buyers can add items to my form. I am using a loop that adds an extra line when they add a new product. I am storing the info in two different mySQL tables. The first is alll of the personal info, the second is the items. THe personal info saves correctly. However, I get the following error when saving the items:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1, 'wer 2345', 1, 1 )' at line 9 The error occurred in E:\webs\clarkwebhosting.com\SSL\esrc\order_add.cfm Line 74 ++ After storing the personal info I grab the order ID to populate the items table<cflock timeout="5"><cfquery name="qGetorderID" datasource="#application.dsn#">select max(orderID) as oid from orders</cfquery></cflock><cfoutput><cfset getoid = #qGetorderID.oid#></cfoutput>++ this is the loop I am using to populate the items table ++<cfloop from="1" to="#form.n
A ColdFusion 8 project was running under Windows server 2003 which was upgraded to Windows server 2008.The project has frames and client variables stored in the registry.After the Windows upgrade, a few users have had client variables disappear. The variables are assigned and displayed in a template in a frame but lost after being submitted to another template in another frame.The users get an error that "element xx in undefined in client".What are possible causes and solutions?
Hello -We have recently migrated about a dozen sites to a new server running Windows Server 2012 R2 and ColdFusion 11. Everything seems to be working correctly except for .cfr pages. IIS throws a generic 404 when attempting to access pages with this extension. We have the Jakarta virtual directory setup correctly and our file mappings also look to be correct. Allowing the app pool to run 32-bit applications changes the error from a 404 to an internal server error 500. Any ideas? Thank you!
Hi. I have a field in my SQL database that is an integer field. When I try to use this field in my form, it only allows whole numbers to be entered. How can I allow numbers with decimal points to be entered? The field name is called Eng_Hrs. Here's what I have on the Form:<tr><td class="edit" align="left">Engineering Hours: <input type="text" name="Eng_Hrs" size="12" validate="integer" <!--- required="no" ---> message="You must enter a valid number in the Engineering Hours field"></td></tr>I realize I could make this a text field and it would allow decimal points, but then how could I validate this field to make sure that only whole numbers or numbers with decimal points are entered?Thanks.Andy
Hi,Currently running Cold Fusion 11 on a 32 bit Windows 2008 server.At times receiving the message on the screen "The service is unavailable"Restarted the ColdFuison 11 Application Server service and the application came back.I looked in the coldfusion-error.log file and found the following message:Caused by: java.lang.OutOfMemoryError: Java heap space] with root causejavax.servlet.ServletException: ROOT CAUSE: coldfusion.runtime.EventHandlerException: Event handler exception. at coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:309) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:462) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:142) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter
Hello-I upgraded my Windows 7 to Windows 8.01, and after up gradation Coldfusion services are missing from windows. i.e I have to start Coldfusion services Manually by going to C:\ColdFusion10\cfusion\bin and run the cfstart.bat fileAny idea to resolve the issue. ThanksRegardsTayyab Hussain
Hello,Do Universities receive a discount for the purchase of ColdFusion?Thanks!
Hello all.....below is my code snippet which is trying to initialize the connection using Java Socket and was working fine sine few days ago.All of sudden it stopped working and I am not able to understand what happened. can any one help what cause this issue.<!---Set and initialize the socket--->52 : <cfset sock = createObject("java", "java.net.Socket")>53 : <cfset sock.init("localhost", 1500)>54 : <cfset success = sock.isConnected()>Error which I am getting is below.Object instantiation exception.An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: ''. Thanks in advance.
I've been successfully using Salesforce's api till they made the switch to SHA 256 algorithms about 2 weeks ago (HTTPS Security Certificate Change from SHA-1 to SHA-256 hash algorithms). I know that coldfusion 8 is capable of supporting sha 245 hashing, but I've had no luck connecting to salesforce objects. Where exactly do i need to implement the SHA 256 encoding? Here's my CF code that is currrently functioning on a server where the sha 256 hasn't been implemented yet: <cfhttp url="https://cs8.salesforce.com/services/data/v30.0/sobjects/SFOBJECT/describe" method="get" result="apique"> <cfhttpparam type="header" name="Authorization" value="Bearer XXXXXXX"> <cfhttpparam type="header" name="X-PrettyPrint" value="1"> </cfhttp>This works correctly, so I assumed I just need to do the hashing on either the url or the authorization value. l tried both, then one or the other, but still no luck. Any advice is welcom.
I am trying to fix a number of issues our company's platform has with an integration with Adobe Connect. One that has me perplexed is intermittent failures with the login method. We have one client whose credentials fail regularly, but not always. I have the login method call in a try/catch block with the CFHTTP output dumped into an email and sent to me. Here is a sample failure, using the cfhttp tag <cfhttp url="#httpCall#" method="GET" />:However, when I invoke the login method via browser, using the URL attribute that is invoked by the CFHTTP tag (eg. http://[host].adobeconnect.com/api/xml?action=login&login=[username]&password=[password]&account-id=[id]), I get the following callback:<results> <status code="ok"/></results>The request header I get back is as follows:So, there is nothing wrong with the credentials passed in, nor with the response: it does return a MIME type of text/xml, when called directly. This points to
I have a report (CF10) that exports to an excel spreadsheet. Sometimes one of the fields needs extra height to show all the data. When this happens only the field needing the height expands and I need the entire row to grow taller.For all the fields:Under Fields and Properties under the Formatting section I have Stretch with Overflow set to True. Under Print Control I have Print When Detail Overflows set to True and Stretch Type set to Relative to Tallest Object.What am I missing?
Hi I've managed to change location all coldfusion log files for naming instance but not ex catalina.out files: catalina-out.log and catalina-error.log.Anyone has any idea where settings are ?The only solution works so farredirect 1>>STDOUT.file 2>>STDERR.file and remove default log file folder..
Hi! I have a ColdFusion variable which contains a URL:For example, it looks like <iframe width="640" height="360" src="//www.youtube.com/embed/XXXXXX" frameborder="0" allowfullscreen></iframe>.What I'd like to do is replace the width of "640" with that of "450" and the height of "360" with "253". I'm passing a string into an "if" statement which will change the variables if the conditions are met. I CANNOT change the variables before making it a string. I must change the variables.What is the best way to do this in ColdFusion? I don't know this language (my expertise is more in JavaScript and PHP), so I appreciate all the help you could give me.Thank you for your help!BP
This piece of code: <cfscript> for (j = 1 ; j LTE 500000 ; j = (j + 1)) { dummyc = createObject("component","Dummy"); dummyc.dummyf(); } </cfscript> that creates objects like this one: <cfcomponent name="Dummy" output="false"> &nbs
We currently have ColdFusion 8 Standard installed on a server running Red Hat Linux 2.6.This server is going out of service and we have a new one that is running Red Hat Enterprise Linux Server 6.6. I have been told that Coldfusion 8 will not run in this environment so we will most likely be purchasing and installing ColdFusion 11 Standard.In the system requirements for ColdFusion 11 it states: Red Hat Enterprise Linux 6.X (up to version 6.5).Does anyone know if I will have any trouble installing and implementing it with Linux Server 6.6. I don't want to purchase it until I can confirm.Thanks in advance.
I am looking for a helpful start (key words or even phrases) to begin understanding what it takes for a web site to give auto notification to an app on iOS and Android. I hope that wording is understandable, but in short how can things that happen on my website be automated to send the data as information to phones apps. Is this handled via web services? The way I was imagining it was like a site that a user (contributor) interacts with to let you know some feedback from another contributor is needed. The user (contributor) would then interact with the site and a phone application would instantly notify the other contributor. I was thinking this could be instant (as fast as servers can work). Simply from something like a click. Thanks
Installed Cold Fusion 11 standard, on window 2008 R2 and it will not serve up .CFM tags that are not in the root directory of a web site
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.