1

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>
4

0 に答える 0