『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
The official community for ColdFusion.
新着順
Hi allAfter migrating from CF7 to CF 10 we are getting this error "Unable to add text to HTML HEAD tag.ColdFusion was unable to add the text you specified to the output stream. This is probably because you have already used a CFFLUSH tag in your template or buffered output is turned off. The specific sequence of files included or processed is:"Javascript code is available in script.cfm page.We are referencing the Script .cfm in admin .cfm using CFInclude and CFFLUSH is nowhere avaialable but still it throws the error.Only thing is we are referencing the script.cfm page more than once in admin.cfm.PLease how to get ride of this error.Thanks in advance.Naresh.
I just wrote my first Ajax code, and am looking for a more elegant way to retrieve the callback from the ColdFusion server page. My callback page returns this data: <html><body><div>6</div></body></html> Right now I am using this Javascript to retrieve the 6 from inside the div: (data = string sent by server page) var divloc = data.indexOf('div'); var callback = data.substr(divloc+4,1); Is there a better way to retrieve the 6 from those HTML tags, or could I get the server page to pass just the 6, without the HTML, back to the calling page?
I reset this thing over and over but I constantly get Invalid Password. Please try again. Any thoughts.
I am trying to greate a poll for my website. I am getting this error when they user trys to vote and I dont understand why. The error appears to be on the processing page when trying to add votes. I get the total votes from the database then add 1 and then update the database. THat is when I get there error. can anyone help? Thanks.CODE:<!---BEGIN COLDFUSION CODE FOR POLL---><CFAPPLICATION NAME="Cookies" sessionManagement = "Yes"setDomainCookies = "Yes" setClientCookies = "Yes"><!---GET CURRENT POLL ID---><cfquery datasource="xxxxx" name="currentpollID" > SELECT * FROM OAREI_poll WHERE start_date <= <cfqueryparam cfsqltype="cf_sql_date"value=#Now()#> and end_date >= <cfqueryparam cfsqltype="cf_sql_date"value=#Now()#></cfquery><cfset SESSION.display = #currentpollID.poll_ID#><!---END CURRENT POLL ID---><!--
Due to a bug in either FF 17.0 or ckeditor a dangerous, I dare say vulnerability, is made available to users using FF 17.0. The behavior is described here:https://support.mozilla.org/en-US/questions/942438?page=2A workaround is available, but I didn't pursue, which requires editing of some portion of fckeditor browser checking. My workaround was to force users to update to a version of Firefox other than 17.0. I preferably directed them to the Extended Support Release version using javascript since we are an enterprise environment.I plan to pursue update to CKEditor, meanwhile what options do I have to verify that for any update to a web browser I'm not exposing my edit enabled pages to source code changes?
What is the best solution to send e-mails to a list of recipients for only certain Ticket Types?- I've already created a table/form that connects each User/Email to the Ticket Types (see image below)- My problem is how to create the Query that will "filter" and create the list of email address? - Every new ticket gets assigned a TicketType.. - Every user has been setup ahead of time with the appropriate types checked.. - But each user only wants their emails and NOT any unchecked types?- Here is my idea of a tblEmailAction that indicates which Ticket Types a recipient is interested in and then it saves the ID of that ticket type into the table. Now just need to match up the values in the original ticket and generate the email list..?
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7fd9.html
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec09f0b-8000.html
My application generates dynamic reports in PDF format. The reports can vary from 50K and up to over 300K. I get the message above ONLY when the PDF output is greater than 221K in IE (7,8 & 9). Anything less than 221K displays fine. Anything above it displays fine in Chrome and FF, just not IE. I have tried various combinations, but the only thing that seems constant is the size limit. It also happens if I use Flashpaper. Any ideas? Thanks!
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7ffc.html
hi thereStill on CF 9.0.1.xI have in the same directory 2 CFCs, each implementing an object that communicates with each other. Each CFC has the variables scope used. They are part of an emulator for a physical device. There are more cfc involved but I reduced it to the minimum test case.The parent is MCU which instantiates any number of TARGETS. A target communicates back to MCU with a callback function provided by the MCU. The callback function uses MCU's clock to log the incoming message.---component MCU { variables.mcu.clock = 0; more of variables.mcu.* Init () {// Create all targets, call each target’s registerMCUListener to let them know whom to call back. variables.mcu.targets = CreateObject ("component", "target").Init (); variables.mcu.targets.registerMCUListener (cbFromTarget); } private numeric function cbFromTarget (struct msg) {writedump (var=#variables#); // <<<< This shows the variables scope of TARGET, expected MCU variables.mcu.events
Hi,I have coldufusion 7 and can't use the datafield type for input field. Instead, i want the pop up calendar for user to pick the date. I've search from the web and they talked about jquery but do'n't know about this. I did see some code but don't know how to call in cfm page. Can any one please walk me through this?thankskt
I use <cfoutput> to export a tab delimited text table for excel. I added a bunch of fields to a working export and it's broken. I doublechecked my syntax in the construction of the output string. I am noticeing that intellisense stops working on the line at 512 characters. Could there be a limit to the length of a single line in a cfoutput export?Is there a better way to export to Excel?Thanks.
I have the form is displayed order no, message and sent_date. Mesage and Date sent are editable. I can change value from both colums in diffrent values then hit submit for update. My code below is loop thur message and date sent field then update them based on the pk ID. Unfortunately, it didn't work as the expected. Can you please help?Oder NOMessageDate Sent5463first message12-10-125463second message10-13-12<cfset myIds = ArrayNew(1)><cfform name="update" method="post"> <cfloop query="qMesg"> <cfscript> ArrayAppend(myIds, "#id#"); </cfscript> <cfinput type="text" value="#mesg#" name="mesg"> <cfinput type="text" value="#dateformat(sent_date, 'mm-dd-yy')#" name="sent_date" validate="date" /> <cfinput type
I can see my valuelist choices when I click on the gridcolumn in my CFGrid.But I am also seeing a weird choice added to the valuelist choices. It is some kind of Ext error I believe.The valuelist named "PositionChoice" should display "Include" and "Remove" The weird choice in the valuelist options begins with: <div class=x-grid-col-0 I initialize the valuelist like this:<cfset PositionQuery = QueryNew("IncludeORNot", "VarChar")><cfset newRow = QueryAddRow(PositionQuery, 2)><cfset temp = QuerySetCell(PositionQuery, "IncludeORNot", "Include", 1)><cfset temp = QuerySetCell(PositionQuery, "IncludeORNot", "Remove", 2)><cfset PositionChoices = #ValueList(PositionQuery.IncludeORNot,",")# />-----------------------------------------------------------------------------I call my valuelist in the CFGrid like this:<cfgridcolumn name="GroupChoice" header="Group Choice" values="#PositionChoices#" width="20" display="true" select="true"/> &
Hi,I am query out and display all dates from my table but for some reason I have invalide date such as :1753-01-01 00:00:00.0 and some others invalid.I only need to display the valid date, if not valid then display empty, however, the code i have below was not working. <cfloop query="q_pur"> <cfif not isDate(chgDate)> <cfset valid_chg_date = '' /> <cfelse> <cfset valid_chg_date = chgDate /> </cfif> #valid_chg_date#<br /> :--->it still shows 1753-01-01 00:00:00.0 instead of ' ' (empty string)</cfoutput>any idea?thanks
I have the following simple dropdown on my form:--------------------------------------------------------- <select name="ttTo" id="ttTo" > <option value="">Choose One</option> <cfoutput query="rsTicketTo"> <option value="#rsTicketTo.ttEmail#">#rsTicketTo.ttDesc#</option> &nbs
Why do the following two filter attributes yield different results in a cfldap query? 1) Filter="(|(sn=edmu*)(sn~=edmu))"2) Filter="(|(sn~=edmu)(sn=edmu*))"From the results it looks like the second OR operand in the second filter, "(sn=edmu*)" is just being ignored. I don't see any documentation though on what order things are supposed to be in for these filter attributes.
I'm checking through some old code, tidying it up a little and making sure everything is using cfqueryparam - I've got the following bit of code and not sure what to do with it - I know cf_sql_array is available but I can't find any examples of information on it (or if that's exactly what I should be looking at):<cffunction name="myfunction" access="public" returntype="void" output="false"> <cfloop index="i" list="#visualList#"> <cfif form["visual" & i] neq "NA"> <cfquery name="assetVisualCheck" datasource="#APPLICATION.Config.dbdsnd#" username="#APPLICATION.Config.dbuname#" password="#APPLICATION.Config.dbpass#"> INSERT INTO as
Hi, I notice JDK7 preview is available:http://jdk7.java.net/ Have done a small amount of testing with Java 7 on CF9 and find encouraging results for application performance particularly with the new Generational One collector (not sure what the correct terminology is for that) -XX:+UseG1GC in place of the usual -XX:+UseParallelGC garbage collector. Don’t let the new collector scare you the ParallelGC we all use and love still works with Java 7. Once JDK7 is installed, edit CF\runtime\bin\jvm.config (need I mention backup the original first?) eg: java.home=C:\\Program Files\\Java\\jdk1.7.0\\jre# Arguments to VMjava.args=-server -Xmx512m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseG1GCetc For those interested my CFADMIN > System Information reports in part: Server Details Server Product ColdFusion Version 9,0,1,274733 Edition Developer Serial Number Operating System Wi
Ok, this is a new one on me. I had 9.0.1 and everything worked just fine. Well today 9.0.1 died so I uninstalled and installed 9.0.2. That all went fine. Most of my pages call a counter.cfc to keep track of hitcounts on pages.Here is the cfc:<CFCOMPONENT HINT="Hitcount processing"> <!--- List users method ---><cfset day=LSDateFormat(Now(), "mm/dd/yyyy")><cfset time=LSTimeFormat(Now(), "h:mm:ss tt")><cfset current="#day#"> <CFFUNCTION NAME="Add" RETURNTYPE="void" HINT="Add to hitcount datebase"> <CFARGUMENT NAME="Page" &nbs
I am trying to create a coldfusion poll on a page. Is there a way to do it so that page doesnt neccessarily reload? Has anyone done this and can give me a few hints or code to get me started? Thanks.
Hi I read about revalidating data submitted in server side in many post.I need to know the about perfromance statistics on validating a piece of data two times(client and server side).regardsRKP
I have a Windows 2003 SP2 IIS 6.0 32 bit server Dell 2850 4 G RAM - as a test platform. I was running CF9 standard normally on the server with good page performance. I installed CF10 standard (Plus the mandatory update) on the server and now the admin screen and all web pages take over 30 sec to load. Task manager shows mostly idle at 99% - Single NIC active with a single IP address in use. I remove cp10 and restarted cf9 and the performance is back to normal. Ideas?
I have a table that includes rows of pending actions pointing to duplicate e-mail addresses. I would like to send the addressees their respective action items in one e-mail to each person. The CFMail sends the pending action items to each in separate e-mails. I've tried using the cfsavecontent tag in the CFMail but it includes all the action items to all the addressees. I've tried to use a loop but it duplicates the records. Can someone please tell me what the best method is to accomplish what I'd like to do. I would be most appreciative. Thanks
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
アカウントをお持ちではありませんか? アカウントを作成
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.