I have a strange bug where this code works on IE9, FF, Opera, etc. but fails on 
IE8. It appears to be trying to execute the href and ignores the function that 
creates and opens the window. I realize that this may be a JavaScript issue in 
IE8 but due toe the CF involved I doubt that it will be understood on that list.

The function is defined like this:

<script>
        function makeWin(x,y,z,num,title) {
        
ColdFusion.Window.create('ImageWindow'+num,title,'Image.cfm?ID='+z,{x:150,y:y+80,height:640,width:840});
                }
        </script>

I call it from several places like this:

<a href="##" 
onClick="makeWin(event.pageX,event.pageY,'SeatonL.jpg',0,'Whitevale GC in 
relation to the Seaton Master Plan');return false;">
        <img src="SeatonS.jpg" style="position: absolute; left: 700px;"></a>

I have tried several variations such deleting the href or taking out the # 
signs but nothing changes. I even went from strict.dtd to transitional.dtd.

Any ideas on how to make this work on IE8 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347496
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to