This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getRootWebSitePath() { | |
var _location = document.location.toString(); | |
var applicationNameIndex = _location.indexOf('/', _location.indexOf('://') + 3); | |
var applicationName = _location.substring(0, applicationNameIndex) + '/'; | |
var webFolderIndex = _location.indexOf('/', _ | |
location.indexOf(applicationName) + applicationName.length); | |
var webFolderFullPath = _location.substring(0, webFolderIndex); | |
return webFolderFullPath; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
function convertQueryToStructArray( q ) { | |
var result = []; | |
for ( var row in arguments.q ) { | |
result.append( row ); | |
} | |
return result; | |
} |
NewerOlder