Can I use a string array in my javascript file, pass it to a coldfusion page and use the elements in the array as parameters to search by in a < cfquery > ?
.js
$.get("submit.cfm",{arr: obj}).done( function(data) {
alert('The returned data is: ' + data);
});
.cfm
<cfparam name="tempArr" default = "" >
<cfset array = ArrayNew(6)>
<cfloop from="1" to="6" index="i">
<cfset ArrayAppend(array, tempArr[i])>
</cfloop>
The code is incomplete, but how can I pass the values of obj (string array) from javascript to the variable tempArr in my coldfusion code