user1054669
user1054669

Reputation:

CFLocation opening in a new window instead of the CFDIV (in Firefox Only)

I have a cfform inside of a cfdiv where people can register for my site. When the form submits, it processes everything and if there is any reason to send the user back to the registration form, a cflocation is triggered.

It is supposed to redirect back to the cfdiv, not a new page. That is one of the reasons the cfdiv tag is useful. It works just fine in Internet Explorer. But in Firefox it opens the cflocation page in the parent window instead of the cfdiv.

Upvotes: 0

Views: 1438

Answers (2)

user1054669
user1054669

Reputation:

Had a cfabort on the processing page. Took it out and now its working as expected. And yes, cflocation can be used inside a cfdiv without the parent window refreshing.

Upvotes: 1

Henry
Henry

Reputation: 32885

I don't think you can use cflocation for this.

You should cfoutput a block of <script> that invokes this JS function: ColdFusion.navigate

See: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS0ef8c004658c1089-6262c847120f1a3b244-7fd0.html

Upvotes: 2

Related Questions