Solved

PopUp Windows In FuseBox 3

Posted on 2003-10-29
8
476 Views
Last Modified: 2013-12-24
Hello,

How can I intergrate pop up windows into my fusebox 3 app?

I need pop up windows that will pop up everytime the page is loaded, and pop up windows that will
only load once per browser session. How can I do this?

Sincerely,
Brandon Powell
0
Comment
Question by:brandonpowell
  • 4
  • 2
  • 2
8 Comments
 
LVL 9

Expert Comment

by:CFDevHead
ID: 9644462
Call the pop up window the same way you would if you weren't using the fusebox methodology.

Note: the fusebox is methodology.
0
 
LVL 9

Expert Comment

by:CFDevHead
ID: 9644519
<!--- include the core FuseBox  --->
<cflock type="READONLY" name="#server.coldfusion.productVersion#" timeout="10">
      <cfset variables.fuseboxVersion=Replace(Replace(ListDeleteAt(server.coldfusion.productVersion,4),",","","all")," ","","all")>
      <cfset variables.fuseboxOSName=server.os.name>
</cflock>

<cfif variables.fuseboxVersion lte 450>
      <cfinclude template="fbx_fusebox30_CF40.cfm">
<cfelseif variables.fuseboxVersion lt 500>
      <cfif variables.fuseboxOSName contains "Windows">
            <cfinclude template="fbx_fusebox30_CF45.cfm">
      <cfelse>
            <cfinclude template="fbx_fusebox30_CF45_nix.cfm">
      </cfif>
<cfelseif variables.fuseboxVersion lt 600>
      <cfif variables.fuseboxOSName contains "Windows">
            <cfinclude template="fbx_fusebox30_CF50.cfm">
      <cfelse>
            <cfinclude template="fbx_fusebox30_CF50_nix.cfm">
      </cfif>
</cfif>
<script>
window.open('vs_jcpopup.cfm','VJobs','width=450,height=400,scrollbars,resizable');
</script>
0
 

Author Comment

by:brandonpowell
ID: 9644628
I have this code in the application.cfm file to force all requests to go through the
index.cfm fuse. Will just calling the page still work with this code in the app file?

Here is the code..

<!--- Force all requests to go through the index.cfm file --->
<cfif ListLast(cgi.script_name, '/') NEQ "index.cfm">
      <cflocation url="index.cfm" addtoken="no">
</cfif>

Thanks,
Brandon Powell
0
 
LVL 4

Expert Comment

by:procept
ID: 9644723
Hi Brandon,

change those lines in Application cfm to

<cfif NOT ListFIndNoCase("index.cfm,vs_jcpopup.cfm", ListLast(cgi.script_name, '/'))>
     <cflocation url="index.cfm" addtoken="no">
</cfif>

and CFDevHead's solution should work...

HTH,

Chris





0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 9

Expert Comment

by:CFDevHead
ID: 9644781
Or you could pass a variable to the switch statement and include the popup that way
example
call popup
<script>
window.open('vs_jcpopup.cfm?fuseaction=popup&popup=vs_jcpopup','VJobs','width=450,height=400,scrollbars,resizable');
</script>

index page
<cfswitch expression="#fuseaction#">
      <cfcase value="popup">
            <cfinclude template="evaluate(popup & '.cfm')">
      </cfcase>
</cfswitch>
0
 
LVL 4

Expert Comment

by:procept
ID: 9644804
yep... even better because it sticks to the fusebox logic! :-))

Chris
0
 
LVL 9

Accepted Solution

by:
CFDevHead earned 500 total points
ID: 9645306
Well did it work?
0
 

Author Comment

by:brandonpowell
ID: 9646141
Yep, thanks!

Oops! I accepted the wrong answer. The last script you sent me was the one I
wanted to accept. How can I change that?

Thank you for your help. Your speedy response saved the day!

Sincerely,
Brandon Powell
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now