cfwindow - undefined variable
Hello~
I am working with cfwindow for the first time, and I am running into a strange error. This is how my page is set up:
cp_html.cfm - defines a lot of functions, etc., then calls cp_html_template.cfm
cp_html_template.cfm - calls cfwindow code if a certain condition is met:
<cfif validationFlag EQ 1>
<cfajaximport tags="cfwindow, cfform">
<cfwindow
name="validFormWindow"
bodystyle="border:2px solid black; background-color:##ffffff; text-align:center;font-family:Arial;"
headerstyle="background-color:##000000; color:##ffffff; text-align:center;font-family:Arial;"
height="150"
width="300"
title="Student Validation Question"
closable="false"
draggable="false"
modal="true"
resizable="false"
initshow="true"
x="400"
y="100"
refreshonshow="true"
source="/player/cp_html_validForm.cfm" />
</cfif>
Now, the cfwindow is displaying correctly, and the source attribute is correct, but I am getting the following error inside the cfwindow:
Element TIME is undefined in VALIDATIONQUESTIONSQUERY.
validationQuestionQuery.time is defined on cp_html.cfm, and is used in a <cfif> statement on the source file for the cfwindow, cp_html_validForm. I started out just using a cfinclude to test all of these pages together, and when I use that tag, everything works fine and all o fthe variables are defined, so I know the value carries through to cp_html_validForm.cfm, but it is not being passed on into the cfwindow. I know this is a complicated page structure, but it's what I have to work with ![]()
Has anyone else had this problem, or know of a solution? Thank you!
KC
