[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

PopUp Windows In FuseBox 3

Posted on 2003-10-29
8
Medium Priority
?
494 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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
 
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 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month19 days, 3 hours left to enroll

834 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