Requested scope CLIENT has not been enabled
来源:互联网 发布:五子棋ai活三活四算法 编辑:程序博客网 时间:2024/04/30 14:59
when I do some Practice about the client variables, have meet this error
Requested scope CLIENT has not been enabled
searchForm.cfm
you can solve this mistake by do this
put this code in your application.cfc file
<cfset THIS.clientmanagement="yes">
also you can do the following:(this is another method)
check your settings in CF Admin -> Server Settings -> Client Variables
<!---
Filename: SearchForm2.cfm
Created by: Nate Weiss (NMW)
Please Note Maintains ÒlastÓ search via Client variables
--->
<!---
When user submits form, save search criteria in Client variable
--->
<cfif isDefined("FORM.searchCriteria")>
<cfset CLIENT.lastSearch = FORM.searchCriteria>
<cfset CLIENT.lastMaxRows = FORM.searchMaxRows>
<!--- if not submitting yet, get prior search word (if possible) --->
<cfelseif isDefined("CLIENT.lastSearch") and
isDefined("CLIENT.lastMaxRows")>
<cfset searchCriteria = CLIENT.lastSearch>
<cfset searchMaxRows = CLIENT.lastMaxRows>
<!--- if no prior search criteria exists, just show empty string --->
<cfelse>
<cfset searchCriteria = "">
<cfset searchMaxRows = 10>
</cfif>
<html>
<head><title>Search Orange Whip</title></head>
<body>
<h2>Search Orange Whip</h2>
<!--- Simple search form, which submits back to this page --->
<cfform action="#cgi.script_name#" method="post">
<!--- "Search Criteria" field --->
Search For:
<cfinput name="SearchCriteria" value="#searchCriteria#"
required="Yes"
message="You must type something to search for!">
<!--- Submit button --->
<input type="Submit" value="Search"><br>
<!--- "Max Matches" field --->
<i>show up to
<cfinput name="SearchMaxRows" value="#searchMaxRows#" size="2"
required="Yes" validate="integer" range="1,500"
message="Provide a number from 1-500 for search maximum.">
matches</i><br>
</cfform>
<!--- If we have something to search for, do it now --->
<cfif searchCriteria neq "">
<!--- Get matching film entries from database --->
<cfquery name="getMatches" datasource="ows">
SELECT FilmID, MovieTitle, Summary
FROM Films
WHERE MovieTitle LIKE '%#SearchCriteria#%'
OR Summary LIKE '%#SearchCriteria#%'
ORDER BY MovieTitle
</cfquery>
<!--- Show number of matches --->
<cfoutput>
<hr><i>#getMatches.recordCount# records found for
"#searchCriteria#"</i><br>
</cfoutput>
<!--- Show matches, up to maximum number of rows --->
<cfoutput query="getMatches" maxrows="#searchMaxRows#">
<p><b>#MovieTitle#</b><br>
#Summary#<br>
</cfoutput>
</cfif>
</body>
</html>
- Requested scope CLIENT has not been enabled
- 问题解决:Repository has not been enabled to accept revision propchanges;
- 问题解决:Repository has not been enabled to accept revision propchanges; .
- ArcEngine 3D extension has not been enabled
- The 3D Analyst extension has not been enabled.
- Repository has not been enabled to accept revision propchanges;
- 解决arcscene 不能显示问题 The 3D Analyst extension has not been enabled
- TortoiseSVN问题:Repository has not been enabled to accept revision propchanges
- The 3D Analyst extension has not been enabled.问题解决方案总结
- mod_ssl has been requested but can not be built due to prerequisite failures
- 解决错误“Logon Failure: The User Has Not Been Granted The Requested Logon Type At This Computer”
- Linux安装apache源码包报错:mod_deflate has been requested but can not be built due to prerequisite failures
- Access to the requested resource has been denied
- Access to the requested resource has been denied
- The requested item has been unloaded[enums in monodevelop ]
- PostgreSQL:“ FATAL: requested WAL segment00800002A0 has already been removed”
- Client does not support authentication protocol requested
- ::system has not been declared 的问题
- 2009.03.14
- 2009.03.15
- 英国人未想过防守缅甸 只需要中国人拖延时间
- au1200 linux mae driver 冲突
- Peer-To-Peer 介绍
- Requested scope CLIENT has not been enabled
- 常用数据库的连接方法
- 如何在oracle中导入dmp数据库文件
- lightbox 开发
- Stream 和 byte[] 之间的转换及文件存取的代码
- 一转眼又过了好几个月
- 2009.03.16
- document.body.scrollTop,document.body.clientHeight的值为0的问题
- 2009.03.17