Skip to main content
Inspiring
October 27, 2009
Question

url for a page with a tab (cflayoutarea)

  • October 27, 2009
  • 2 replies
  • 832 views

HI All~

If I have a url such as the following:

http://127.0.0.1/index.cfm?action=pageName&orderDate=nextday

...and this web page contains a cflayoutarea (tabs (type=tab) - the individual cflayoutarea tags use the name attribute and are named "tabOne", "tabTwo" and "tabThree")...

...what url could I give out that would always put the user onto my page AND onto a specific tab (it defaults to "tabOne" since that is the first tab in my code, but I need the page to be able to open directly to any of the tabs).

Anyone know?

Thanks in advance,

Rich

This topic has been closed for replies.

2 replies

Inspiring
October 27, 2009

I've seen something similar with ColdFusion.navigate() but would probably have to build a url/page redirector in order to make it work, adding name/value pairs to the URL.... anyone have any other ideas?

Thanks,

Rich

Inspiring
October 27, 2009

tabname=TheTabYouWant.

Then add some code to process it.

Inspiring
October 27, 2009

Dan-

Do you mean

http://127.0.0.1/index.cfm?action=pageName&orderDate=nextday&tabname=tabTwo ?

When you say "... add some code to process it..." what do you mean?

Thank you for taking the time to respond, I really appreciate your help.

Rich

Inspiring
October 27, 2009

To check to see if a tabname has been passed as a url parmater, you can use

cgi.querystring contains "tabname"

or

isDefined("url.tabname")

or

StructKeyExists(url, "tabname")

Whatever you pick, if it returns true, do whatever you have to do to display that tab.