0

I have a code in coldfusion pop up, the parent page has the variable which I intend to use in my CFM page.

I am able to get the variable in jacascript through the following:

<script type="text/javascript">
var selectedUserIdForPassword = $('#selectedUsers').val();
</script>

selectedUsers variable is in parent CFM page of the pop up, now I want to use this javascript variable in a query in the pop up's CFM page.

Please suggest.

Thanks in advance.

Ritu
  • 1,047
  • 4
  • 12
  • 22
  • 2
    https://www.bennadel.com/blog/1618-ask-ben-converting-javascript-variables-into-coldfusion-variables.htm – haxtbh May 15 '23 at 07:04
  • 1
    As well as the above, I think you could benefit from improving your understanding of how web-request processing works: https://blog.adamcameron.me/2012/10/the-coldfusion-requestresponse-process.html – Adam Cameron May 15 '23 at 22:24
  • You can send it as a url variable. – Dan Bracuk May 16 '23 at 16:34

0 Answers0