Skip to main content
Inspiring
December 1, 2011
Answered

can i turn a cflayoutarea tab into a hyperlink?

  • December 1, 2011
  • 1 reply
  • 905 views

i just want to create a tab named Home in a tabbed layout that, when clicked, will load the home page

is there a way to make this work?

<a href="home.cfm"><cflayoutarea title="Home" name="goHome"></cflayoutarea></a>

thanks

    This topic has been closed for replies.
    Correct answer insuractive

    There is nothing immediately obvious in the docs.  There may be a way to access the underlying JS object used by the <cflayout> controls, but it might be easier to create a page for the source of that area and redirect to the home page using a window.location or equivalend JS command.

    1 reply

    insuractiveCorrect answer
    Inspiring
    December 1, 2011

    There is nothing immediately obvious in the docs.  There may be a way to access the underlying JS object used by the <cflayout> controls, but it might be easier to create a page for the source of that area and redirect to the home page using a window.location or equivalend JS command.

    ionAuthor
    Inspiring
    December 3, 2011

    thanks insuractive, adding a source param to a simple redirect page works fine, but only if you also specify the bindonload="false" param for cflayoutarea. otherwise, it will try to load the linked source immediately which in turn will kick you out of your page right after loading