[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 578
  • Last Modified:

cflocation not working

Very wierd... but can someone please example why my cflocation isn't working... i want it to run this page and at the end of all the include processing do a cflocation...

here's my page


<div id="wait" align="center" style="overflow:hidden;">
<cfinclude template="PleaseWait.cfm">
</div>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Searching.... Please wait....</title>
</head>

<body>

<div id="page" style="visibility:hidden;">
<CFFLUSH>

<CFIF IsDefined("form.email") and form.email neq "">
<cfinclude template="inc_NetForum.cfm">
<cfelse>
<cflocation url="index.cfm">
</CFIF>
</div>
</body>
<script>
document.getElementById('page').style.visibility = 'visible'
document.getElementById("wait").style.display = 'none';

</script>
</html>


<cflocation url="http://www.google.com">
0
polobruce
Asked:
polobruce
1 Solution
 
PluckaCommented:
polobruce,

CFLOCATION and CFFLUSH do NOT work together.

You can use a javascript redirect at the end

window.location.href = 'http://www.google.com';

Regards
Plucka
0
 
polobruceAuthor Commented:
i did not realize.  thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Tackle projects and never again get stuck behind a technical roadblock.
Join Now