We are writing a javascript where we are trying to pass an element name back to the server side. Here is what we are tring to do.
<SCRIPT LANGUAGE= "Javascript">
function DefForm(str) {
var ele=document.Form.elements;
var len=ele.length;
for (i=0;i<len;i++) {
if (ele.name = str)
{return ele.name}}}
</SCRIPT>
In the program we are doing
<cfif IsDefined("return DefForm('quoteStat#ctr#')") and other stuff. Will this retrun the element name back to the IsDefined function? We are using ColdFusion if this helps.
<SCRIPT LANGUAGE= "Javascript">
function DefForm(str) {
var ele=document.Form.elements;
var len=ele.length;
for (i=0;i<len;i++) {
if (ele.name = str)
{return ele.name}}}
</SCRIPT>
In the program we are doing
<cfif IsDefined("return DefForm('quoteStat#ctr#')") and other stuff. Will this retrun the element name back to the IsDefined function? We are using ColdFusion if this helps.