You are dynamically creating the window at what point? Within your cfm
code? If so then you have the window name:
<cfset VARIABLES.myDyamicWindowName = [some generator code here] />
<cfwindow name="#myDyamicWindowName#" ...
Which you could then reference in your JavaScript (built dynamically
with cf):
var myWin =
ColdFusion.Window.getWindowObject(#VARIABLES.myDyamicWindowName#);
From this you should be able to use your object in any function you set up:
function myFunction(){
// doing whatever
var myWin =
ColdFusion.Window.getWindowObject(#VARIABLES.myDyamicWindowName#);
myWin.close();
}
Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_____________________________
http://blog.cutterscrossing.com
Asim . wrote:
> Exactly, thats what I am looking for.
>
> In ajax logger when I create the window it shows up, I already expend 3
> hours, no docs, no result on google search.
>
> Appreciate if somebody can direct me to the right position.
>
> What I want is dynamic window creation and on form submit, I have a close
> button. thats all.
>
> Thanks guys.
>
>
>
>> You have to know the window name
>>
>> ColdFusion.Window.getWindowObject(windowname)
>>
>> You're setting the windowname dynamically, then that name should be
>> stored in a JS variable somewhere, so that you can reference the window
>> via JavaScript as needed.
>>
>> Steve "Cutter" Blades
>> Adobe Certified Professional
>> Advanced Macromedia ColdFusion MX 7 Developer
>> _____________________________
>> http://blog.cutterscrossing.com
>>
>> Ashyboy
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288969
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4