-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.cfm
More file actions
31 lines (28 loc) · 1.02 KB
/
Copy pathindex.cfm
File metadata and controls
31 lines (28 loc) · 1.02 KB
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
<script type="text/javascript" src="/CFIDE/scripts/ajax/jquery/jquery.js"></script>
<cfajaxproxy cfc="DBUtils" jsclassname="dbUtils" >
<script>
$(function(){
$('.dsSelect').change( function() {
$(".tablesDiv").load("tables.cfm?dsName="+this.value);
});
});
</script>
<link rel="stylesheet" type="text/css" href="mystyle.css">
<cfscript>
adminObj = createObject("component","CFIDE.adminapi.administrator");
adminObj.login("Adm1n$","admin");
dsObj = createObject("component","CFIDE.adminapi.datasource");
datasources = dsObj.getDatasources();
writeOutput("<div class='dsList'>");
writeOutput("<div class='dsName' id='dshead' ><font color=blue><b>DataSources</b></font></div>");
writeOutput("<select class='dsSelect' id='dsSelect'>");
writeOutput("<option value='-1' selected>Select One</option>");
for(dsName in structKeyList(datasources)){
writeOutput("<option value='#dsName#'>#dsName#</option>");
}
writeOutput("</select>");
writeOutput("</div>");
</cfscript>
<div class="tablesDiv"></div>
<div class="dataDiv">
</div>