Javascript Cfwindow破坏页面

Javascript Cfwindow破坏页面,javascript,coldfusion,cfwindow,Javascript,Coldfusion,Cfwindow,我对cfwindow有问题。我有一个搜索页面,每个结果都有自己的窗口。当我打开任何一个cfwindows时,它会将我拥有的背景图像放在内容的顶部(即使modal设置为true或false),然后关闭窗口后,它会保持这种状态。如果不使用“上一步”按钮,就无法返回页面内容,这只会将您带回您首先进行搜索的页面 下面是每个搜索结果的输出以及创建cfwindow的位置 <cfoutput query="mysearch"> <cfobject name="develop

我对cfwindow有问题。我有一个搜索页面,每个结果都有自己的窗口。当我打开任何一个cfwindows时,它会将我拥有的背景图像放在内容的顶部(即使modal设置为true或false),然后关闭窗口后,它会保持这种状态。如果不使用“上一步”按钮,就无法返回页面内容,这只会将您带回您首先进行搜索的页面

下面是每个搜索结果的输出以及创建cfwindow的位置

    <cfoutput query="mysearch">
     <cfobject name="development" component="TATN.development" type="component">
        <cfset pageName = development.getListingName("#mysearch.key#")>
    <!--- build our cfWindow --->
 <cfwindow x="40" y="40" closable="true" draggable="false" initShow="false" modal="true" name="#pageName#" refreshOnShow = "true" resizable="true" height="800" width="825" source="/hotels/#pageName#.cfm"
        title="#mysearch.custom3#" />
   <div id="hotels_results" onmouseover="style.backgroundColor='##FFBCBC';" onMouseOut="style.backgroundColor='##FFEDED';">
        <div class="thumbimg">        
         <a href="javascript:ColdFusion.Window.show('#pageName#')"><img src="/photos/slideshowPhotos/#mysearch.key#/one.jpg" border="0" width="180" height="115" alt="Click to View More Information."> </a>
        </div>
        <div class="hotels_text">
         If I were asked under what sky the human mind has most fully developed some of its choicest gifts, has most deeply pondered on the greatest problems of life, Welcome text goes here.<br>
            <div class="hotels_book_now"> 
             <a href="##" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Book Now','','images/h_book_now1.jpg',1)">
                <img src="images/h_book_now.jpg" alt="Book Now" name="Book Now" width="113" height="38" border="0" align="top"></a>
            </div>
         <h3>Starting at $1000 a night</h3>
            <br>
            <br>
            <br>
            <div class="hotels_ratings">
                <input name="star1" type="radio" class="star">
                <input name="star1" type="radio" class="star">
                <input name="star1" type="radio" class="star">
                <input name="star1" type="radio" class="star">
                <input name="star1" type="radio" class="star">
            </div> 
        </div>
    </div>



 </cfoutput>

如果有人问我,在什么样的天空下,人类的思想最充分地发挥了其最优秀的天赋,最深刻地思考了生活中最重大的问题,欢迎来到这里。
每晚1000美元起价



您能否链接到显示问题的示例页面?很难从您的描述中完全理解发生了什么。背景图像是否来自cfwindows的父页面?如果您省略了要测试的背景图像,它是否能像预期的那样工作?与您的问题没有直接关系,但我相信您缺少了hotels_ratings radio输入中的value属性。pageName的值是多少?我刚刚重新创建了您的场景,它似乎对我来说很好。如果您能提供更多的源代码,我们将不胜感激。