Questions
Recently active
Hello,I'm in the middle of a project that is using AJAX and remote CFC's to allow data from the client side to interact with the server. This is an add-on for an existing application and am having a bit of difficulty figuring out the best way to secure a remote CFC. My jQuery makes the call to the CFC and returns the data as expected, but anyone can call the CFC directly with the right parameters and have the data returned.I had tried a scenario where the CFC queries my the authentication log in my database and checks for a current login based on a user ID, however I've figured out the hard way that you can't nest a second query inside of a single function. Here's my code:<cffunction name="getSubCategoryAID" access="remote" returntype="query" returnformat="JSON" > <cfargument name="userID" type="numeric" required="true"> <cfque
I need to let user enter the new value does not exist in the list and add a new record for the user using CFSELECT.Does CFSELECT have the option to let user to enter a data not in the list?Your help and information is great appreciated,regards,Iccsi,
I have a CFSELECT like following and I need sometime sort by MyCode and sometime sort by MyNamelike following code<cfif (isDefined("form.MyID") AND form.MyID EQ MySP.MyID)>selected="selected"</cfif>>#MySP.MyCode# - #MySP.MyName#</option>or<cfif (isDefined("form.MyID") AND form.MyID EQ MySP.MyID)>selected="selected"</cfif>>#MySP.MyName# - #MySP.MyName#</option>I need switch MyName and MyCode and change sort order at run time.Are there any place I can use CFIF to compare the condition to change?Your help and information is great appreciated,regards,Iccsi, <cfselect name="MyList" id="myList" > <option value=""> </option> <cfoutput query="MySP"> <option value="#MySP.MyID#" <cfif (isDefined("form.MyID") AND form.MyID EQ MySP.MyID)>selected="selected"</cfif>>#MySP.MyCode# - #MySP.MyName#</optio
I have deployed two test sites, using Adobe's own example code for application based user security, copied in its entirety from the Adobe website. One test site is in ColdFusion 8, one is ColdFusion 10. The code and databases are identical on both sites. I added cfdump output to monitor session variables and login status as they are set.Test Site ColdFusion 8: http://cf8loginadobe.cimhost.com/securitytest.cfmTest Site ColdFusion 10: http://cf10loginadobe.cimhost.com/securitytest.cfmLogging in using a user of "Bob" and password of "secret" demonstrates the failure in CF10. Initially it appears login was successful, but note that the cfdump of the session does not show a cfauthorization_orders value in CF10, where in CF8 the value is present.In CF8 subsequent visits to the same URL after login correctly retain the logged in user status and do not present the login form. In CF10, no session was actually created for the user, and therefore subsequent visits to the same URL prompt for login
This code excutes on Coldfusion 10... However, Why does it not excute on Coldfusion 8.The line in red is where it fails.<cfscript>if (IsDefined("FORM.fName") AND IsDefined("FORM.lName") AND IsDefined("FORM.email") AND IsDefined("FORM.lms") AND IsDefined("FORM.updated_lms")) {if (FORM.fName NEQ "" AND FORM.lName NEQ "" AND FORM.email NEQ "" AND FORM.lms NEQ "" AND FORM.updated_lms NEQ "") {if (IsNumeric(FORM.lms) AND IsNumeric(FORM.updated_lms)) { //If LMS Numbers are EQUAL THEN UPDATE OTHERWISE check to see if new LMS Number exists IF NOT THEN UPDATE if (FORM.lms EQ FORM.updated_lms) { try { runquery = updateTraineeUser(); } catch(any excpt) { WriteOutput("<p class=""error"">The application was unable to perform a required o
I want to user to upload attachement to my upload directory like followingC:\inetpub\wwwroot\MySite\Test\uploadFile<cfset strPath = ExpandPath( "./" ) /> <cfset strPath = GetDirectoryFromPath(GetCurrentTemplatePath()) /><cfoutput> #strPath#</cfoutput>I use above code which gives me the following path.C:\inetpub\wwwroot\MySite\Test\Are there any way to add \uploadFile to the return path?Your help and information is great appreciated,regards,Iccsi,
Hi there,I need to pass the companyId into the cfc but i keep gettting an error, does any know?- thanksYou cannot specify more arguments to a CFC function than it declares. Error parsing bind cfc:cfc.query.getCustName({cfautosuggestvalue},{request.compERP.compID}) .cfm<cfinput type="text" name="cust_name" id="cust_name" size="50" autosuggest="cfc:cfc.query.getCustName({cfautosuggestvalue},compID=request.defaultcompId.compID})" > .cfc<cffunction name="getCustName" access="remote" returntype="array"> <cfargument name="search" type="any" required="yes" default="" /> <cfargument name="CompID" type="numeric" required="yes" /> <!--- Define variables ---> <cfset var qCust=""> <cfset var result=ArrayNew(1)> <cfquery name="qCust" datasource="devlivery" > select cust_name from customer WHERE lower(cust_name) LIKE lower('#ARGUMENTS.search#%')
I need to get a java.util.Calendar object for a webservice.Using CreateObject("java", "coldfusion.util.DateUtils").getCalendar(Now()) works fantastic, except I have to allow access to internal ColdFusion Java components, which I'd prefer not to do.Is there an easy alternative?
Hi,I installed CF10 on mac using this link:http://iknowkungfoo.com/blog/index.cfm/2013/2/27/Installing-ColdFusion-10-on-OSX-108-Mountain-LionThe CF server is working.I was fine until the step 8 on OSX Sites. I can see fine the file from the step 7 "http://localhost/~username/index.htm", means that apache also is working fine.Why I cannot see the current time from "http://localhost/~username/index.cfm"? I only see the content of the file <cfoutput>#now()#</cfoutput>Any ideas how to fix or test this?I will install flash builder 4.7 after to work with CF10.Thanks
I have a script that is pulling in data from an excel document using cfspreedsheet, performing data checks, and inserting the data into the appropriate tables. Each XLS document only has about 1000 records. The scripts are wrapped in a CFTransaction tag to ensure rollback if the script errors.When I run these scripts they will succeed if I'm only importing around 400 records or less. If I try to import any more than that I receive a 500 server error from IIS. I'm guessing that this is some sort of timeout issue. In order to try and force the success of the script, I upped the requesttimeout setting to 900000. This did not solve the problem.Can anyone tell me how to troubleshoot and/or fix this problem?<cfsetting requesttimeout="900000" showdebugoutput="true"&
Ok so I knwo how hold Coldfusion MX 7 is and that there is no official support from adobe anymore, but unfortunately a client I am working with has a Coldfusion MX 7.0 server and they do not want to upgrade. I would like to at least get all the available hotfixes and updates installed for them but I cant seem to find the downloads for them anywhere. Does anyone knwo where I can get these?
I want to create a sub folder at run time and want to use cfdirectory to create new diretory.I do not see override option on the cfdirectory tag, it seems that I need to use FileExists to check before create,Please let me know if I am wrong,Your information and help is great appreciated,regards,Iccsi,
Folks,How do I to know file size in an image file before upload?I have a form and these can only accept image files with until 2mb, and jpg extension.Anyone have a tip for this?tksFabiano Magno Pechibella
Ok, I give up. So soon? So I am using cflayout, cflayoutarea stuff. And in my code I have a bug. But I can't find it. Why? Because CF10 is not showing it to me. It is hidden. Normally when outside a cflayout (or sometimes in one) instead of getting the huge usual error listing all over your screen, instead I get a sort of pop up window ... Error retriving markup for element "element name": and the element name is the tab ... I am using nested cflayouts. enable debugging by adding cfdebug to the URL. When I do that all I get is a red line telling me nothing else. How does one determine what the problem is under such a scenario?
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7a23.html
Long story short, we are installing Groupwise WebAccess on our ColdFusion 10 web server to offer webmail, and it is hard-coded to use the jakarta directory for it's own ISAPI_redirect.dll. ColdFusion was installed and integrated into IIS 7.5 rather than set to run standalone.I'm not sure if the underlying Tomcat services that ColdFusion installs are being utilized, but I know that it requires the jakarta folder to run CF. So is it possible to configure somewhere in CF's files a different name of this virtual directory? I could create a cf-jakarta and map it to CF's ISAPI_redirect.dll file and this should not conflict with WebAccess' need for it's own ISAPI_redirect.dll.
I have upgraded My coldfusion 9 to use 64 bit JDK rather than 32 bit. But it still says 32 .When I try to get informtion through server variable.sun.arch.data.model 32 sun.boot.class.path /data/www/jdk/jdk1.5.0_14_64bit/jre/lib/rt.jar:/data/www/jdk/jdk1.5.0_14_64bit/jre/lib/i18n.jar:/data/www/jdk/jdk1.5.0_14_64bit/jre/lib/sunrsasign.jar:/data/www/jdk/jdk1.5.0_14_64bit/jre/lib/jsse.jar:/data/www/jdk/jdk1.5.0_14_64bit/jre/lib/jce.jar:/data/www/jdk/jdk1.5.0_14_64bit/jre/lib/charsets.jar:/data/www/jdk/jdk1.5.0_14_64bit/jre/classes Jrun Version 4.0Coldfusion 9.0SunOS 5.10 Generic_142900-02 sun4v sparc SUNW,T5140Thanks
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSAC308487-F029-4f89-BAFB-B410E145E86E.html
I use following code to have upload file contorols on the form.I has a button which has caption "choose file" on the left and have a label to show file name when user select the file.I want to have Browse caption on the button and to have the button on the right side and to have a text box to store file name text.I would like to know if it possible to use any property or attibute to configure, if not, then the only solution I need to use JavaScript to configure my controls.Your information and help is great appreciated,Regards,Iccsi,<cfif isdefined("form.submit_upload")><cffile action="UPLOAD" filefield="file_path" destination="Mypath" nameconflict="MAKEUNIQUE">File Uploaded!</cfif> <cfform action="fileupload1.cfm" method="POST" name="frmupload" enctype="multipart/form-data"><cfinput type="file" name="file_path" id="Browser" value="Browser"><br /><cfinput type="submit" name="submit_upload" value="upload"></cfform>
I am currently trying to learn CF10, Originally I installed the standalone developer edition, recently I decided to go ahead with the enterprise edition. My issue is that when I go to system info to update my license it applies it & saves but yet it still shows developer edition.I also tried a clean install, I still got no results.Am I missing some setting or critical step that needs to be done in order to get it in enterprise mode? I already validated and registered my license so I know that is ruled out. Any ideas? suggestions? I am in dire straits over this
Hi Folks,Here I am, one more time to ask the gurus how create graphics with the tag cfchart to mobile application.Anyone know or would developed some app this type?Hugs from BrazilFabiano Magno Pechibella
I'm currently running ColdFusion Version 8. we are in the process of purchasing "Adobe Coldfusion Enterprise 10 Platinum Annual Support Subscription" will that cover the upgrades and updates to the latest version of ColdFusion?
We are getting aCould not initialize class coldfusion.monitor.event.RequestMonitorEventProcessor error. We cannot access the CF Administrator either. We are running CF 9.0 Standard Edition on Windows 2003. Trace below.It seems that CF is trying to start a service that is not enabled for the Standard Edition. My questions:1. Is my hunch above correct?2. Is there a way to remedy this issue without accessing the CF Administrator?Thanks all!Error and trace:java.lang.NoClassDefFoundError: Could not initialize class coldfusion.monitor.event.RequestMonitorEventProcessor at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:38) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servl
Here is how to reproduce the issue.Platform: Redhat Linux 6Step 1: Install Apache HTTPD 2.2.24 in /web/httpd, use the normal port 80Step 2: Install CF 10 in /web/coldfusion10 and connect it with Apache installation in step 1Step 3: Install another Apache HTTPD 2.2.24 in /web/httpd_82 and using port 82Step 4: Run "cf_root/runtime/bin/wsconfig ws apache -dir /web/httpd_82/conf -v" to connect Apache installation in step 3 with CF 10Step 5: Create "test.cfm" file in /web/httpd_82/htdocs, and add this statement to the file "<cfoutput> #CGI.SERVER_PORT# </cfoutput>With a browser, go to this url http://mywebserver:82/test.cfm. The expected output is "82", but the it shows "80. CF 8 does not have this issue.I've installed hotfix update 11, but the issue still persists.Thanks for any help.
Hi,I am succesfully storing away into the database each individuals cgi.http_user_agent.What a want to do is chop out the browser/platform and version number from the string and display it in a cfgraph for stat puposes. Is there any easy way of doing this?Does somebody have a function I can look at/use? Many thanks,George
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.