Pete, what was wrong with the example I gave? Just target the window and
change the title. It's pretty simple.

If this is your cfwindow tag:
<cfwindow x="0" y="250" width="450" height="450" name="myWin1"
title="Starting Title" source="windowsource.cfm" />

Then this is the javascript you need to change the title.
<script>
myWin1.document.title = "Different Content Specific Title";
</script>


On Wed, Jul 7, 2010 at 9:49 AM, Pete Ruckelshaus <[email protected]>wrote:

>
> That doesn't solve my problem.
>
> I would need to create hundreds of cfwindow instances just to have a
> cfwindow title match the content of the window...on a page where I already
> have the code for hundreds of google map points.
>
> On Wed, Jul 7, 2010 at 9:33 AM, Paul Alkema <[email protected]
> >wrote:
>
> >
> > You could use ColdFusion.Window.create.
> >
> > Example
> >
> >    <cfajaximport tags="cfwindow">
> >    <script type="text/javascript">
> >    url = 'http://www.google.com/';
> >    title = 'This is my title';
> >    name = 'newWindow';
> >    ColdFusion.Window.create(name, title, url,{initshow:false});
> >    </script>
> >
> >    <a href="javascript:ColdFusion.Window.show('newWindow');">Show
> > Window</a>
> >
> > -----Original Message-----
> > From: Pete Ruckelshaus [mailto:[email protected]]
> > Sent: Wednesday, July 07, 2010 9:08 AM
> > To: cf-talk
> > Subject: cfwindow - dynamically setting window title using javascript?
> >
> >
> > Is there a way to dynamically set the cfwindow title using JavaScript?
> >  What
> > I mean is, I have the cfwindow's title attribute set to a fairly generic
> > value.  Once I display the window, it always contains dynamic data, and I
> > would like the cfwindow title to reflect the dynamic content.  I would
> > assume that this would be done via a Javascript snippet from within the
> > cfwindow content display page.
> >
> > Thanks,
> >
> > Pete
> >
> >
> >
> >
> >
>
> 

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

Reply via email to