Are you writing the cfwindow in JS or CF? It looks like you are doing it in CF. 
Try using coldfusion.window.create and set your own values in JS. also you 
might want to pass something that keeps the browser from caching the window 
contents.




> I have a complex data entry page in which I use the cfwindow tag 
> several times to produce 3 different modal windows. Cfwindow is being 
> used to provide access to lookup tables for several different fields 
> in a form (the cfwindow tags, however, are employed on the page 
> outside the form tags), so there is a different cfwindow for each 
> field and each cfwindow has a unique name attribute value.
> 
> Much of the time, this works fine. But perhaps one out of four times 
> that I refresh the page, cf appears to get confused about which 
> cfwindow to open. One cfwindow is named MetroAirports, another is 
> named Coordinators and a third other is named CommunityCounselor. I've 
> attached some of the javascript that CF produces when the page is 
> rendered. You'll note that CF creates a _cf_window_init.. variable for 
> each window.
> 
> Note that the value of this variable is the same for the second two 
> windows: 1227286702850. To the end user, the result is that CF will 
> not produce the second window, CommunityCoordinators, properly; it's 
> size and formatting is messed up. And when it it closed, it won't 
> close properly (it appears to "partially" close, leaving the rest of 
> the page inaccessible).
> 
> I can reproduce this problem...but as I mentioned, it only happens 
> 25-30% of the time. Anyone have any clues as to what is going on 
> here?
> 
> JS code produced by CF:
> 
> <script type="text/javascript">
>       var _cf_window_init_1227286702646=function()
>       {
>               var 
> _cf_window=ColdFusion.Window.create('MetroAirports_win','Airport 
> lookup','',{ modal:true, closable:true, divid:'cf_window1227286702645', 
> draggable:true, resizable:true, fixedcenter:false, width:550, 
> height:250, shadow:true, callfromtag:true, minwidth:0, minheight:0, 
> initshow:false});
>       };ColdFusion.Event.registerOnLoad(_cf_window_init_1227286702646);
> </script>
> <link rel="stylesheet" type="text/css" 
> href="/CFIDE/scripts/ajax/resources/ext/css/ext-all.css" />
> <link rel="stylesheet" type="text/css" 
> href="/CFIDE/scripts/ajax/resources/cf/cf.css" />
> 
> <script type="text/javascript">
>       ColdFusion.Ajax.importTag('CFWINDOW');
> </script>
> 
> <script type="text/javascript">
>       var _cf_window_init_1227286702850=function()
>       {
>               var 
> _cf_window=ColdFusion.Window.create('Coordinators_win','Area 
> Coordinator lookup','',{ modal:true, closable:true, 
> divid:'cf_window1227286702849', draggable:true, resizable:true, 
> fixedcenter:false, width:450, height:250, shadow:true, 
> callfromtag:true, minwidth:0, minheight:0, initshow:false});
>       };ColdFusion.Event.registerOnLoad(_cf_window_init_1227286702850);
> </script>
> 
> <link rel="stylesheet" type="text/css" 
> href="/CFIDE/scripts/ajax/resources/ext/css/ext-all.css" />
> <link rel="stylesheet" type="text/css" 
> href="/CFIDE/scripts/ajax/resources/cf/cf.css" />
> 
> <script type="text/javascript">
>       ColdFusion.Ajax.importTag('CFWINDOW');
> </script>
> 
> <script type="text/javascript">
>       var _cf_window_init_1227286702850=function()
>       {
>               var 
> _cf_window=ColdFusion.Window.create('CommunityCounselor_win',
> 'Community Counselor Lookup','',{ modal:true, closable:true, 
> divid:'cf_window1227286702849', draggable:true, resizable:true, 
> fixedcenter:false, width:380, height:250, shadow:true, 
> callfromtag:true, minwidth:0, minheight:0, initshow:false});
>       };ColdFusion.Event.registerOnLoad(_cf_window_init_1227286702850);
> </script> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315786
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to