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
Copy link to clipboard
Copied
tabname=TheTabYouWant.
Then add some code to process it.
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
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.
Copy link to clipboard
Copied
... 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
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