Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help creating splash screen

Status
Not open for further replies.

ashw

MIS
Jun 10, 2002
61
CA
I need to create splash screen in coldfusion. The screen then loads windows NT loggon screen for user name and password. Please help.
 
I have created the the splash screen and used the meta tag too. How do I make the splash screen the initial page like in Vb we check mark the name of the form to be loaded first. How do we do that in CF
 
ashw,

You should replace any link to the protected resource in your CF code with the address of the splash screen.

HTH,
 

If you want to make sure the splash page is seen first each session (visit) on a CF site, then teh best thing to do is create a session variable in your application file that defaults to a negative value, and then have the splash page itself change to positive.

I know that is a bit confusing, so here is what I would suggest in coding:

In the APPLICATION.CFM file, set a session variable to a default value which indicates that the splash page has not been seen yet:

<CFPARAM NAME=&quot;SESSION.SPLASHLOADED&quot; DEFAULT=&quot;NO&quot;>

Then, also in the APPLICATION.CFM FILE, tell CF to load the splash page if it wasn't seen yet.

<CFIF SESSION.SPLASHLOADED EQ &quot;NO&quot;>
<CFLOCATION addtoken=&quot;No&quot; url=&quot;splashpage.cfm&quot;>
</CFIF>

NOW, to make sure you do not end up in an endless splashpage loop, in the SPLASHPAGE.CFM file change the variable to a positive value so it will no longer load the splash page.

<CFSET SESSION.SPLASHLOADED = &quot;YES&quot;>



That should ensure that your splash page always is seen first!

Keep in mind that all your site's pages must be cfm to work - any html pages will not trigger the required splash loader.

Glen Palmer


 
Sorry I missed 1 thing above (otherwise you will end up in a never ending loop)

In the CFIF code I gave you it should be something like:

<CFIF SESSION.SPLASHLOADED EQ &quot;NO&quot; AND FINDNOCASE(&quot;splashpage.cfm&quot;,&quot;#cgi.scriptname#&quot;,&quot;1&quot;) EQ 0>
<CFLOCATION addtoken=&quot;No&quot; url=&quot;splashpage.cfm&quot;>
</CFIF>


Glen Palmer
SafariTECH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top