• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

url for a page with a tab (cflayoutarea)

Engaged ,
Oct 26, 2009 Oct 26, 2009

Copy link to clipboard

Copied

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

TOPICS
Advanced techniques

Views

734

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 27, 2009 Oct 27, 2009

Copy link to clipboard

Copied

tabname=TheTabYouWant.

Then add some code to process it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 27, 2009 Oct 27, 2009

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 27, 2009 Oct 27, 2009

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 27, 2009 Oct 27, 2009

Copy link to clipboard

Copied

LATEST

... sorry Dan, that's not working.

I used:

http://10.0.1.3:8500/index.cfm?action=dispatch.manageDispatch&orderDate=nextday&tabname=dirtwork

where I know the tabname "dirtwork" is present, yet I still get to my page but only to the first tab on my page, not the "dirtwork" tab which is actually the 3rd tab on the page.

Did I misunderstand your instruction?

Thank you again for your help,

Rich

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 27, 2009 Oct 27, 2009

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation