]I have a piece of code that uses cflocation after doing some
]update queries.
]In IE, it works fine, but in Netscape a page comes up that
]states: "Object Moved" and then "this document may be found here".
]The hyperlinked 'here' works, redirecting to the url in the
]cflocation. What is the problem?
If I understand how <cflocation> works, the tag re-writes the redirect to
the document header so that when the document is loaded, the redirect takes
place automatically. At times, however, the header may get corrupt (causing
the condition that you described above).
I've found that this usually happens when you're calling <cflocation> from a
template that already contains HTML code. One of the things that you may
want to do is make sure that your <cflocation> statement is called before
any code gets generated (ie -- before the <html>,<head>, and <body> tags).
The other thing that has worked in the past for us is to append a 'fake' url
variable to the redirect address (if it doesn't have one):
<cflocation url="http://www.myapplication.com/index.cfm?0=1">
Lastly, you can also use the <cfheader> tag to perform the redirect:
<cfheader name="Refresh" value="0;
URL=http://www.myapplication.com/index.cfm">
Note that the value before the semicolon (in this case 0) is used to
represent the delay to be enforced prior to performing the url redirect. I
hope this information helps; please let me know how you make out. On
another note, if my understanding of this condition is mistaken please feel
free to chime in. Good luck! :-)
Best Wishes and Regards,
Abraham Lloyd
Senior Developer
www.onproject.com
Working Together, Apart.
onProject.com Inc.
[EMAIL PROTECTED]
p 407.302.9708
f 973.971.9971
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.