|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: |
the cfm code (mwCounties.cfm)...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MembwerWeb Counties</title>
<meta name="author" content="Stephen G. 'Cutter' Blades" />
<script language="javascript" type="text/javascript" src="../ext/ext-base-debug.js"></script>
<script language="javascript" type="text/javascript" src="../ext/ext-all-debug.js"></script>
<script language="javascript" type="text/javascript" src="../ext/custom/CFQueryReader.js"></script>
<script language="javascript" type="text/javascript" src="../ext/lrnext3/mwCounties.js"></script>
<link rel="stylesheet" type="text/css" href="../ext/css/ext-all.css" />
</head>
<body><!-- Intentional comment. Leave in place -->
<div id="mainContent">
<div id="counties" style="margin:25px;"></div>
</div>
</body>
</html>
the JavaScript code (mwCounties.js)...
/*
* Data Store from custom reader
*/
Ext.onReady(function(){
var recordModel = [
{name:'STATE',mapping:'STATE'},
{name:'COUNTY',mapping:'COUNTY'},
{name:'REGIONID',mapping:'REGIONID',type:'int'},
{name:'REGION',mapping:'REGION'},
{name:'REGIONNAME',mapping:'REGIONNAME'},
{name:'FIPS',mapping:'FIPS'}
];
var countyReader = new Ext.data.CFQueryReader({id:'STATE',root:'DATA'},recordModel);
var countyStore = new Ext.data.Store({
url:'cfc/ext.cfc',
baseParams:{method: 'getCounties',returnFormat: 'JSON',queryFormat: 'column'},
reader: countyReader
});
countyStore.load();
var grid = new Ext.grid.GridPanel({
renderTo:'counties',
frame:true,
title:'Memberweb Counties',
width:500,
height:500,
store: countyStore,
columns: [
{header: "State", dataIndex: 'STATE'},
{header: "County", dataIndex: 'COUNTY'},
{header: "Region ID", dataIndex: 'REGIONID'},
{header: "Region", dataIndex: 'REGION'},
{header: "Region Name", dataIndex: 'REGIONNAME'},
{header: "FIPS", dataIndex: 'FIPS'}
]
});
});
the CFC code (ext.cfc)...
<cfcomponent output="false">
<!---
/ METHOD: counties
/
/ @param regionid:numeric
/ @return output:query
--->
<cffunction name="getCounties" access="remote" output="false" returntype="query">
<cfset var q = "" />
<cftry>
<cfquery name="q" datasource="memberWebdb">
select
state
,county
,tc.regionid
,region
,regionname
,fips
from
tcounty tc
inner join tregion tr on tr.regionid=tc.regionid
order by
state
,county
</cfquery>
<cfcatch type="database">
<!--- Place Error Handling Here --->
</cfcatch>
</cftry>
<cfreturn q />
</cffunction>
</cfcomponent>
|
Advertisement
| Hall of Fame |