『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
Hi everyone, I have created a Blog page on our site and am setting up a page for anyone in the company to update the blog with some text and an image. Does anyone know how to set up code so when the Browse button is clicked that it will resize the image automatically to what I want it to be with the pixel size and file size? I’m thinking having it be 200 pixels wide and height doesn't matter. Maybe have the file size at 4K or so. It would be like Facebook when you upload a large file image, but it re-sizes it automatically. We have CF version 7, so I can't use the CFimage code that's in 8 and 9. I've found something called imageCFC.resize(), but I don't understand how to use this or incorporate this into my code. This is what I have on my pages now just to upload an image file:Add Page:<td><input type="file" name="Image1" id="Image1"></td>Add Action Page:<cfif isdefined("form.Image1")> <cffile action="upload"
My ColdFusion Application has forms that are editable and upon submit the database is updated. I am using an Access database. All my forms work, except one. I have recoded it several times to no avail. I have rebuilt the table as well. When I submit the form, I get a error message - "500 internal server error, there is a problem with the resource you are looking for and it cannot be displayed". All my other forms submit the same way and have the same code except for the table name and field names and they work. When I change to method="get", I get the correct page to come up if I remove all the query code and I get my debug statement to show I made it to the page. However, when I try to see my hidden values that I am passing, I get an error telling me that I have a 500 internal server error and that my form element "ID" is undefined. As I stated before, this page is almost identical to others except for the survey content. My form has this: I am using this
I have a form that was working in CF9 but now that I've moved over to CF10, it is generating an error.<cfinput type="datefield" mask="mm/dd/yyyy" name="dtfiled" required="yes" message="Enter the date the " value="#DateFormat(dtfiled,"mm/dd/yyyy")#">I had it working without the mask, but tried it to see if it would fix the problem.I am getting the error: 10/19/2011 is an invalid date or time string.If I'm displaying the date as month day year, then the date as it is displayed is correct. Am I missing something or has something changed between CF9 and CF10?Thanks.Sue
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSCAD9638E-2D2C-48d8-9069-AE5A220B75A6.html
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSCAD9638E-2D2C-48d8-9069-AE5A220B75A6.html
Guys,I have the script PHP below.How I write this script in ColdFusion, sorry for the dummie's ask<?php if(isset($_POST[“color”])) { for($i = 0; $i < count($_POST[“color”]); $i++) { echo “The color “.$_POST[“color”][$i].” was selected!<br />”; } } else { echo “blablablablablablablabla” } ?>[ ]'s
How can I use jquery Datepicker in a cfm application that used iframe? where should I link css and script reference?
So traditionally the THIS scope stores variables that are used outside the component, and the VARIABLES stores, well, variables, that are private to the component, right?I ask, because in my application.cfc's BIFs (like onApplicationStart(), onRequestStart(), etc.), I make calls to other components, and there are some values that are initially stored in the application.cfc that need to be shared with these components (but I was told that I shouldn't just make these components inherit from the application.cfc)What I *WAS* doing was calling these component methods and passing the variables I *WAS* storing in the VARIABLES scope like the following:<cfset componentObject.methodName( firstArg = VARIABLES.var1, secondArg = VARIABLES.var2) />Thing is that I've found, these variables are needed rather often by a lot of functions throughout the application.cfc. Should I be storing these common values in the THIS scope instead? So
Does anyone know why none of the links to the articles here are not working? http://www.adobe.com/support/coldfusion/security.htmlFor example... the article... Top Five ColdFusion Security Issueshttp://www.adobe.com/devnet/server_archive/articles/top5_cf_security_issues.htmlThis is also true of the TechNotesThanks.
What tag or software would you recommend to use under CF 9.0.1 for the mass e-mails? We have to be able to send out about 1,000 e-mails per hour in the peak times. CFMail was not able to handle it when we've tried to incorporate it for CF MX 7. Is it better now? Is there any other product(s) that would serve the purpose and work with ColdFusion?Thank you!
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WS38f7811c62cc227c71c3c3dd135155ecceb-8000.html
Hi,After installing security updates for CF 8 Enterprise, I'm getting "No provider for smtps" errors when trying to send e-mail to Amazon SES. I also get this error if I try to send from my own server in SSL mode, however, non-SSL mode is working fine. Am I missing an smtps .jar?Thank you,Walter Hardy
We are getting feedback from users that they love our ColdFusion application, but often times need to gather data (form input) when no internet (wi-fi or cell) is available. I am at a loss as to how to begin to think about a possible solution.
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSd8001ae4abdbd9112ab20a5d1350d854529-8000.html
Hi everybody, I'm trying to configure a CF Environment using Adobe ColdFusion10 on my Mac Mini running Lion Server and on the client site CF Builder 2.0 on my MB Pro running Mountain Lion 10.8.3. My Webserver uses a self-created root certificate for SSL connection. Simple .cfm files I copied to the webroot manually are as well displayed as any other .html or .php sites uploaded to the server (which I assume means that the connector is working properly). Also the CF Administrator Website is working fine using the https:// connection at port 443.The main problem I'm constantly running into is, that when I'm trying to configure a remote server in CF Builder (… defining port 443 for SSL connection) the status of the configured server is "Running" when the option for RDS "Enable SSL" is disabled. When I try to connect to the sample databases in the "RDS Dataview" with this settings I get the following message:An error has occurred. See error log for more details.For input string: "<!DOCT
Hi. Has anyone used jsoup for cleaning up user-submitted HTML?When I ask jsoup to add some extra attributes to its whitelist I get this error: "The addAttributes method was not found."The addAttributes() method requires an array. I tried using a CF array, a Java array, and even a string, but nothing worked.I'm using CF8. My test code is:<cfset jsoup = createObject("java","org.jsoup.Jsoup")><cfset whitelist = CreateObject("java", "org.jsoup.safety.Whitelist")><cfset html="<div style='font-size:24pt;'>This is BIG text</div>. This is an unwanted script: <script>alert('Boo!')</script>.<br>"><cfset myAttribsArray=[":all","style"]><cfset myAttribsArray=javacast("string[]", myAttribsArray)><cfset sanitized = jsoup.clean(html, Whitelist.relaxed().addAttributes(myAttribsArray))><cfoutput><textarea rows="10" cols="60"> #HtmlEditFormat(sanitized)#</textarea></cfoutput>The code works if I don't bother with ad
Hi,what is wrong with this code since the drop down box is not changing to display the correct value. It didn't highlighted the one i selected..<cfoutput><cfif isDefined('form.code')> <cfset page.code = form.code /></cfif><form action="#cgi.SCRIPT_NAME#" method="post" name="mycode"><select name="code" required="yes" onchange="this.form.submit()"> <option value=""><b>Select Customer</b></option> <option value="AB" <cfif isDefined('form.code')><cfif form.code eq "AB">selected</cfif></cfif>>AB- None</option> <option value="CD" <cfif isDefined('form.code')><cfif form.code eq "CD">selected</cfif></cfif>>CD- Deliver</option> </select></form><cfif isDefined('p
I may have been working too many hours lately, or I'm simply losing my mind, but I'm having a heck of a time with a very strange result from a queryI have a simple query that retrieves emails from a listSELECT emaillist_emailFROM emaillistNow let's say the above gives 50,000 recordsNow take thisSELECT emaillist_block_emailFROM emaillist_blockSay that gives 5,000 recordsNow put them togetherSELECT emaillist_emailFROM emaillistWHERE emaillist_email NOT IN(SELECT emaillist_block_emailFROM emaillist_block)Now unless I am losing it, I should get 45,000 records, presuming that the 5,000 are in both tables.The issue is, I get zero records.Any ideas?*** I Have solved the problem after digging a little deeper. There was a NULL record in the data which had been imported from XLS causing it to throw the query out, once I removed it the correct records were returned ***
Our Single SignOn agent (SiteMinder) places a custom variable, HTTP_EMPLOYEEID in the header. Using ASP, I can dump the header info and see that variable/value. But, with a similar CF script, some info, including HTTP_EMPLOYEEID is not there. Any ideas?
I don't have cfflush anywhere in web page and cookie is not being set. It was working in cf9
We need to upgrade from sql server 2000 to 2008, but for now we don't have the resources to upgrade the cold fusion8. Will coldfusion8 works with sql server 2008 even though it's not supported?
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSd160b5fdf5100e8f-4439fdac128193edfd6-7eff.html
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f8e.html
We're currently is using ColdFusion8 and need to upgrade the database from SQL Server 2000 to 2008. Will ColdFusion8 work with SQL Server 2008 compatibility level 90?
Our clients tend to enter both single angle brackers (i.e. "hours <4") and the HTML tags into a form field. We can not use HTMLEditFormat() on the field since they want their formatting preserved. At the same time, using a single bracket trancates the field output. Is there a way to distinguish a single "<" from the beginning of an HTML tag so we can internally substitute it with &lt;?Thanks for your advice!
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.