coldfusion-10 相关问题

ColdFusion是Adobe的服务器端快速应用程序开发平台。 ColdFusion 10于2012年5月发布。

cfspreadhseet - 如何删除/更新单元格中的评论?

我正在使用cfspreadsheet来更新xl文件的内容,也有兴趣为用户添加评论,以便他获得单元格的更多信息。 当我尝试添加

回答 1 投票 0

ColdFusion 四舍五入小数值

令 nt = 77 且 kt = 13。 CT 将为 10.01。 我想要...

回答 1 投票 0

SpreadsheetFormatRows 格式颜色 ColdFusion

我正在使用 ColdFusion 和 SpreadsheetNew、SpreadsheetAddRows、SpreadsheetFormatRows 等函数创建 Excel 文件。根据我读过的文档,它们是一个属性......

回答 3 投票 0

如何在 ColdFusion 10 中的 cfhttp 标签中添加 TLS 1.2

我正在使用 ColdFusion 10。如何指定我的连接是 TLS 1.1、TLS 1.0 等。我可以使用 cfhttp 标签吗? 如何使用 ColdFusion 在 cfhttp 标签中添加 TLS 1.2?

回答 4 投票 0

在 ColdFusion 10 中使用 CF_SQL_NVARCHAR 的详细信息是什么?

有关更新数据库的 ColdFusion 10 文档中有一节介绍 ColdFusion 10 中与数据库相关的增强功能。该页面提到现在支持 CF_SQL_NVARCHAR...

回答 2 投票 0

每5分钟自动刷新

这是我的代码 函数 page_refresh(){ 文件。</desc> <question vote="42"> <p>这是我的代码</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script language=&#34;javascript&#34; src=&#34;JS/jQuery.js&#34;&gt;&lt;/script&gt; &lt;script&gt; function page_refresh(){ document.getElementById(&#39;form2&#39;).action=&#34;project_file_dir.cfm&#34; document.getElementById(&#39;form2&#39;).submit(); } &lt;/script&gt; &lt;/head&gt; &lt;body &gt; &lt;cfoutput&gt; &lt;cfset fileLocation =&#34;\\squeaker\SiSystemsFile\WebServices\WebSites\Perforce\Bhargavi&#34;&gt; &lt;!--- On mac set to /tmp ---&gt; &lt;cfdirectory action = &#34;list&#34; directory = &#34;#fileLocation#&#34; name = &#34;files&#34; filter=&#34;*.*&#34;&gt; &lt;form method=&#34;post&#34; id=&#34;form2&#34;&gt; &lt;cfset f=&#34;#files.recordcount#&#34;&gt; &lt;cfset mydatetime=now()&gt; &lt;cfset a=TimeFormat(MyDateTime,&#39;hh:mm:ss tt&#39;)&gt; Total File in &lt;b&gt; #fileLocation# &lt;/b&gt; Count is &lt;b&gt; #f# &lt;/b&gt; #TimeFormat(MyDateTime,&#39;hh:mm tt&#39;)# &lt;input type=&#34;button&#34; name=&#34;Refresh&#34; value=&#34;refresh&#34; onclick=&#34;page_refresh()&#34;&gt;&lt;br&gt; &lt;b&gt;Next Run&lt;/b&gt; &lt;cfset b=TimeFormat(DateAdd(&#39;n&#39;, +5, MyDateTime),&#39;hh:mm:ss tt&#39;)&gt; #TimeFormat(DateAdd(&#39;n&#39;, +5, MyDateTime),&#39;hh:mm tt&#39;)# &lt;/cfoutput&gt; &lt;cfset a= Minute(Now())&gt; &lt;cfset b=a%5 &gt; &lt;cfoutput&gt;#b#&lt;/cfoutput&gt; &lt;!--- &lt;cfinclude template=&#34;page_move_2.cfm&#34;&gt; ---&gt; &lt;cfloop condition=&#34;b gt 0&#34;&gt; &lt;cfoutput&gt;inside loop&lt;/cfoutput&gt; &lt;cfset Sleep(6000)&gt; &lt;cfset b = b - 1 &gt; &lt;/cfloop&gt; &lt;cfoutput&gt;hi&lt;/cfoutput&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>我需要每 5 分钟刷新一次页面。这个怎么做 。我使用了 sleep() 函数,但 ui 本身在 sleep() 执行后加载。这是我如何每 5 分钟重新加载一次页面 </p> </question> <answer tick="false" vote="146"> <p>每 300 秒刷新一次文档:</p> <p>使用 HTML Meta 标签,将其添加到页面的 <pre><code>&lt;head&gt;</code></pre> 标签中:</p> <pre><code>&lt;meta http-equiv=&#34;refresh&#34; content=&#34;300&#34;&gt; </code></pre> <p>使用脚本:</p> <pre><code>setInterval(function() { window.location.reload(); }, 300_000); // in ms </code></pre> </answer> <answer tick="false" vote="20"> <blockquote> <p>页面应该使用元标记自动刷新</p> </blockquote> <pre><code>&lt;meta http-equiv=&#34;Refresh&#34; content=&#34;60&#34;&gt; </code></pre> <blockquote> <p>内容值以秒为单位。一分钟后页面应刷新</p> </blockquote> </answer> <answer tick="false" vote="15"> <p>安装间隔:</p> <pre><code>&lt;script type=&#34;text/javascript&#34;&gt; setInterval(page_refresh, 5*60000); //NOTE: period is passed in milliseconds &lt;/script&gt; </code></pre> </answer> <answer tick="false" vote="4"> <p>自动重新加载您选择的目标。在本例中,目标设置为每 5 分钟 <pre><code>_self</code></pre>。</p> <p><em>300000 毫秒 = 300 秒 = 5 分钟</em></p> <p>如 <em>60000 毫秒 = 60 秒 = 1 分钟</em>.</p> <p><strong>这就是你的做法:</strong></p> <pre><code>&lt;script type=&#34;text/javascript&#34;&gt; function load() { setTimeout(&#34;window.open(&#39;http://YourPage.com&#39;, &#39;_self&#39;);&#34;, 300000); } &lt;/script&gt; &lt;body onload=&#34;load()&#34;&gt; </code></pre> <p><strong>或者如果是同一页面则自行重新加载:</strong></p> <pre><code>&lt;script type=&#34;text/javascript&#34;&gt; function load() { setTimeout(&#34;window.open(self.location, &#39;_self&#39;);&#34;, 300000); } &lt;/script&gt; &lt;body onload=&#34;load()&#34;&gt; </code></pre> </answer> </body></html>

回答 0 投票 0

CFOUTPUT循环

我正在尝试显示和处理来自数据库的 26 行记录,并像这样处理这些行: 我正在尝试显示和处理来自数据库的 26 行记录,并像这样处理这些行: <cfquery datasource="mydata" username="myuser" password="mypass" name="mylist" cachedWithin="#createTimeSpan( 0, 0, 5, 0 )#"> SELECT field1,field2 WHERE product = "myproduct" ORDER BY idfield DESC LIMIT 26 </cfquery> <!--- process them ---> <cfoutput query="mylist" maxRows=10> <!--- get the latest 6 record ---> <cfif mylist.CurrentRow lte 6> <!--- do something special with the latest record ---> <cfif mylist.CurrentRow eq 1> do something special <cfoutput> mylist.CurrentRow - #mylist.CurrentRow#<br> </cfoutput> <cfelse> do something else </cfif> <cfif mylist.CurrentRow lte 3> do something </cfif> </cfif> do something </cfoutput> 我期待看到一行这样的输出: mylist.CurrentRow - 1 但是我得到了这个: mylist.CurrentRow - 1 mylist.CurrentRow - 2 mylist.CurrentRow - 3 mylist.CurrentRow - 4 mylist.CurrentRow - 5 mylist.CurrentRow - 6 mylist.CurrentRow - 7 mylist.CurrentRow - 8 mylist.CurrentRow - 9 mylist.CurrentRow - 10 mylist.CurrentRow - 11 mylist.CurrentRow - 12 mylist.CurrentRow - 13 mylist.CurrentRow - 14 mylist.CurrentRow - 15 mylist.CurrentRow - 16 mylist.CurrentRow - 17 mylist.CurrentRow - 18 mylist.CurrentRow - 19 mylist.CurrentRow - 20 mylist.CurrentRow - 21 mylist.CurrentRow - 22 mylist.CurrentRow - 23 mylist.CurrentRow - 24 mylist.CurrentRow - 25 mylist.CurrentRow - 26 这真是令人费解。因为它应该仅在行等于 1 时显示。为什么我会看到所有这些行? 其次,当我将 maxrows 设置为 10 时,为什么我看到 26 行? 希望有人能启发我。提前致谢。 首先,maxrows限制查询变量从数据库返回后的结果数。 如果您只返回一个结果,那么这不会对您的查询性能产生任何影响。 ColdFusion 允许您使用 CFQUERYPARAM 标签传递绑定参数。 例如: <cfquery name="q"> SELECT property1, property2, property3 FROM yourTable WHERE RowID = <cfqueryparam value="#NumericVariable#" cfsqltype="CF_SQL_INTEGER" /> </cfquery> 您可以希望通过提供绑定参数并指定要返回的属性来提高数据库的速度。这可能允许更好的查询缓存和性能改进,具体取决于您使用的数据库引擎。 我会补充说,使用 CFQUERYPARAM 通常比让变量不合格并可能对 SQL 注入攻击开放更安全。 其次,你得到所有结果的原因是因为内部 cfoutput <cfoutput> mylist.CurrentRow - #mylist.CurrentRow#<br> </cfoutput> 我想更好的解决方案是这样查询: <cfquery datasource="ECS360" name ="mylist"> select * from employee.employee ORDER BY employeenumber DESC </cfquery> <cfoutput query="mylist" maxRows="26"> <br/> <!--- get the latest 6 record ---> <cfif #mylist.CurrentRow# lte 6> <!--- do something special with the latest record ---> currnet row #mylist.currentrow# <cfif #mylist.CurrentRow# eq 1> do something special #mylist.CurrentRow# - #mylist.CurrentRow#<br> <cfelse> currnet row #mylist.currentrow# do something else </cfif> <cfif #mylist.CurrentRow# lte 3> do something 123 </cfif> </cfif> </cfoutput>

回答 1 投票 0

如何使用 IIS 和 Windows 2008 R2 访问 Shibboleth Header 和 CGI 变量

如何访问 shibboleth 属性以登录到应用程序或基于属性创建用户? 该应用程序在具有 64 位操作系统的 Windows 2008 R2 服务器中的 Coldfusion 10 上运行。

回答 0 投票 0

我可以使用cfspreadsheet在已经存在的模板中更新数据而不丢失其中的样式吗?

我可以使用cfspreadsheet在已经存在的模板中更新添加一些数据而不丢失其中的样式吗?我有一个模板,里面有一些列头和表格样式,还有一些颜色。

回答 2 投票 0

在一周的示例文件中安装Learn ColdFusion时出错

我正在尝试从ColdFusion网站上完成“一周内学习ColdFusion”教程。我已经设置了mySQL 5.5(在C:/驱动器上)并安装了ColdFusion 10(在E:/驱动器上)。我完成了所有...

回答 1 投票 1

如何使用CF10 Web服务创建SOAP标头

在进行CF网络服务调用时,必须创建一个SOAP标头。在CF9中,我们可以使用setHeader()方法。这在我的生产服务器(运行CF9)上有效。但是,我已经升级了...

回答 2 投票 1

如何通过JQuery在Coldfusion中循环并在表中显示SQL数据

这里我开发了我的Jquery代码我的jquery代码

回答 1 投票 -1

java.lang.NoSuchMethodError:coldfusion.runtime.CfJspPage.bindImportPath(Ljava / lang / String;)V

当将Coldfusion版本从8切换到10时,一旦我的Tomcat服务器启动并运行,当我尝试访问任何Coldfusion页面时,我总是收到此错误:java.lang.NoSuchMethodError:coldfusion ....

回答 1 投票 1

如何在超负荷的CFSCRIPT init()函数

这个例子是什么,我要怎样做,但ColdFusion的说`程序只能申报一次。 ColdFusion的可以做这样的事情? / ** * @hint把手车辆* /组件车{...

回答 1 投票 2

重定向到404工作,但在铬devtools,示出了200码

我的web.config看起来是这样的:

回答 1 投票 3

ColdFusion的CSRF XSS攻击防范

我在尝试阻止CSRF攻击实施的csrfGenerateToken和csrfVerifyToken功能。我已经建立了网页标题与这些:一套X-XSS-保护“1;模式=块”总是...

回答 1 投票 3

切换到ColdFusion中的不同XSLT处理器

我使用两种不同版本的ColdFusion,ColdFusion 9和ColdFusion 10,两者都有不同的XSLT处理器。 ColdFusion 9使用Apache Xalan而ColdFusion 10使用Saxon ....

回答 1 投票 14

Coldfusion部署过程

我试图弄清楚为coldfusion项目构建和部署实施的最佳流程是什么。我对常规java堆栈更熟悉:一些后端框架(Spring,...

回答 2 投票 2

使用包含文件的功能使coldfusion忘记导入。这是正常的吗?

我注意到当我调用之前包含的(cfinclude).cfm文件的函数时,此时发生的所有coldfusion导入(cfimport)都被遗忘了。就像你没有......

回答 2 投票 5

ColdFusion中的元素未定义错误。 cfparam不起作用

我遇到问题,我的ColdFusion代码返回“元素AUTHOR在FORM中未定义”。每当我提交表格时我试过用了 设置comment.author但它没有工作......

回答 2 投票 1

© www.soinside.com 2019 - 2024. All rights reserved.