The official community for ColdFusion.
Als letztes aktiv
I am new to coldfusion can someone clear my doubt please.I have a function Test_Func. I want to assign the parameter(input) value to a variable myname).Kindly helpfunction Test_Func(input){ <cfset var myname= " ">}
I am new to coldfusion..I have a doubt.I am having a variable called 'My_name' in 1.cfmHow I can access 'My_name' value from another cfm file (2.cfm).Thanks in advance
I have a script that captures PNG images from a 3rd party server, I then save them on my server using this code, forcing them to 45x45<cfimage action = "resize" height = "45" width = "45" source = "#objImage#" destination = "#newFileName#" overwrite = "yes">The issue I see is that the file sizes are nowhere near as low as they could be, I dropped a few of them into tinypng.com and they can be reduced by as much as 75%, and at least 50% with no noticeable loss in visual quality.The question is, does anybody have a method to compress PNG's? I see that the quality="" is only suitable for JPGSBtw I'm running this on CF8
We have been working to migrate several of our internal CF8 sites over to a new CF11 server. I have only been supporting CF for about a year, so I'm afraid I am not as knowledgeable as I should be.Most of our sites are working correctly; however, we are encountering a unique issue with a site called Workforce Tracking. It utilizes a header variable (RACFGROUPS) that is returned by Siteminder. This is handled by the application.cfm file, with the relevant section below: <cfapplication sessionmanagement="Yes" clientmanagement="Yes" sessiontimeout="#CreateTimeSpan(0,4,0,0)#" name="WorkforceTrackingTrack"> <cf_servername> <cfset AppName = "Workforce Tracking - Jobs"> <!--- Siteminder method ---> <cfloop index="aGroup" list="#RACFGROUPS#" delimiters="^"> <cfif #ucase(aGroup)# EQ "URXWTAAA" or ucase(aGroup) eq "UA09999"> When I navigate to devworkforcetracking2.localnetwork.com/Jobs/, the default index.cfm page gets loaded, the application file is
How do i upgrade coldfusion mx 7 to 11 or any documentation about the upgrade?
I'm trying to help a client with getting Cold Fusion 11 running with IIS 8.5 on 2012 R2.It's been installed and a default document has been assigned - "home.cfm". If you visit the web site: http://website/ it works. If you visit http://website/home.cfm, you get an HTTP Error 500.0:Module IsapiModuleNotification ExecuteRequestHandlerHandler ISAPI-dllError Code 0x80004005Requested URL http://website:80/jakarta/isapi_redirect.dllPhysical Path C:\server\path\jakarta\isapi_redirect.dllLogon Method AnonymousLogon User AnonymousThe same error results on any attempt to load any CFM page by page name - again, they only load if no file name has been specified in the URL and the page in question is the default document.Meanwhile, the CF Admin site works just fine.Running 11,0,05,293506
how to publish my web on intranet. !
I have a ColdFusion 8 site that runs fine on an old Windows 2003 server that needs to be decommissioned. I’ve been able to test the site on a VMware Windows 2003 server image and that works well. I just install IIS, move the site folder into “C:\inetpub\wwwroot\” then install ColdFusion 8 and add one ColdFusion data source to an MDB file.I need to move it to a new 2012 Server and when I do the same as above on a Windows 7 32-bit or Windows 2012 Server 64-bit with ColdFusion 11 the default.html page that just opens the login.cfm page get stuck in a loop with the URLs flashing back and forth with an empty webpage.I know there are some issues with 32 vs 64-bit but I have the same issue in Windows 7 Windows 7 32-bit or Windows 2012 Server 64-bit but I think I'll have more issues if I can get passed this first one as the data source on Windows 2012 Server 64-bit fails the verify:Connection verification failed for data source: OMS-HAYWARD java.sql.SQLException: [Macromedia][SequeLink JDBC Dr
Hi everyone. I am trying to create some drop down menus where if you do a selection in the first drop down menu, the second drop down menu will display. I have this working on 2 drop down menus,but the problem I'm having is if I choose something out of the first drop down menu and then change my mind and want to choose something else, the page goes blank. If I change it to something else in the first drop down, it should display all the results in drop down 2 according to what I chose in drop down 1. It does do this the first time if I choose the correct thing the first time, but if I try to change drop down 1, the page goes blank. What am I doing wrong? Here's the code I have:<!--- store the selected Main_Group variable variable after the first select boxes submits itself ---><cfif NOT isDefined("form.submit")> <cfif isDefined('form.select_PinCount') AND form.select_PinCount NEQ ""> <cfset page.select_PinCount = form.select_PinCount> </cfif
I have the following saved page setup as a "Scheduled Task" in CF9.- Occasional the connection fails and the "AC_ACCT.csv" file-size is saved as a 0k file- How would I alter this page to do a check on that csv file, and rerun the page until it is no longer 0k?In summary, run the page, check the saved csv file, if >0k then end, if =0k then rerun the page again. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>MBS Web Service Call</title> </head> <!--- Create a variable for the URL ---> <cfset theURL = "https://domain.com.php"> <!--- Make the Post Request ---> <cfhttp method="post" url="#theURL#" &nbs
Hi. I am setting up a simple form that will do some calculations to determine the price of something that we are going to cut and sell. First, the user will choose a part number. Then they will type in the dimensions they want in the X_mm and Y_mm boxes. I have a formula in Excel that has other factors for determining the price for the part chosen. There is the cost of the item, the cutting cost we are charging and some other factor. The formula looks like this in Excel: =((E3/(ROUNDDOWN(50/B5, 0)*ROUNDDOWN(50/B6,0)))+E4)*E5 I'm just wondering if I should do this calculation in Cold Fusion or SQL server management studio. We do not want the user to be able to see the formula either. Which way would be easier?Andy
Coldfusion is always including cf_flash_policy_port even though CFForm and CFGrid are set with format="html".How can I eliminate any reference to Flash and still use CFGrid? Some other CFInput tags also seem to trigger this include.Viewing page source shows a line that includes _cf_flash_policy_port=1243;Here is my CFGrid block: <cfgrid name="BuildingResultList" query="getBuildings" &nbs
I have the following working page but not sure how to add in a DateTimeFormat function?Here is my current page and what I tried, but get error: Variable DATETIMEFORMAT is undefined.Here is the online link to image: http://screencast.com/t/MKYrH1Lkp
All, Just did a fresh install of ColdFusion 11 on a brand new instance of Windows Server 2012 Standard, 64 bit. Attempting to add a site, and getting an IIS error 404 2 1260, which is the sub_code for "ERROR_ACCESS_DISABLED_BY_POLICY" I have ensured that the user account connecting to the app from ColdFusion has the requisite permissions to the filesystem. Any insight or tips would be appreciated.Thanks,AJ
Where is the new license price for ColdFusion-11-Standard on Adobe's CF11 page? Adobe ColdFusion 11 FamilyI couldn't find it anywhere on Abobe's sites. I chatted with sales support and they sent me to the link above. I believe it's $1,499, but you should fix this unless there is some compelling reason to hide this price from the public.
Hi guys, I have a form page/processing page that takes data from a form and then inserts into a database/prints to a PDF via CFDOCUMENT with this on a submit button:<cfinput type="submit" name="submit" value="PRINT" formtarget="_blank" onclick="submitFormOkay = true;">It opens the generated PDF properly into the new tab as expected.My problem is, I can't seem to automatically reload the original tab/page...which has code on it that clears the session variables the form and gets it ready for the next entry.How can I launch this CFDOCUMENT in a new tab, and also refresh the original tab simultaneously?One note: The form page and processing page are the same, separated by IF/THEN's for program flow.Thanks in advance!T
I have two tables of events that I want to join in a query, schoolCal and newSchedules. Both have schedID and event. I would like them to order by the eventDate. My code is:<cfquery name="getevent" Datasource="#application.dsn#">select schoolCal.eventDate, schoolCal.date_end, schoolCal.event, newSchedules.eventDate, newSchedules.eventfrom schoolCal,newScheduleswhere schoolCal.schedID = newSchedules.schedIDorder by eventDate</cfquery>Two problems, the largest problem the newSchedules table is not showing up in the output and I get an error when I try to order by eventDateHow do I get both tables to show and how do I get the cfquery to order by eventDate?
Hi, every one.Nowadays, I have some works with Adobe FLEX Builder 2.0.I have downloaded the FLEX builder 2.0.1 and installed.After that, I have to install ColdFusion extensions for Flex Builder 2.0.It needs that the ColdFusion MX 7.0.2 should be installed.I tried googling and downloaded ColdFusion MX 7.0.0 and installed.But I can not find CFMX 7.0.2 installer.Could anyone please help me ??????????????Thanks for your reading.Regards.
Migrating from ColdFusion MX7 to ColdFusion 10 running on Server 2012. Scheduled task that work on older server are not working on new server. At the end of schedule task they write to an output file and all I get is Connection Failure.Through googling I found where you need to import certificate to keystore and I did all that but still get error.What am I missing?Thank you in advance,Leslie
So I realize that the new CF11 mobile features have been received with some very mixed reviews, but I wanted to try them out to see if I could use them for some really simple device detection, however I cannot get anything to actually work.For example, I am looking at the doc for cfclientsettings, specifically at the first example on the page under the "Device detection" heading. Here's the code for reference (I formatted it a little to ensure it's easy to read here):<cfClientSettings detectDevice=true /> <cfclient><cffunction access="public" name="showCanvasSupport" returntype="void"> <cfset evalStr = "document.getElementById('canvas').innerHTML='" & cfclient.canvas & "'"></cffunction></cfclient>Canvas support -<b id="canvas"></b><br><button onclick="invokeCFClientFunction('showCanvasSupport',null)">Show canvas support</button>Creating a new .cfm page and adding this code produces the text and button on th
I hope some help is out there. I will post the error message at the end of this post. I can't verify a datasource in Administrator. this is the error:Connection verification failed for data source: DHDataWeb_Dev java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: 127.0.0.1:1433. Reason: Connection refused: connect The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: 127.0.0.1:1433. Reason: Connection refused: connectAny help would be greatly appreciated. I know this should be very easy, but I can't get it to work. I am running Windows 7 SP1, My SQL database, web server (IIS 7) and CF server are all running on the same box.Thanks in advance.....Didger (who is most confused)
Can one use optional argument for a GET REST service? For example:http://somesite/rest/someservice/{year}/orhttp://somesite/rest/someservice/{year}/{catalognumber}In the first case, it returns all the catalog information given a year. In the second case, it only returns information for a given year and catalognumber?How may I proceed in accomplishing that? Thanks in advance.
Can one use optional arguments for a REST web service? Example:http://somesite/rest/someservice/{year}/ or http://somesite/rest/someservice/{year}/{cataglognumber}whereThe first uri returns all the catalog items given a year andThe second uri only returns the information given a year and a specific catalog numberHow may I go about doing that? Thanks in advance
Is there any way to clean these javascript files?/cfide/scripts/ajax/yui/animation/animation-min.js /cfide/scripts/ajax/yui/calendar/calendar-min.js /cfide/scripts/ajax/yui/yahoo-dom-event/yahoo-dom-event.jsCVE-2010-4710 : Cross-site scripting (XSS) vulnerability in the addItem method in the Menu widget in YUI before 2.9.0 al…
Hello, all,I've been working for weeks on a form that will (when submit) generate an Excel spreadsheet, then attach said spreadsheet to an email and send it off.Basically, once a form has been submit (and after the form data has been validated, server-side), my code takes the form scope, and uses <cfscript> with SpreadsheetNew, SpreadsheetFormatRows, SpreadsheetFormatColumns, SpreadsheetSetCellValue, etc., to generate an Excel object. Then, I use CFMAILPARAM inside a CFMAIL tag to set the object as an attachment, and place the email in spool.It was working flawlessly, last week (as of Friday, before I left to go home.) Suddenly, this morning (Monday), it is not working.I have not changed any code. Our SA has not updated, upgraded, or changed anything - not the physical server, not the Apache server, not the ColdFusion Server.The CF logs are showing one line, each: "The {log name} log has initialized." That's it. Nothing more.Has anyone el
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.