I mean that each time the window is opened the content is loaded fresh  
rather than using the cached page.  One of the attributes of the  
cfwindow tag is refreshOnShow.  It forces the window's content to be  
loaded fresh each time to window is opened.  However, since I am not  
using the tag directly and instead using cfajaximport and a javascript  
to create unique windows I can't declare the attribute the same way as  
with the tag.  in my example you can see where I am assigning  
attributes to the created window.

On a whim I tried to create the window with showInit equal to false  
then using another line of script in my function to show the window.   
This didn't make any difference.  When the window has been opened once  
the content will never change no matter how many times I open and  
close the window.

I may just turn to javascript to create a random window name.  This  
would be a hack, but it would force CF to see the window as unique  
each time it was opened.

Steve Good
http://lanctr.com




On Jun 5, 2008, at 10:28 PM, William Seiter wrote:

> Hey Steve,
>
> What do you mean by 'refresh'?
>
> My understanding is that if you 'close' the window and then 'reopen'  
> it,
> that is when it would 'refresh'.
>
> Also, After you run the function, does the window automatically show  
> up, or
> do you need to navigate to it first?
>
> ----------------------------------
> William Seiter
> ColdFusion Web Developer / Consultant
> http://william.seiter.com
>
> Free Website Trade Publication >> Website Magazine
> http://www.websitemagazine.com/referrals/?id=51344&f=text2
> Don't forget to answer the survey questions, it's a 10 second task ,
> a very small request  for access to this  incredible resource.
>
> Have you ever read a book that changed your life?
> Go to: http://www.winninginthemargins.com
> Use PassKey: GoldenGrove
> You'll be glad you did.
>
>
>
> ::-----Original Message-----
> ::From: Steve Good [mailto:[EMAIL PROTECTED]
> ::Sent: Thursday, June 05, 2008 6:00 PM
> ::To: CF-Talk
> ::Subject: cfwindow refreshOnShow
> ::
> ::
> ::Hi gang,
> ::
> ::I'm creating a cfwindow through a JS function.  I can declare the
> ::width, height, whether it's modal or not, etc through the function.
> ::However when i try to define refreshOnShow:true The cfwindow doesn't
> ::actually refresh.  Here's the JS I'm using:
> ::
> ::function makeWindow(client,campID) {
> ::    ColdFusion.Window.create( campID,"Campaign " +
> ::campID,"onlineMarketing_campDetail.cfm?client=" + client +  
> "&campID="
> ::+ campID,
> ::    {refreshOnShow:true,center:true,modal:true,width:500,height:400});
> ::}
> ::
> ::Anyone know how I can get this to work?
> ::
> ::Steve Good
> ::http://lanctr.com
> ::
> ::
> ::
> ::
> ::
> ::
> ::
>
> 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306942
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to