Web Design and Development Forums

Check to see if a cfwindow exists

This is a discussion on "Check to see if a cfwindow exists" within the Java, JSP, Cold Fusion section. This forum, and the thread "Check to see if a cfwindow exists are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > Java, JSP, Cold Fusion

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Feb 25th, 2008, 12:22   #1 (permalink)
Banned Member
 
Join Date: Feb 2008
Location: London
Posts: 2
Check to see if a cfwindow exists

Check to see if a cfwindow exists
When a window gets created by <cfwindow> coldfusion gives it a unique name and not the name you assigned it.
I have found a work around in the way of checking for the title of the window as when you create a cfwindow the window title div get the id of yourwinname_title.

Example javascript
<cfajaximport tags="cfwindow"/>
<script language="javascript">
function createphloadwin() {
if(document.getElementById('mywindow_title')) {
var x = "true";
// Show the window
ColdFusion.Window.show("mywindow");
} else {
var x = "false";
// Create a new window
ColdFusion.Window.create("mywindow", "Upload Photos", "", {height:250,width:400,closable:true,draggable:true ,resizable:false,center:true,initshow:true,modal:t rue })
// Put your content in the window or you can assign the url in the ColdFusion.Window.create()
document.getElementById('mywindow_body').innerHTML = 'My Window content';
}
alert(x);
}
</script>

<a href="javascript:createphloadwin();">Check for window</a>

Thanks
Ben
LTS Media Ltd.
www.thestreamingmonkey.com
BenR41 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
fastest way to check if table exists CloudedVision PHP Forum 3 Feb 20th, 2008 16:15
simple check if user exists mlecho PHP Forum 3 Aug 28th, 2007 15:48
Check whether URL exists Sheepymot PHP Forum 2 Jul 24th, 2005 08:16
Hello, check this ;) Anonymous User Introduce Yourself 1 Feb 12th, 2004 19:10



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 23:01.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59