When I view the source on the page I get the following. Don't know if this is 
the issue or not. See this part of the javascript created by ColdFusion where 
it says cf_window1360264638663

This is the same thing I see where the CFWindow should appear in my code. It is 
almost like it is changing the name of the window. This is just a guess.

<div  id="cf_window1360264638663" class="x-hidden">
        
        <div  id="AddToCartWindow54276_title" class="x-window-header" 
style="background-color:black; color:white;">
                Item Was Added To Your Cart
         </div>
        <div  id="AddToCartWindow54276_body" class="x-window-body" 
style="background-color:white;">
                
                
         </div>
 </div>



<script type="text/javascript">
/* <![CDATA[ */
        var _cf_window_init_1360264638664=function()
        {
                _cf_bind_init_1360264638665=function()
                {
                        
ColdFusion.Bind.register([],{'bindTo':'AddToCartWindow54276_body','bindExpr':['AddToCartWindow.cfm?PID=54276']},ColdFusion.Bind.urlBindHandler,false);
                
};ColdFusion.Event.registerOnLoad(_cf_bind_init_1360264638665);var 
_cf_window=ColdFusion.Window.create('AddToCartWindow54276','Item Was Added To 
Your Cart','AddToCartWindow.cfm?PID=54276',{ modal:false, closable:false, 
divid:'cf_window1360264638663', draggable:true, resizable:true, 
fixedcenter:true, width:600, height:355, shadow:true, 
bodystyle:'background-color:white;', headerstyle:'background-color:black; 
color:white;', callfromtag:true, minwidth:0, minheight:0, initshow:false, 
destroyonclose:true, _cf_refreshOnShow:true});
        };ColdFusion.Event.registerOnLoad(_cf_window_init_1360264638664);
/* ]]> */
</script>





-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Thursday, February 07, 2013 6:38 PM
To: cf-talk
Subject: RE: CFWINDOW ID gets changed?


No dice. I even tried manually replacing the variable with the name of the 
window like so and it still tells me it does not exist.

ColdFusion.Window.show('AddToCartWindow54276');


-----Original Message-----
From: Andrew Scott [mailto:[email protected]] 
Sent: Thursday, February 07, 2013 6:32 PM
To: cf-talk
Subject: Re: CFWINDOW ID gets changed?


And this might not be obvious but is the text being passed to the callback, 
does it contain any railing spaces?


On Fri, Feb 8, 2013 at 10:31 AM, Andrew Scott <[email protected]>wrote:

> Ok here is another test you can do.
>
> console.log(ColdFusion.Window.getWindowObject(*name*));
>
> And replace name with the name you want and see if an object is 
> returned in the console.
>
>
>
>
>
>  On Fri, Feb 8, 2013 at 10:29 AM, [email protected] < 
> [email protected]> wrote:
>
>>
>> The ID number from the database row. All of them unique. The code for 
>> the AJAX call runs and spits out the ID. Then I take that ID and add 
>> it to the name of the prefix for the window
>>
>> var ConfirmWindow = "AddToCartWindow" + text;
>>
>>  which gives me in this example the following
>>
>> AddToCartWindow54276
>>
>> Which is the name of the window it claims it cannot find.
>>
>> 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:354388
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to