Questions
Recently active
Hi,I have cf 10 installed on a vm running ms 2008R2, using IIS 7 as my webserver. In the last couple of days I have been recieveing the following error:Element ID is undefined in a Java object of type class coldfusion.util.FastHashtable.It is appearing when trying to log in to some apps but not all, even though they use the same base authentication code. When the error occurs, it is before any authentication takes place and ID is not used as a fieldname in any of the applications. Empl_ID is used.I am stumped.I've checked: mappingsdata sourcescookiesetc..Has anyone encountered this before? How did you rectify it?thanks in advanceJBird
HelloI'm downloading a csv file daily. I need to extract a value that is in row 30 and 11th column.I'f you open the csv in Excel it has headers for the columns and the specificisRight now im using <cfftp action = "getFile" server = "#remoteFileLocation#" port="21" username="anonymous" password="" connection = "MyConn" passive = "Yes" localFile="D:\Inetpub\localFile.csv" remoteFile="Future.csv" failifexists="no">Did it succeed? <cfoutput>#cfftp.succeeded#</cfoutput><cfftp action="close" connection="MyConn"><h1>Populate cpr table - future.csv</h1><cfhttp url="http://www.website.com/future.csv"method="GET"name="qStockItems"delimiter=","""firstrowasheaders="yes"columns="PRODUCT,CONTRACT_MONTH,CONTRACT_YEAR,CONTRACT_DAY,CONTRACT,PRODUCT_DESCRIPTION,OPEN,HIGH,HIGH_AB_INDICATOR,LOW,LOW_AB_INDICA
I am trying to use a CFTOOLTIP and what comes up in the tooltip is not the info that I am rolling over. The tooltip displays info just not the right info. Does anyone see anything wrong with this code?CODE:<CFSET endcalendar = DateAdd("d", 30, Now())> <CFOUTPUT query="getcalendar" > <CFIF #event_date# IS NOT ""> <cfif DateCompare(#event_date#, Now()) IS +1 AND DateCompare(#event_date#, #endcalendar# ) is -1> <cftooltip autoDismissDelay="10000" hideDelay="250" preventOverlap="true" sourceForTooltip="tooltipcontent.cfm?proj_key=#getcalendar.proj_key#&ID=#getcalendar.ID#">
Hi!I have a simple CFC which gets records from a database.I have then created a ColdFusion page and used <cfobject> to make an instance of the CFC. I then use this instance to populate a <cfselect> form element.The problem is that the field has too many spaces in it so I need to Trim it.Here is my code:<cfobject component = "globalFilters" name="globalFilters"><cfinvoke component="#globalFilters#" method="filters_Status" returnvariable="rsStatus"><cfselect name="Status"query="rsStatus"value="#Trim(Status)#"display="Status"></cfselect>Unfortunately it CF says "Status" is not defined and fails. But if I remove the Trim method then it works fine.How do I trim the value in the select list?
Hey guys, I was trying to use Scala in place of Java with my ColdFusion app.Since Scala converts down to java byte code and runs on the JVM, I thought it would be able to be dropped in there like a java class. It actually becomes a java class. I called the class using the createObject("java", "HelloWorld") function but it doesn't work.Has anyone else tried to do this or heard of anyone accomplishing this before?Thanks,Chris
Hi,we are developing and hosting a site for a client with around ~3 million pages and around 600k visitors per month. We recently switched to a new server and in the process upgraded to CF10 from CF8. Many things like images, downloads and video streaming is done via external CDNs. The problem we are having right now is that the server/site produces timeouts and gets from time to time slower to a point where it's basically just dead. After a reboot of the virtual machine everything is snappy and great again. Now this may take a day or a week - there is no logic to it. Also while the site is perfectly snappy cfstat also shows the occasional timeout which we can't explain. The funny thing is that the server itself isn't the problem - on the hardware site it only uses ~10% cpu power and yet coldfusion runs slow. Just some quick facts:2 x Intel® Xeon® X5650 Hexa Core (6 x 2,66 GHz, 12 MB L3 Cache)RAM: 16 GB4 x 300 GB SAS 15krpm 3,5CF is running in a virtual machine virtualized
Hi folks,I'm running CF10 on RHEL6.1 and I was just wondering if the "Clear Template Cache Now" button is supposed to delete cached class files that are created if you have the "Save class files" checkbox checked?I was looking in my servers /WEB-INF/cfclasses directory and after clicking the button the files were still all there.I had a very frustrating problem where ColdFusion managed to cache the template as a file not found error, and despite clicking all clear buttons and restarting CF the error would still be displayed every time I tried to browse the template. In the end the only thing I could do was ssh into my server and manually delete the class files. Once it cached the file this worked as expected.Cheers,Simon
Hi,I'm working on a page like this: http://mymindsnotright.com/discussionGenReplies.cfm?post_id=22 and am trying to make it so the link for each "Post Reply" link (save for the "Post Reply" link below the main topic) adds another url variable after the post_id variable. The new variable I want to add would be the "user_id" for each reply, so each "Post Reply" link is specific to the person who posted the reply...basically, I want it to look like this after lcikcing one of the "Post Reply" linkhttp://mymindsnotright.com/discussionGenReplies.cfm?post_id=22&user_id=(the user id of the person who posted the reply)#replytest (the link doesn't go to a new page but rather to a named anchor lower down on the page)The closest I can get is with this:<a href="?post_id=<cfoutput>#rsGenPost.post_id#</cfoutput>&user_id=<cfoutput>#rsGenReplies.user_id#</cfoutput>##replyt
I was successful running this on my Win 2008 R2 production server but running it on my Mac OS development box has me a bit stumped.Here is what I tried...1.I downloaded the file cf10_mdt_updt.jar and placed it in << /Applications/ColdFusion10/cfusion/hf-updates/2.I launched Terminal and tried to run it by running the following command in Terminal.../Applications/ColdFusion10/cfusion/hf-updates/cf10_mdt_updt.jar3.I received the following message...-bash: /Applications/ColdFusion10/cfusion/hf-updates/cf10_mdt_updt.jar: Permission deniedI also tried running it in /Applications/ColdFusion10/cfusion/bin/cf10_mdt_updt.jarI made sure I was logged in through terminal and that the file cf10_mdt_updt.jar was not locked.Any ideas would be greatly appreciated.Thanks.
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-697c.html
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-750c.html
I have a query that has rows added to it from another source. I have a QoQ which then updates the order by (date order). I then need to set a startRow and endRow limit like MySQL's LIMIT to page the recordset back to an AJAX call? Does anything know how to do this?CheersShaun
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec0e4fd-7ff0.html
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0e4fd-7ff0.html
Hi, I'm using the following query/<cffifle> (see below) command to create a .csv with information from our SQL 2008 database. However, I'm having a problem when exporting data fields with certain characters in them. Specifically, line breaks and ' " 'For example, one of our product's description may be:18.5" HP LED BL MonitorThe " character disrupts the format of the field, because field-transitions are marked with double quotes.Is there a way to escape this character? (And perhaps others, such as line breaks and special characters)Alternatively, is there a better way to export specific inventory information other than the current method? Notes : This is a verbose function that runs in a web browser. This detail isn't necessary.I can provide the full .cfm file as well as the ouput if necessary. -------------------------------------------------------------------------------------------------------------------------------<cfoutput>Getting Active Products..</cfoutput&
I'm trying to cache a query on our live web server, but not on our testing server (developers need to see changes realtime, but the public doesn't).I tried something like this:<cfif listfirst(servername,".") eq "test"><cfset cachetime = 5><cfelse><cfset cachetime = 0></cfif><cfquery name="GetContactInfo" datasource="MyDSN" cachedwithin=#createtimespan(0,0,cache,0)#">SELECT....But the results were unexpected (it didn't seem to work).Is there a way to do this?
I want to reinstall ColdFusion 10 as I have a corrupted installation since Windows Crashed 98% in. When I try to reinstall using the 64bit installer, it only gives me the J2EE server configuration option instead of server. So, I proceeded on attempting to uninstall it from the programs menu in Windows, but am receiving the following error:The uninstallation could not complete due to an error.I'm not sure what the error is or where to even find log files pertaining to this. Is there a manual way of uninstalling CF10 completely?Any help would be appreciated, thank you.
(I first posted this on the dynamic dreamweaver forum but I think I was supposed to post my question here)Hi,I'm trying to figure out a way to notify someone that another person has replied to a post they made in a discussion. I'm pretty sure I know how to figure out who the email should be sent to, but for now I'm just trying to get it to work by just sending it to my personal email. This is the code I'm trying to get to work:Thanks,Mike====================================================================== <cfif isDefined("FORM.title")> <cfprocessingdirective suppresswhitespace="No"> <span class="blogtitle">Your Email has been sent.<br><br>I'll get back to you as soon as I can. </span> <cfmail  
I read Raymond Camden's blog post about triple related selects and I'm trying to implement a solution of my own. I can only get the first dropdown to populate and am getting three bind errors "Bind Failed, element not found: SelState ..." for the first two and then "Bind Failed, element not found: SelDestination ... " for the last.My code looks accurate (to me anyway) but clearly its not working.Can someone please help me debug this?<cfform name="Localiza"><table><tr><td width="100">State:</td><td width="150"><cfselect name="SelState" bind="cfc:_fc_cfc_triple.GetState()" display="misc_state" value="misc_state" BindOnLoad="true"/></td></tr><tr><td width="100">County:</td><td width="150"><cfselect name="SelCounty" bind="cfc:_fc_cfc_triple.GetCounty({SelState})" display="destination_county" value="destination_county" Bin
As part of the installation I was led to the web admin to complete the configuration; whereas, I was not allowed to continue because my credentials were stated as wrong . I was able to successfully go to one of the other remote computers which its IP was included in CF10s "Secure Profile" settings. After that I entered 127.0.0.1 as part of the allowable IPs. Still no luck with getting access from within the same server as CF10.Details:Win2008R2IE9CF10 Enterprise
've just installed Coldfusion 9, and everything is now working fine and it's connected to my MySQL databse via the Coldfusion Administrator as a datasrouce, but I get this error occuring infrequently, maybe 5 - 10 times a day. I don't know how to recreate it, and if you get it and refresh the page it goes away.Error Executing Database Query. Communications link failure Last packet sent to the server was 0 ms agoThe error is being caught by coldfusion as it's displaying a user friendly message and emailing me the problem.Almost all of the time the pages load and work fine, and this problem has only happened since going from CFMX7 to CF9, both using MySQL.The MySQL version I am using is "5.0.77"I've tried localhost and 127.0.0.1 as the host in the datasource, it makes no difference.Does anyone have any idea what this is and how to fix it? I've seen some similar posts for Java but I don't see how to translate the fix across into Coldfusion?And could it be a MySQL or Apache problem anyway?
Good Morning,I'm a newbie when it comes to this so I apologize ahead of time.I'm trying to build a Year/Make/Model related select search. I found a HTML, PHP, and the JQuery Related Select Plugin that i'm trying to convert to use with CF. It looks like i can use an array to replace the PHP page that supplies static data: <?php $stateID = $_GET['stateID'];$countyID = $_GET['countyID'];$townID = $_GET['townID'];$html = $_GET['html'];$states = array();$states['MA'] = "Massachusetts";$states['VT'] = "Vermont";$states['SC'] = "South Carolina";$counties = array();$counties['MA']['BARN'] = 'Barnstable';$counties['MA']['PLYM'] = 'Plymouth';$counties['VT']['CHIT'] = 'Chittenden';$counties['SC']['ANDE'] = 'Anderson';if($stateID && !$countyID && !$townID){ echo json_encode( $counties[$stateID] );} elseif( $stateID && $countyID && !$townID ) { echo json_enc
HI, I upgraded from CF8 Dev to CF9 Dev edition a few months ago. I haven't coded much since then, but have noticed that when I open CF Admin, it doesn't seem to want to load. When I click stop on the browser and then reload, it opens fine. I have a desktop shortcut to a little password manager I use and the same thing happens when I try to open it as well. This was never an issue with CF8.Anyone have any idead why this issue would be occuring? Not sure which information from my server configuration is needed, but I'll be glad to post any info needed. Thanks in advance!
We have resently installd CF 10 64 bit om three new windows 2008 R2 servers.One of them keeps generating an error "PermGen Space null" when processing CF script files.There is nothing special about the scripts resulting in errorwe have tried to increse Maxpermsize from 192m to 768m but that had no effect.the other two servers seems to bee doing fine.Any ideas what to do?
Is there a way of making a field visible and Required if a particular selection is made in a drop down menu.For instance I have 4 different options in my drop down menu including "Other" and if Other is selected, I want a new text field to be visible so the user can add more specific information.Any help or guidance would be appreciated.
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.