Skip to main content
Inspiring
September 5, 2009
Question

cflocation problem, opening new browser tab

  • September 5, 2009
  • 2 replies
  • 1952 views

I have a cfform with several submit buttons. The form action is itself and depending on what submit button is pressed a different function from a cfc is invoked and then I'm trying to use cfloaction to launch a new page. When this happens it is opening a new tab in both fire fox and IE instead of opening the new location within the same browser tab. From reading the documentation for cfloaction this should not be happening and I do not want it to launch in a new window. What could be causing this to happen?

    This topic has been closed for replies.

    2 replies

    Inspiring
    September 12, 2009

    Hi John,

    I agree with Adam on the <cflocation> tag. I suspect it is a browser setting.

    Like in FireFox

    - - - - - -

    Tools/Options/Tabs

    Open new windows in a new tab

    - - - - - -

    Like in IE,ver7

    - - - - - -

    Tools/Internet Options/General Tab/Tab Section/Settings button

    then bottom section "Open links from other programs in"

    A new tab in the current window

    - - - - - -

    Try unchecking these boxes and then try your process again. Not

    saying this will correct your issue, but does seem like a browser

    issue to me as well and not <cflocation>

    Leonard

    Inspiring
    September 5, 2009

    Whatever is causing this, it's nowt to do with <cflocation>.  <cflocation> runs on the CF server, and the CF server has no concept of "browser windows", so it can't have any control over which browser window is (re-)used to render the result of a request.

    Take a look at the mark-up that's being delivered to the client browser.

    --

    Adam

    Inspiring
    September 5, 2009

    Hi Adam,

    Thanks for the logical answer, I will look into this further and update this post when I have it figured out.

    -John