Questions
Als letztes aktiv
<cfform action= "#cgi.script_name#?#cgi.query_string#" method="post" name="MyForm" enctype="multipart/form-data">I want to keep current action string when user upload file.I have above code and add myform.myTextControlValue after "#cgi.script_name#?#cgi.query_string#" to keep my parameter.I tried the following to replace cgi.query_string, is it the right way to handle string like following code or any other solutions?Your help and information is great appreciated,Regards,Iccsi,<cfset q = reReplaceNoCase(cgi.query_string, cgi.query_string, "MyForm.cfm&MyValue=" & #form.MyValue#)> <cfform action= "#cgi.script_name#?#q#" method="post" name="MyForm" enctype="multipart/form-data">
I am trying to create a facebook connect page and am getting stuck at a seemingly triffle issue because I cannot parse correctly.I send my information to Facebook for authenticationhttps://graph.facebook.com/oauth/authorize?type=user_agent&client_id=xxxxxxx&redirect_uri=http://mydomain.com/mypage.cfm&scope=read_stream,offline_accessFacebook authenticates the user and sends back the access_token which is needed for all calls thereafter to the redirect_uri page in the following formhttp://mydomain.com/mypage.cfm#access_token=xxxxxxxxxxxxxxxxxxxxxxxNow, I need to get the access_token so I can make the subsequent calls, but I am not able to extract the value of the access_token using coldfusion. It seems like a very easy thing but I am stuck at this point. If it was of the usual "?access_token=xxxx" form then it would have been a piece of cake but the pound sign is preventing me from parsing it. Anyone have any idea?
I've done some searching and didn't find much as to issues with either IIS7 or IIS8 and CF10. Does Adobe recommend one over the other?Thanks in advance for any help on this.
Hello,We are running CF 9.01 standard on IIS 6 (Windows server 2003) on mutiple servers. I've noticing a few instances of these errors on every server, almost on a daily bases:10/28 13:32:26 error Error while reading header HTTPREFERERjava.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)------NOTE: the header name can be anything, but the stack always starts like this.A few times, yesterday for example, a server can suddenly show tons of these errors and then it becomes unresponsive, with queued CFM requests. Only a restart of the service frees this condition.Our CFM pages perform a lot of CFHTTP calls, 99% of the time to localhost; in any case the local network is very solid. At the same time CFM is having these issues other pages, for example .NET pages, work perfectly.any
Good Day All.I have the following code the will randomly get an image from a folder.It works Great.Now what i would like to do is add that image as an inline image in my email signature.eg <img src="http://websiteadd/getsingle.cfm">However this does not work.here is the code of the CFM page.<cfset imagesFolder = "#dirlocation##dirspace#images#dirspace#stock#dirspace#temp" /><!--- code to look in directory, choose one image at random ---><cfdirectory directory="#dirlocation##dirspace#images#dirspace#stock#dirspace#temp" filter="*.jpg" name="getPics" action="list"/><cfset maxrows = getPics.recordCount/><cfset startRow = randRange(1, maxrows)/><!--- if one or more photos was found ---><cfif maxrows gt 0> <div class="showPic"> <cfoutput query="getPics" startrow="#startRow#" maxrows="1"><cfheader name="content-disposition" value="attachment; filename=#name#.jpg" /><cfcontent file="#dirlo
Windows Server 2008 R2 Standard + IIS + CF8When I access the http://127.0.0.1/CFIDE/administrator/index.cfm, I goet error which says "The DataSource service is not available."I googled solution and use the neo-datasource.bak to replace my neo-datasource.xml. But it did not work.Could anyone met this error before and give me a solution for this?Please see the detailed into below:The DataSource service is not available. This exception is usually caused by service startup failure. Check your server configuration. The error occurred in Application.cfm: line 87Called from Application.cfm: line 4Called from Application.cfm: line 1-1 : Unable to display error's location in a CFML template. Resources: Check the ColdFusion documentation to verify that you are using the correct syntax. Search the Knowledge Base to find a solution to your problem. Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.
Gurus,I heard lot about CF. So trying to see what it got. I am installing CF 9 multiserver with multiple instances to the cluster. My question is 1. On production server, will you advice to select REPLICATE SESSION and STICKY SESSION or only STICKY SESSION to stick the request on same server ?2. I am not able to view my CFUSION administrator after I link cluster to the default web site, using webserver configuration tool. How to get the CFUSION administrator screen working ? Please advice so that I can continue working with Coldfusion !!Thanks,Susan
I use select controls for jQuery AutoComplete. Because jQuery Auto complete does not filter server return data, my cfquery returns thousands records to auto complete which has performance issue.here is my code to have my list and cfquery.My query returns thousands recrods and jQuery auto complete does not filter the records. I am looking a way to limit records return from user type on the dropdown box I would like to know is it possible to have my cfquery smart enough to get only records I need for jQuery auto complete.Your help and information is great appreciated,Regards,Iccsi,<select name="Mylst" id="Mylst" > <cfoutput query="MySP"> <option value="#MySP.MyID#" <cfif (isDefined("form.MyID") AND form.MyID EQ MySP.MyID) >selected="selected"</cfif>>#MySP.MyName#</option> &nb
I have an applicaiton to support English, French and Spanish.There are some characters with accent on the top for French and Spanish shows funny characters on the web pages.I see some web site can display those characters correctly.I would like to know are there any configuarion to do to display those characters correctly.Your help and information is great appreciated,Regards,Iccsi,
I want to create a master details report using CF 10 Report Builder, but I do not find the option.I would like to know should I insert a sub report in to detail band to generate master details report.If not, can you please advise what is the procedures to build master details report using CF 10 Report Builder.Your help and information is great appreciated,regards,iccsi,
I want to use CGI variable to get client information like IP Address, Machine Name and browser name and version,I just get REMOTE_ADDR for IP address, but I can not get machine name using REMOTE_HOST, nor browser information,I would like to know do I need any set at server level to get this client informaiton using CGI variable?If not, are there any server variable available to get client informaiton?Your help and information is great appreciated,Regards,Iccsi,
CF 10; Have a webservice that requires basic auth. Set up just fine via the administrator (as ws1) with username and password. Can use ws1 not problem. However, a few days later, I start getting http 401 auth errors. For some reason, the credentials stop working in cfadmin. The account is just fine. If i hit update webservice, it refreshes the wsdl, and things work fine again for a few days. Is this a common problem? I can specify user/pass in my ws call, but I prefer not having that info sitting in code. Any help?
can't start download after downloading
Slowly and surely I am learning OOP with CF, but I'm stuck at the concept of gateways. In my custom framework, when I want data, I simply do the following:<cfset myData = APPLICATION.coms.data.executeQuery( sql = 'get-open-tickets', data = { 'firstName' = 'Aegis', 'lastName' = 'Kleais' }) />Basically it calls a singleton 'data' component I have stored in APPLICATION.coms and runs an executeQuery method. This takes 2 arguments, sql (the name of the SQL file to load from a repository that contains all the SQL) and data (A structure that allows the sql file in question to reference dynamic data; in the above, the SQL being executed has access to ARGUMENTS.data.firstName and ARGUMENTS.data.lastName.The query is executed, SQL run, data returned, and I'm done.But from what I've gathered about gateways, I'm supposed to create an obje
Hello everybody!We are using CF8.1 and are having problems of generating well designed PDF outputs with CFDOCUMENT. We would like to print out reports, which are hyphenated and have the text aligned. Example:This works fine:<html lang="en"> <STYLE>p { width:260px;background-color:blue;-moz-hyphens: auto; -o-hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; -hyphens: auto;text-align:justify}</STYLE> <P>Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer Haematodynamometer</P></html>This won't:<CFDOCUMENT FORMAT="PDF"><html lang="en"> <STYLE>p { width:260px;background-color:blue;-moz-hyphens: auto; -o-hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; -hyphens: auto;text-align:justify}</STYLE> <P>Haematodynamometer Haematodynamometer Haemato
I get this error after upgrading from CF 9.0.1 to 9.0.2. I applied the cumulative HF 4 for 9.0.1 and then applied 9.0.2 CHF 1.Do I need to apply the previous CHF 2 and 3 for 9.0.1 first?Any ideas would be appreciated.
In my application I am using a form which contains around 70 fields , all are in english language.And there is a drop down in the top right corner of the browser which contains a list of around 30 languages like chineese , japanese , russian etc etc.When I select a language from this drop down my application should convert all the english text to the selected language.Any one have any idea about this , I mean any good approach.
I love CF10's auto generation of accessors, but in the event I wanted to create a Read-Only bean, I'm noticing that when I dump the getMetaData() on the object, that the setProperty() methods are set to Public Access.Does this mean that in order to have Private Access setters I have to tell the component: setter="false" on each property and then manually create a setProperty() method?I'd like to be able to just say: setName( 'value' ) in my code inside the CFC, but not have objectName.setName( 'value' ) accessible from other parts of the application.
Normally, if we wanna clear a session we are doing it with StructClear function. But I can see that it is not actually ending a user's session because the same CFID and CFTOKEN values are existing once we cleared a session. So this means that it is not really ending a session. right ?????. But If we are expiring these cookie values (CFID and CFTOKEN) then we can see new values for these cookie variables. Here we forcing coldfusion to make new values for these cookie variable but actaually it has neither timed out nor has the onSessionEnd() event handler been invoked. Then my question is how the session is actually ending. But it will work if we are using StructClear function because it will clear a business logic identifier that signaled to your business logic.Any one has any thoughts on this.
I created a record set then use the record the record set to create a dynamic data to display all the records of that table from the database.I want to know how to link each record from the table to different URL when displayingI have like five fields in the the table i wan to use the name of each record as a link to anothe different url'Thanks
I have at least 10 sites set up on the same server, using the same settings and one site is giving me the error that the testing server is not mapped to mysite.com/_mmServerScripts/MMHTTPDB.phpI will call the problem site siteXIf I remove the testing server completely I get an unidentified error therefore something is communicating since it knows the difference is I have the remote server set up or not.I can connect to ftp files just fine. I can also connect to the database using navicat.I am testing on the live server NOT local.I changed the ftp info to another site that IS working just to see it if would connect to the database using another sites FTP and I could succesfully connect siteX's database using the other sites FTP credentials.
As part of our Java Update process, I’ve been updating the Java version that our ColdFusion servers (9.0.1 Cumulative Hotfix 4) use from Java 1.6_xx to 1.7_17. Overall, no issues, except… when trying to connect to a couple of internal servers via cfhttp (https).I have imported the existing certs, (that we have been using successfully with Java 1.6_xx) into the 1.7_17 keystore, and yet I get an “I/O Exception: peer not authenticated” error. This in most cases, implies that the certificate is not valid. However, if I point ColdFusion back to Java 1.6_xx , it the cfhttp call works fine. My theory is that, for some reason, the certs are not “quite right” and whereas Java 1.6 accepted them, Java 1.7 is more strict in regards to certs.Has anyone else experienced this, or have some advice?Thanks in advance...
Hi,After that I installation CF10 FULL STANDART my codes in CF have a problem. Every queries with date not working and to working I have chande for <cfqueryparam ....>, but my application WEB is very big and this very difficult. What I have do? Hotfix? This is a BUG?This is error:Error Executing Database Query. [Macromedia][SQLServer JDBC Driver][SQLServer]The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value.Thanks,Eduardo.
I'm using datepicker in a <cfinput> but you can only go forward or backward by one month at a time. Is there a way to add functionality so that you can change the year?Thanks!BCo.
I just did a fresh install to try to fix this but no joy. All settings show that request debugging should work. I've used CF for years and can't figure out why it doesn't work. I didn't enable the "secure server" option either. I'm not using the Eclipse line debugger. Could there be some registry setting balling this up?<cfif IsDebugMode()> Debugging should be working... <cfelse>Nope, Debugging is Disabled</cfif>Any help appreciated.
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.