Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all 5979 articles
Browse latest View live

Problem/Question Regarding Form Variables and Nesting?

$
0
0

Hello,

 

I need to create a rather long list of checkboxes for a user to fill out.  I have created a database table with each checkbox item stored as a row, and using a cfquery I can select them from the database and add them to a form as such:

 

<form action="postact.cfm" method="post">

    

     <cfoutput query="getquestions">

           

            <input type="checkbox" name=#getquestions.shortname#>#getquestions.longname#<br>

 

      </cfoutput>

    

  <input type="submit" value="Submit">

 

</form>

 

The problem is when I try to reference these items on the following page.

 

Instead of naming each one individually, I was hoping to use another query to pull the name of the checkbox, and be able to reference it.

 

Problem seems to be that I can't reference them as a variable name, I thought I could do something like this:

 

<cfoutput query="getquestions">

#form.shortname#

</cfoutput>

 

..but that doesn't work because #form.shortname# isn't a valid variable.  What I really need is #form.#getquestions.shortname##, if that makes sense.  Is that possible?  Nesting a variable name inside a variable name?


Coldfusion 9

$
0
0

Hi,

 

I have this old web application that I'm working on. In the application, I am able to attach files. Does anyone know how to save the files attached to IIS virtual directory?

CFIMAP and Embedded Attachment Download

$
0
0

I have a ColdFusion 9 application I inherited that signs into an Outlook email box then processes email, downloads attachments, and saves emails sent to it into a database for long term storage. This solution is working fine until it gets an email where there are attachments embedded into the message body.

 

The basic process for an email with attachments is as follows:

1. Check for and save new email to database

2. Check for and save listed attachments to storage filer

3. If it has attachments, check to make sure attachments were downloaded.

4. If has attachments and attachments were downloaded, mark email for delete.

5. Email deleted from inbox.

 

The problem I am encountering is in emails where the attachments are embedded into the body of the message.

 

For example, when I output

SUBJECT: My Email with Embedded Images and Documents

ATTACHMENTS: image001.gif image002.gif image003.gif image004.gif image005.gif image006.gif image007.gif 1200084.DOC.DOC

ATTACHMENTFILES:

 

As you can see it says there are ATTACHMENTS, but when you check the ATTACHMENTFILES, there is nothing. When I sign into outlook, I can see the word document listed as an attachment as well as the embedded images inside the message body.

 

So my goal is to write a cleanup script that will finish downloading the attachments on these emails so that we can save them into long term storage and then delete the email from outlook. Does anyone have a solution to download attachments that are embedded into the body of an email message and do not appear in the ATTACHMENTFILES list?

Http status 500 error on new install, says "monitoring service not available"...

$
0
0

I really do not understand this problem. I am relatively new to both tomcat and coldfusion, but I have followed basic instructions.

 

Deploying on Tomcat 7.0.54 and Java 1.8.0.77. This is on CentOS 6.7

 

Coldfusion install log says no errors, 8890 successes. Tomcat at localhost:8080 looks good. Using the JEE WAR file deployment, 30 day trial, production server. I modified Tomcat's web.xml to allow for a 500MB deployment, since the Coldfusion WAR file is almost 300 MB. I will past my Catalina.out file here, since it seems the most relevant. And I really appreciate any help someone can offer.

 

Mar 29, 2016 4:42:59 PM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

Mar 29, 2016 4:43:00 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["http-bio-8080"]

Mar 29, 2016 4:43:00 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["ajp-bio-8009"]

Mar 29, 2016 4:43:00 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 1979 ms

Mar 29, 2016 4:43:01 PM org.apache.catalina.core.StandardService startInternal

INFO: Starting service Catalina

Mar 29, 2016 4:43:01 PM org.apache.catalina.core.StandardEngine startInternal

INFO: Starting Servlet Engine: Apache Tomcat/7.0.54

Mar 29, 2016 4:43:01 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deploying web application archive /opt/apache-tomcat-7.0.54/webapps/cfusion.war

03/29 16:49:48 INFO License Service: Flex 1.5 CF Edition enabled

03/29 16:49:48 INFO Starting Flex 1.5 CF Edition

Mar 29, 2016 16:49:48 PM Information [localhost-startStop-1] - /opt/apache-tomcat-7.0.54/webapps/cfusion/WEB-INF/cfusion/logs/server.log initialized

Mar 29, 2016 16:49:48 PM Information [localhost-startStop-1] - Starting logging...

Mar 29, 2016 16:49:48 PM Information [localhost-startStop-1] - Starting license...

Mar 29, 2016 16:49:48 PM Information [localhost-startStop-1] - Evaluation Edition enabled

Mar 29, 2016 16:49:48 PM Information [localhost-startStop-1] - Starting crypto...

Mar 29, 2016 16:49:49 PM Information [localhost-startStop-1] - Installed JSafe JCE provider: Version 6.201 Crypto-J 6.2.0.1, EMC Corporation. JsafeJCE Security Provider (implements RSA, DSA, ECDSA, Diffie-Hellman, ECDH, AES, DES, Triple DES, DESX, RC2, RC4, RC5, PBE, MD2, MD5, RIPEMD160, SHA1, SHA224, SHA256, SHA384, SHA512, HMAC-MD5, HMAC-RIPEMD160, HMAC-SHA1, HMAC-SHA224, HMAC-SHA256, HMAC-SHA384, HMAC-SHA512, HMACDRBG, HASHDRBG, CTRDRBG, FIPS186PRNG, SHA1PRNG, MD5PRNG; RFC 3394, RFC 5649 AES Key Wrap; X.509 CertificateFactory; PKCS12, PKCS15 KeyStore; X.509V1, PKIX, PKIX-SuiteB, PKIX-SuiteBTLS CertPathValidators; X.509V1, PKIX, PKIX-SuiteB, PKIX-SuiteBTLS CertPathBuilders; LDAP, Collection CertStores)

Mar 29, 2016 16:49:49 PM Information [localhost-startStop-1] - Starting security...

Mar 29, 2016 16:49:50 PM Information [localhost-startStop-1] - Starting scheduler...

Mar 29, 2016 16:49:50 PM Information [localhost-startStop-1] - Starting WatchService...

Mar 29, 2016 16:49:50 PM Information [localhost-startStop-1] - Starting debugging...

Mar 29, 2016 16:49:50 PM Information [localhost-startStop-1] - Starting sql...

Mar 29, 2016 16:49:50 PM Information [localhost-startStop-1] - Starting runtime...

Mar 29, 2016 16:49:52 PM Information [localhost-startStop-1] - CORBA Configuration not enabled

Mar 29, 2016 16:49:52 PM Information [localhost-startStop-1] - Starting mail...

Mar 29, 2016 16:49:52 PM Information [localhost-startStop-1] - Starting cron...

Mar 29, 2016 16:49:52 PM Information [localhost-startStop-1] - Starting registry...

Mar 29, 2016 16:49:52 PM Information [localhost-startStop-1] - Starting client...

Mar 29, 2016 16:49:52 PM Information [localhost-startStop-1] - The metrics service is disabled for the J2EE edition

Mar 29, 2016 16:49:52 PM Information [localhost-startStop-1] - Starting xmlrpc...

Mar 29, 2016 16:49:52 PM Information [localhost-startStop-1] - Starting jaxrs...

Mar 29, 2016 16:49:52 PM Information [localhost-startStop-1] - Starting graphing...

Mar 29, 2016 16:49:52 PM Information [localhost-startStop-1] - Starting solr...

Mar 29, 2016 16:49:52 PM Information [localhost-startStop-1] - Starting archive...

Mar 29, 2016 16:49:52 PM Information [localhost-startStop-1] - Starting document...

Mar 29, 2016 16:49:53 PM Information [localhost-startStop-1] - Starting eventgateway...

Mar 29, 2016 16:49:53 PM Information [localhost-startStop-1] - /opt/apache-tomcat-7.0.54/webapps/cfusion/WEB-INF/cfusion/logs/eventgateway.log initialized

Mar 29, 2016 16:49:53 PM Information [localhost-startStop-1] - Event Gateway Disabled.

Mar 29, 2016 16:49:53 PM Information [localhost-startStop-1] - Starting FlexAssembler...

Mar 29, 2016 16:49:53 PM Information [localhost-startStop-1] - Starting .NET...

Mar 29, 2016 16:49:53 PM Information [localhost-startStop-1] - Starting Monitoring...

Mar 29, 2016 16:49:53 PM Error [localhost-startStop-1] -

Mar 29, 2016 16:49:53 PM  [] -

Mar 29, 2016 16:49:53 PM Information [localhost-startStop-1] - /opt/apache-tomcat-7.0.54/webapps/cfusion/WEB-INF/cfusion/logs/monitor.log initialized

Mar 29, 2016 16:49:53 PM Error [localhost-startStop-1] -

Mar 29, 2016 16:49:53 PM Error [localhost-startStop-1] - Unable to initialise Monitoring service: coldfusion.server.ServiceException

Mar 29, 2016 16:49:53 PM Information [localhost-startStop-1] - Starting WebSocket...

Mar 29, 2016 16:49:54 PM Information [localhost-startStop-1] - WebSocket server listens on port: 8579

Mar 29, 2016 16:49:55 PM Information [localhost-startStop-1] - ColdFusion started

Mar 29, 2016 16:49:55 PM Information [localhost-startStop-1] - ColdFusion: application services are now available

03/29 16:49:55 INFO Macromedia Flex Build: 87315.134646

Mar 29, 2016 4:50:00 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deployment of web application archive /opt/apache-tomcat-7.0.54/webapps/cfusion.war has finished in 419,513 ms

Mar 29, 2016 4:50:00 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /opt/apache-tomcat-7.0.54/webapps/host-manager

Mar 29, 2016 4:50:00 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /opt/apache-tomcat-7.0.54/webapps/host-manager has finished in 204 ms

Mar 29, 2016 4:50:00 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /opt/apache-tomcat-7.0.54/webapps/ROOT

Mar 29, 2016 4:50:00 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /opt/apache-tomcat-7.0.54/webapps/ROOT has finished in 107 ms

Mar 29, 2016 4:50:00 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /opt/apache-tomcat-7.0.54/webapps/manager

Mar 29, 2016 4:50:01 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /opt/apache-tomcat-7.0.54/webapps/manager has finished in 111 ms

Mar 29, 2016 4:50:01 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /opt/apache-tomcat-7.0.54/webapps/docs

Mar 29, 2016 4:50:01 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /opt/apache-tomcat-7.0.54/webapps/docs has finished in 219 ms

Mar 29, 2016 4:50:01 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /opt/apache-tomcat-7.0.54/webapps/examples

Mar 29, 2016 4:50:01 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /opt/apache-tomcat-7.0.54/webapps/examples has finished in 573 ms

Mar 29, 2016 4:50:01 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["http-bio-8080"]

Mar 29, 2016 4:50:01 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["ajp-bio-8009"]

Mar 29, 2016 4:50:01 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 420933 ms

Mar 29, 2016 16:50:20 PM Error [Thread-13] - Registration error for service manager : .http://127.0.0.1:8989/PDFgServlet/.Reason: SERVER ERROR

 

uninstall previous element 9 before installing elements 14? Can both be on the hard drive at the same time?

$
0
0

Must I uninstall previous elements 9, before attemping install of elements 14? Can both be on the hard drive at the same-time?

cfimage with captcha does not display all the text

$
0
0

I am using the cfimage tag with action="captcha" and text="someText".  SomeText is replaced with a random string between 4 & 7 characters.  Sometimes when the captcha is displayed it doesn't show all the characters that was passed in the text argument.  For testing I display the text that is passed into the cfimage tage above the captcha box so I know what should be displayed.  I also tried putting in static text like the word test and there were times it didn't display all 4 letters.

 

I am using Coldfusion 11

 

Any ideas?

Recommend coldfusion 12 for production environment?

$
0
0

I'll make a migration but I find myself coldfusion indesiso between 11 and 12

Is CFFILE read uses only absolute path or relative path too?

$
0
0

I'm using cffile read to access to my json file. I like to know if cffile only uses absolute path or relative too? If I tried to use relative path, it kept giving me errors about file not exist.


Coldfusion 11 Update 6 - Messaging (BlazeDS) errors

$
0
0

I updated to Coldfusion 11 Update 6 and started getting messaging errors in an application that has been running for 5 years. When I roll-back the update to Update 5 the messaging errors no longer occur.

 

The  coldfusion-out.log file shows error -

 

[BlazeDS-v4] 09/02/2015 09:46:50.656 [ERROR] [Message.General] Unhandled error when processing a message: java.lang.NoClassDefFoundError: javax/jms/InvalidSelectorException

  incomingMessage: Flex Message (flex.messaging.messages.CommandMessage)

    operation = subscribe

    selector = null

    clientId = 331A3C73-901F-61DA-8F42-2798D21DDDB5

    correlationId =

    destination = AMMATECH-TS-1_Assure_Production_PJMCommand

    messageId = EC9A7AA1-BBFE-5E9C-7438-8B4E527E2868

    timestamp = 1441151210640

    timeToLive = 0

    body = {}

    hdr(DSValidateEndpoint) = true

    hdr(DSEndpoint) = magtech-secure-long-polling-amf

    hdr(DSId) = 32ADC5E8-B31A-1F57-50F5-ED86869A7E69

  errorReply: Flex Message (flex.messaging.messages.ErrorMessage)

    clientId = 331A3C73-901F-61DA-8F42-2798D21DDDB5

    correlationId = EC9A7AA1-BBFE-5E9C-7438-8B4E527E2868

    destination = AMMATECH-TS-1_Assure_Production_PJMCommand

    messageId = 331A3C9A-A00F-ABAC-C68A-EE3098487A55

    timestamp = 1441151210656

    timeToLive = 0

    body = null

    code =  Server.Processing

    message =  There was an unhandled failure on the server. javax/jms/InvalidSelectorException

    details =  null

    rootCause =  null

    body =  null

    extendedData =  null

  Error: java.lang.NoClassDefFoundError: javax/jms/InvalidSelectorException

  at flex.messaging.services.MessageService.testSelector(MessageService.java:1180)

  at flex.messaging.services.MessageService.manageSubscriptions(MessageService.java:928)

  at flex.messaging.services.MessageService.serviceCommand(MessageService.java:337)

  at flex.messaging.MessageBroker.routeCommandToService(MessageBroker.java:1578)

  at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1019)

  at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:101)

  at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:154)

  at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:42)

  at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:63)

  at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:190)

  at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:328)

  at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:373)

  at coldfusion.flex.ColdFusionMessageBrokerServlet.service(ColdFusionMessageBrokerServlet.jav a:114)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

  at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303)

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

  at coldfusion.filter.FlashRequestControlFilter.doFilter(FlashRequestControlFilter.java:71)

  at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)

  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241)

  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)

  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199)

  at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)

  at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)

  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

  at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

  at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ClassNotFoundException: javax.jms.InvalidSelectorException

  at java.net.URLClassLoader.findClass(Unknown Source)

  at coldfusion.bootstrap.BootstrapClassLoader.loadClass(BootstrapClassLoader.java:213)

  at java.lang.ClassLoader.loadClass(Unknown Source)

  ... 35 more

 

Any ideas?

creating a j2ee .war archive in coldfusion 9

$
0
0

I am following these instructions for creating/exporting a j2ee archive (WAR or EAR) for coldfusion 9. http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fd1 .html

 

However, after selecting my settings, there is a "Submit" and a "Cancel" button. There is no "Create" button. I do not see a .WAR file anywhere on my server, although it has created a directory structure with some xml files, etc. I was expecting just a WAR file. Any help/idea? Thanks. Doing a migration from 9 to 11.

cfset no longer works in 2016

$
0
0

Hi,

 

Can anyone tell me please why this:

 

<cfquery name = "check" datasource="ds">SELECT Date FROM tbl</cfquery>

<cfset check.Date = DateFormat(check.Date, "short")>

 

results in the check.Date changing on versions before CF 2016 but not in CF 2016?

 

thanks.

display active link.

$
0
0

if someone types a url into a form field and it goes into a mysql database. how do i get it to display as an active link on the display page.

Weird characters appended to URL string.

$
0
0

So, while I do use ColdFusion at work, I also use it on my personal website, where I host a blog and photo gallery.

 

Whenever I click on a post or a gallery pic, I notice that the URL is appended with some sort of token.

 

For instance, this:

http://mysite/post/2224

 

becomes this:

http://mysite/post/2224#.VmKaAipG_0

 

It makes for some pretty ugly URL strings when I want to paste something to someone.

 

My host uses CF9 (I think) and Linux.  Is there an obvious reason it does this?  I'm using session management and client cookies in Application.cfc, so maybe that has something to do with it.

Coldfusion ORM issue mapping not found when server restarts

$
0
0

Windows 2012, CF11,  IIS

 

First, I have the following in my application.cfc:

    this.ormenabled=true;

    this.ormsettings.dbcreate = "update";

    this.ormsettings.flushAtRequestEnd = false;

    this.ormsettings.cfclocation=expandpath('/model'); // I've also tried "C:\full\path\model"

 

My models are in my /model folder.

 

My error:

Error while executing the Hibernate query.org.hibernate.hql.internal.ast.QuerySyntaxException:

List is not mapped [  from List  where listtypeid = 2  and user.userid = ? ] The specific sequence of files included or processed is:

C:\inetpub\vhosts\xxxx\xxxx\sms\index.cfm, line: 7 "

 

SMS/index.cfm:

<Cfquery name="lists" dbtype="hql">

from List

where listtypeid = 2

and user.userid = <cfqueryparam cfsqltype="cf_sql_integer" value="#session.userid#">

</Cfquery>

 

I have a few calls prior to the cfquery dbtype=hql using entityloadbypk() such as

<cfset user=entityloadbypk("User",session.userid)>

 

that work fine.

 

The wierd thing is to fix it... if I go to my models/List.cfc file... add a blank anywhere in the file and save it, and then do an ORMReload(), it comes up with no problem.

 

It only happens after the CF service gets restarted.

 

Any suggestions?

java.math.BigDecimal cannot be cast to java.lang.String

$
0
0

this sentence below is working fine on Coldfusion 11 and previous version, but it throws exceptions when the application is deployed on Coldfusion 2016

Could anyone give some advice on this issue?

 

<cfset SubjectText = Replace(#SubjectText#,"%Request.RequestID%",#Request.RequestID#,"All")>

 

the value of #Request.RequestID# is a number


DateTime through local2utc through JSON bug

$
0
0

I believe I found a bug in CF11 with DateTime comparisons when dealing with UTC converted values going through serializeJSON then deserializeJSON. I did modify the code to not include the local2utc conversion and that seemed to produce correct results. Can someone please confirm:

 

<cfscript>
  variables.dttm = createDateTime(2016,04,03,17,53,0);
  variables.dttmutc = dateConvert('local2utc',variables.dttm);

  variables.base = {};
  variables.base.dttmutc_min = dateConvert('local2utc',dateAdd('h',-1,variables.dttm));
  variables.base.dttmutc_max = dateConvert('local2utc',dateAdd('n',1,variables.dttm));

  variables.viajson = deserializeJSON(serializeJSON(variables.base));
  variables.viajson.dttmutc_min = parseDateTime(variables.viajson.dttmutc_min);  // to me this parsing should not be required
  variables.viajson.dttmutc_max = parseDateTime(variables.viajson.dttmutc_max);  // same
</cfscript>
<cfoutput>

  <h1>base</h1>
  dttm = #variables.dttm#<br />
  dttmutc = #variables.dttmutc#<br />
  dttmutc_min = #variables.base.dttmutc_min#<br />
  dttmutc_max = #variables.base.dttmutc_max#<br />
  <br />
  dttmutc GT dttmutc_min = #variables.dttmutc GT variables.base.dttmutc_min#<br />
  dttmutc LT dttmutc_max = #variables.dttmutc LT variables.base.dttmutc_max#<br />

  <h1>via json</h1>
  dttm = #variables.dttm#<br />
  dttmutc = #variables.dttmutc#<br />
  dttmutc_min = #variables.viajson.dttmutc_min#<br />
  dttmutc_max = #variables.viajson.dttmutc_max#<br />
  <br />
  dttmutc GT dttmutc_min = #variables.dttmutc GT variables.viajson.dttmutc_min# (should be YES)<br />  // this is the failing comparison
  dttmutc LT dttmutc_max = #variables.dttmutc LT variables.viajson.dttmutc_max#<br />
</cfoutput>

 

My results are as follows:

 

base

dttm = {ts '2016-04-03 17:53:00'}

dttmutc = {ts '2016-04-04 00:53:00'}

dttmutc_min = {ts '2016-04-03 23:53:00'}

dttmutc_max = {ts '2016-04-04 00:54:00'}

 

dttmutc GT dttmutc_min = YES

dttmutc LT dttmutc_max = YES

 

via json

dttm = {ts '2016-04-03 17:53:00'}

dttmutc = {ts '2016-04-04 00:53:00'}

dttmutc_min = {ts '2016-04-03 23:53:00'}

dttmutc_max = {ts '2016-04-04 00:54:00'}

 

dttmutc GT dttmutc_min = NO (should be YES)

dttmutc LT dttmutc_max = YES

 

BTW, I'm not sure if it matters but my time zone is Pacific Daylight Time (PDT).

Bootstrap and CFChart

$
0
0

I am trying to use Bootstrap with a CF site that makes heavy use of CFChart. Bootstrap has worked fine in the past with pages that don't use CFChart.

 

Bootstrap requires 3 meta tags to appear first in the HTML header:

 

<!DOCTYPE html>

<htmllang="en">

  <head>

    <metacharset="utf-8">

    <metahttp-equiv="X-UA-Compatible"content="IE=edge">

    <metaname="viewport"content="width=device-width, initial-scale=1">

    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

    <title>Bootstrap 101 Template</title>

 

With a CFChart tag in the page, tags are injected into the header above the Bootstrap tags, thus breaking some of the Bootstrap functionality:

 

<!DOCTYPE html>
<html lang="en">
  <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/cf_scripts/scripts/ajax/resources/cf/images/loading.gif'/>";
_cf_contextpath="";
_cf_ajaxscriptsrc="/cf_scripts/scripts/ajax";
_cf_jsonprefix='//';
_cf_websocket_port=8579;
_cf_flash_policy_port=1243;
_cf_clientid='F6BB2B1167EC6583C9AE1D7B3272CA1E';/* ]]> */</script><script type="text/javascript" src="/cf_scripts/scripts/ajax/messages/cfmessage.js"></script>
<script type="text/javascript" src="/cf_scripts/scripts/ajax/package/cfajax.js"></script>
<script type="text/javascript" src="/cf_scripts/scripts/chart/cfchart-server.js"></script>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>Bootstrap 101 Template</title>

 

How do I fix this or get Bootstrap to work without the 3 tags first in the header?

Function Recursion Stopped Working in 2016

$
0
0

Hi, I have a function that stopped working when I upgraded to 2016, I can't for the life of me see why.  What happens is the second time the query runs it overwrites the first one and stops.  It does not run the full first query.  What am I missing?!

 

Number Range

$
0
0

Hi. I just have a simple number range and I want to output the results. What I have outputs the results, but for some reason, it only displays the first result. Why does it not display the correct result? Here's what I have:

 

<cfset X = 27>

<cfset Y = 37>

 

<cfif (#X# GT 35 LT 51 And #Y# GT 1 LT 35)>

<cfset Result = 200>

<cfelseif (#X# GT 1 LT 35 And #Y# GT 35 LT 51)>

<cfset Result = 300>

<cfelseif (#X# GT 35 LT 51 And #Y# GT 35 LT 51)>

<cfset Result = 100>

</cfif>

 

<cfoutput>

#Result#

</cfoutput>

 

Since X is 27 and Y is 37 it should output 300 as the result, but it outputs 200. Why is this? What do I do to fix this? Thanks.

Andy

Error 500 on coldfusion 2016 installed from scratch

$
0
0

I've installed coldfusion 2016. The administrator interface is ok, but when I open the web site I get the error 500. How can I risolve this problem? Thank you

Viewing all 5979 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>