开发者

cfinput image type and cfwindow problem

I am looping over an image directory to list bunch of thu开发者_高级运维mbnails. I want to show the original image on a click event. But for now, just a window.

      <cfform name="myform" format="flash" skin="haloorange">
         <cfinput type="image" src="../thumbs/#currentRow#" name="img#ListGetAt(qryImg.name,1,'.')#"<!--- onclick="javascript:ColdFusion.Window.show('mywindow4')">
       </cfform>

My problem is the onclick event. If I remove that piece of code, the form loads. IF I keep it, the form does not load. Also, I tried getURL(javascript:ColdFusion.Window.show('mywindow4')) but go no luck.


i got rid of cfwindow and ColdFusion.Window.show()

      onclick="getURL('javascript:show(5)')" >  

    <script>
    function show(u) {
      if(u != '') window.open('cfWinSource.cfm', 'sub', 'directories=no, location=no, menubar=no, resizable=yes, scrollbars=no, status=no, titlebar=yes, toolbar=no, height=435, width=535')
    }
   </script>

seems to work for now.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜