Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / April 2009



Tip: Looking for answers? Try searching our database.

Potentially stupid <cfwindow> question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam Cameron - 14 Mar 2009 23:15 GMT
G'day
One can use ColdFusion.Window.getWindowObject(name) to get the object
relating to a <cfwindow>, provided one knows the name.  Fair enough.

What I'm trying to work out is from inside a <cfwindow>, is there a
built-in way of saying (something like) ColdFusion.Window.getCurrentWindow.
I can't see anything exposed by <cfwindow> that actually identifies the
name or the object-itself of the current window to itself (if that makes
sense).  I can pass the window's name into it on its source URL, but I
would have thought the window already know who it is, so I should just be
able to ask.  I know I can extract the info by hacking about in the DOM,
but I would have thought there'd be a simpler way than that..?

Cheers for any thoughts.

Signature

Adam

byron1021 - 02 Apr 2009 01:41 GMT
I guess the cfwindow is doing bound to something to get content.

When the cfwindow makes it's post or get this value exists url._cf_containerId
(along with some others). Turn on ajax debugging in the cfadmin and pass
cfdebug=1 in the page you are working on, and you'll get a JS debugging window
inline.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.