I have a ColdFusion function that checks if a record exists in a table, and if it does it returns data for the row found. However, if the record does not exist, I would like to have it make a call to a JavaScript function that I've written and use the value that is returned from the JS function to continue processing in the CF function. I know that CF is written in Java, so I'm hopeful that there is someway to perform this task.
Basically, from CF page, the steps would be...
- Call CF Function located in my functions.cfc file
- Within the CF function, make call to JavaScript function and wait for response
- Continue processing in CF function using the value returned from the JS function.
Any ideas? Thank you for any help!