Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How do I show cfwindow

Posted on 2008-11-19
4
Medium Priority
?
431 Views
Last Modified: 2012-06-27
I have already set the code for a cfwindow and disabled its visibility. It's name is "Confirmation". How do I make it visible withou a button or a link????
0
Comment
Question by:spiderbuzz
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:mtgenus
ID: 22998177
just call the same function you would call in the button or link from javascript outside of a function. So, if you use ColdFusion.Window.show() and the name of your window is for example, "myWindow2" then:

<script type="text/javascript" language="javascript">

      ColdFusion.Window.show('myWindow2')
      
</script>

just make sure the code is after the code for the window.. like, the bottom of the page

0
 

Author Comment

by:spiderbuzz
ID: 22998343
That's what I am doing but I cannot show the window Here is my code:
<body>
<cfajaximport tags="cfwindow">
<cfwindow name="Confirmation" title="Confirmation" center="true" width="300" height="150" modal="true" initshow="false"> We will respond to your message ASAP.<br />
  Thanks,<br />
</cfwindow>
<script type="text/javascript" language="javascript">
ColdFusion.Window.Show('Confirmation')
</script>
</body>
0
 
LVL 2

Accepted Solution

by:
mtgenus earned 2000 total points
ID: 22998653
"show" should be in lowercase... ColdFusion.Window.show('Confirmation')...


if that doesn't work, I found a workaround I had to use on one server... create the window in javascript, as per code snippet:
<body>
<cfajaximport tags="cfwindow">
 
<script type="text/javascript" language="javascript">
ColdFusion.Window.create('Confirmation','Confirmation Message','',{ modal:true, closable:true, draggable:true, resizable:true, fixedcenter:true, width:300, height:150, shadow:true, callfromtag:true, minwidth:0, minheight:0, initshow:false});
document.getElementById('Confirmation_body').innerHTML = 'We will respond to your message ASAP.<br \/>  Thanks,<br \/>';
 
ColdFusion.Window.show('Confirmation');
</script>
</body>

Open in new window

0
 

Author Closing Comment

by:spiderbuzz
ID: 31518393
The alternative worked perfectly.Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question