Cfwindow破坏页面

时间:2009-12-01 20:17:45

标签: javascript coldfusion cfwindow

我在使用cfwindow时遇到问题。我有一个搜索页面,每个结果都有自己的cfwindow。好吧,当我打开任何这些cfwindows时,它会获取我拥有的背景图像并将其置于内容之上(即使模态设置为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>

0 个答案:

没有答案