Questions
Als letztes aktiv
Hello, everyone,I'm trying to use Regular Expressions on the server-side for data validation from a form. I am not using CFFORM, so will not be using the validate attribute of the CFINPUT, etc.Basically, I've got the form being submit to the server via AJaX, and I'm using CFMatch() to check the input.The following works (inside CFSCRIPT tags): zipMask = "^\d{5}(-\d{4|)?$"; if(arrayLen(REmatchNoCase(zipMask,form.zipCode)) eq 0){ return "Zip Code is not in correct format."; } So, if a user enters "12345-6789", it's considered valid. If a user enters "12345&8765", it's not.What isn't working: coNameMask = "^[A-Za-z0-9]?$"; if(arrayLen(REmatchNoCase(coNameMask,form.companyName)) eq 0){ return "Company Name contains illegal characters."; } This will return as an error no matter what I put in the field.Thoughts, suggestions?V/r,^_^
Create an array, which is holding ‘n’ strings (words), , and implement the functionality to search given string is present in the array. Give an option to the user to enter the word to be searchedCreate a static array of ‘n’ numbers , and implement the functionality to search given number is present in the array. Give an option to the user to enter the number to be searchedImplement the functionality to search given word is present with in the predefined sentence. Give an option to the user to enter the word to be searched
Gentlepersons of Adobe.com,We have an application that uses symlink'ed directories in a CF webroot on Apache. This has worked fine on CF8, and CF9, but is now broken on CF 10. By broken, I mean Apache/CF do not "see" the files and 404s result.At the suggestion of Ben Nadel, I tried modifying /opt/coldfusion10/cfusion/runtime/conf/server.xml, adding allowLinking="true" to a Context node. This did not work. Link here. I also tried modifying my apache site config, adding a FollowSymLinks option to my directory node. This didn't work.I went into the CF administrator and added mappings for the symlinked directories in question. This also did not work.Has anyone had success or have ideas on how to configure CF10 to follow symlinks?
I'm trying to migrate all the ColdFusion database calls to a c# dll which will be shared with both ASP.Net and ColdFusion in order to kept a single set of classes and methods that perform database operations so that as we migrate from SQL2008 to 2012 updating the code would be centralized in one location as oppose to updating multiple applications. But I haven't found a way of actually passing the ColdFusion DSN Connection Information, is it even possible? The DLL Class Library would reside on the ColdFusion Server so it should be able to see the DSNS.My only other choice is to have the ColdFusion Application Programmer pass me the name of the DSN and I would have to create the Connection String in my dll class library. If any of you have come across this issue any information would be helpful. Personnally I don't like using DSN, but I was told by the Programmer that was the easiest way for ColdFusion to communicate with the database.
Anyone have a link to CF9 installer for Mac OSX? Need to set up in dev environment. The ones I have found so far won't open as they state that are damaged
I've created a Java Socket Gateway in ColdFusion to talk to a 3rd party API. User requests their credit balance by clicking a button. On clicking the button, a socket is opened with the 3rd party server in CFML, it sends a gateway message (request for balance) and the template request ends. A listener CFC waits for a response, and receives data back 15 seconds later and deals with the results but in a different request. I'm not sure how I give these results back to the user as it's not completed in the same request? Do I look at web sockets, node.js, CF web sockets or just poll with ajax?I'm new to socket communication and the api I'm using and unsure of how to proceed, can anyone offer any advice or tips?CheersShaun
HiWhen I open CFBuilder 3 I get the following error for all of the files that were open when I closed the app:No editor descriptor for id org.eclipse.ui.internal.emptyEditorTabI have to close the tab and open the file again. Has anyone else seen this behavior?Thanks,Rich
Hi, We want to move our website to a new host, we buy the license like 4 or 5 years ago.The current version of ColdFusion is: 10,0,0,282462. we want to know if we migrate to the new server, can we still use the old license or do we need to buy a new one, another thing is can we still use the version 10 or do we need to update it the latest one.If we can using the old license please tell me how. Thx
Hi,I am facing issue with <cfhttpparam> tag.<cfhttpparam type="URL" name="auth_token" value="#strJsonData.result.authToken#" encoded="false" />Here the value send strips new line because of which on the other end i am not able to fetch data w.r.t that valueThanks and RegardsVikrantraje
Hi ,I am trying to send data from one cfm page to other..I used scopes but still didn't succeedPlease helpThanks and RegardsVikrantraje
I can check whether a query results contains any record count or not in any of the following ways.1 <cfif myQueryObject.recordCount> ---- some logic ---- </cfif>2 <cfif myQueryObject.recordCount GT 0> ---- some logic ---- </cfif>Can any one guide me saying which one will provide a better performance.Your timely help is well appreciated.
Could anyone help?Javascript fixMe() work properly in IE but not work in Chrome.Sample script<SCRIPT language="JavaScript"><!--function showErrorMessage(form, ctrl, value, message){ alert("The value " + value + " of the " + ctrl + " field " + message);} function initGrid() {ColdFusion.Grid.getGridObject('printpayment_grid').getSelectionModel().singleSelect = false;}function fixMe() { obj = ColdFusion.Grid.getSelectedRows('printpayment_grid'); var selected1 = ""; for(var i=0; i<obj.length; i++) { if(selected1 == "") selected1 = obj.C_VENDOR_NAME_PR; else selected1 += "," + obj.C_VENDOR_NAME_PR; } document.getElementById('selected1').value = selected1; return true;} \\--></SCRIPT>
Trying to set up a DSN for a SQL Server database on a new computer and it's failing every time.Connection verification failed for data source: csfjava.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: SANDYPC:1433. Reason: Connection refused: connectThe root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: SANDYPC:1433. Reason: Connection refused: connectNow, when I installed CF 11, it installed on port 8500. However, when I try changing the port in the setup to 8500, I get this error:Connection verification failed for data source: csf java.sql.SQLException: Timed out trying to establish connection The root cause was that: java.sql.SQLException: Timed out trying to establish connectionI cannot find anything online on how to fix this! HELP!!!
I'm receiving the following error when I try to add a DSN: The ColdFusion ODBC Server service is not running or has not been installedIn trying to resolve that error, I discovered that other than ColdFusion 10 Application Server, there are literally no ColdFusion services listed -- running, stopped, or otherwise. 1: Is this normal? 2: How do I install, start or register those services? Clearly they're needed.
I'm new to Cold Fusion Reports. I'm familiar with Crystal Reports. I need to perform a distinct count of one of the fields in the report and display it on the report. But I can't find that function anywhere. I've been looking for cold fusion report builder texts and web sites with no luck. Can anybody help me with this? Or point me to a good resource for building reports with Cold Fusion Report Builder?
We have a new install windows server 2012 R2 with a new install CF11 standard installed on C drive. Everything is 64bit. The CF administrator site and login works fine. cfm files will not serve up in the default directory, but IIS shows htm files fine. CF administrator runs fine.Web Server Config tool will only show "None" in the IIS Web Site box. The usual CGI, APS, etc have been installed on IIS. In fact IIS and CF11 have been reinstalled. wsconfig.exe manual run shows no errors.The problem is that any call to a cfm template results in an error (html pages serve fine):HTTP Error 500.0 - Internal Server ErrorThe page cannot be displayed because an internal server error has occurred.Detailed Error Information:Module IsapiModuleNotification ExecuteRequestHandlerHandler cfmHandlerError Code 0x8007007fRequested URL&nb
hi i am using coldfusion 11 and i used steralize json function to convert query to JSOn.[{"SERVER_ID":53,"NAME":"kirantest222","TYPE_ID":1,"UPDATED_NAME":null}]when i am trying to read in jquery , error is happening.could some one please give me some hint how to read this type of data in jquery?Thanks
For the first time I'm using CFFORMGROUP and it is the perfect solution to my many forms for users to fill in. Using cfformgroup I created 4 tabs and each has a form with its required fields. The problem is, when I tested the pop up window without filling in all the required form fields, the pop up window freeze up my screen. There nothing I can do but log out and log back in. When clicking the submit button, the pop up windows shows all the required fields from all four tabs instead of showing just the required fields from one selected tab. Maybe there are too many to show at once? is this a bug or I did it wrong? I googled and can't find too many posting about <cfform name="TestForm" method="post" action="TEST.CFM" width="650" height="820" format="Flash"> <cfformgroup type="tabnavigator" style="marginTop:0; background-color:##EFEFEF;"> <cfformgroup type="page" label="Registration 1"> <cfoutput query="RegDetails"> <cfinclude emplate="
Just a heads up, I am a network guy posting for one of our developers who is too busy to take this on himself.We were running a CF 9 production application and recently updated to CF 11. There are a few QoQ's that are now broken since the update.I am not going to pretend like I know what I am talking about, but in CF 9, the following query returns the correct results, Toyota and Honda. In CF 11, it does not and we think its because the "TYT" and "HND" have trailing spaces. <cfset list=queryNew("code,description","varchar,varchar")> <cfset queryAddRow(list)> <cfset querySetCell(list,"code","TYT ")> <cfset querySetCell(list,"description","Toyota")> <cfset queryAddRow(list)> <cfset querySetCell(list,"code","HND ")> <cfset querySetCell(list,"description","Honda")> <cfset queryAddRow(list)> <cfset querySetCell(list,"code","HMMR ")> <cfset querySetCell(list,"description","Hummer")> <cfset queryAddRow(list)> <cfset query
I am seeing intermittant instances where URL variables are being changed from what was actually passed in, and I cannot determine how/where/why it's happening.The entire process is to send email with encoded URL's that point back to a server which decodes the URL and redirects the user to the intended web page by using cflocation. The destination is determined through the coding in the URL and has 4 url vars, 2 of which are static.oid= a static 3 digit valuetag = a static random length alphanumeric, generally 8 characters or lessuid = dynamically assigned before the redirec, alphanumeric 13-24 characterssid = dynamically assigned before the redirect, alphanumeric 24 charactersWhat I can say about the mangling is that when a value is only alpha it is being rot13'd (characters are being changed to the 13th next character in the alphabet, starting at A after Z). When it's numeric it has additional numbers appended, and when it's mixed alpha and numeric both are happening but I
I have a report that groups by program code. The values in program code are Undergrad, UndergradTr, UndergradIntl.I want the Undergrad in one group and all the rest in a different group.Any thoughts?
Is there a way to passed data calculated in a subreport back to the main report?
Hi-I want to print my reports Horizontally rather vertically using Coldfusion Report Builder. I am using a very simple querySELECT Zones.Zone_id, Zones.Zone_name, Count(employees.cnic) as Employees FROM Zones, Employees WHERE Zones.zone_id=Employees.zone_id GROUP BY Zones.zone_nameOr say Daily/Monthly Zone Sale with Zones in Rows and Dates/Months in ColumnsThanksTayyab Hussain
Hi-Coldfusion Report Builder by default displays result vertically, say, somthing like this:Zone_IDZone_NameNo. of Emplyees1A472B653C1004D32But I want to disply the results HorizontallyZonesABCDNo of Employees476510032Any Ideas how to do so??Thanks
Got an old Java class that was written for CFMX7 and can't get it working in CF10...The class file is WavFileConverter.class (and is in /home/cfx)I've never had it in a .jar as far as I know, when using it with CFMX7.Now when I try to instantiate it, I get:WavFileConverter (wrong name: com/dml/coldfusion/tags/WavFileConverter)The settings in CFAdmin are:Tag Name: CFX_WavFileConverterClass Name: WavFileConverterAnd I have set ColdFusion Class Path of /home/cfx Any suggestions? It's been a long time since I did much CF!
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.