Question
CFWINDOW and JS Question
Hi,
I am hoping someone can help me. I have a javascript function that does a loop and creates an error message that I want to show in a "cfwindow". Is there a way to do this as opposed to populating the window with contents from .cfm page? Here is my code:
var cbValidate = function(resp) {
var errorStr = "The following error(s) have occurred:\n\n";
for(i=0; i<resp.ERRORS.length; i++) {
var errorStr = errorStr + resp.ERRORS + '\n';
}
alert(errorStr);
}
So where you see the "alert(errorStr); This works, but I would rather NOT use the default js popup alert(), is there a way I can use the CF 8 window?
Thanks,
-ws
I am hoping someone can help me. I have a javascript function that does a loop and creates an error message that I want to show in a "cfwindow". Is there a way to do this as opposed to populating the window with contents from .cfm page? Here is my code:
var cbValidate = function(resp) {
var errorStr = "The following error(s) have occurred:\n\n";
for(i=0; i<resp.ERRORS.length; i++) {
var errorStr = errorStr + resp.ERRORS + '\n';
}
alert(errorStr);
}
So where you see the "alert(errorStr); This works, but I would rather NOT use the default js popup alert(), is there a way I can use the CF 8 window?
Thanks,
-ws
