Jerome Slaughter
asked on
Multiple variables in a url meant for specific tabs on coldfusion page. How do you grab the specific variable designated for the specific tab or coldfusion page?
I know how to pass multiple variables in a url. My problem is that the each variables in the url is meant for a specific tab on a coldfusion page. How do I specifically grab the appropriate variable to use within the specific tab? This is my dilemma. Thanks in advance for your help.
ASKER
Below is an excerpt of my code. The excerpt represents a web page that has a link back to the home page (<a href="trackertabs.cfm?<cfo utput>#CGI .QUERY_STR ING#</cfou tput>&tab= 2">Click here to return to Service Tab</a> ).
Two variables are attached to the above link/url (#CGI.QUERY_STRING# and tab=2)
#CGI.QUERY_STRING# represents the username per the login to the site.
tab=2 represents the second tab on the home page.
The goal is to pass the username back to the second tab on the home page. I have been unsuccessful at separating the variables once they are both passed back to the home page.
Two variables are attached to the above link/url (#CGI.QUERY_STRING# and tab=2)
#CGI.QUERY_STRING# represents the username per the login to the site.
tab=2 represents the second tab on the home page.
The goal is to pass the username back to the second tab on the home page. I have been unsuccessful at separating the variables once they are both passed back to the home page.
<body>
<a href="http://127.0.0.1:8500/TicketTracking/trackertabs.cfm?<cfoutput>#CGI.QUERY_STRING#</cfoutput>" <br><br>
<a href="trackertabs.cfm?<cfoutput>#CGI.QUERY_STRING#</cfoutput>&tab=2">Click here to return to Service Tab</a></br />
<body>
<center>
<font size=4>
My Service Requests
</font>
</center>
<br>
</body>
ASKER
I have been successful at getting the link to return to the 2nd tab on the home page but the username won't display due to it being attached with the 2nd variable in the url.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Your suggestions above worked out well for what I was trying to do. Appreciate the help as I can now continue with my development without being stuck on this issue. Thanks again.
It depends on your code, <cflayout> tabs are just code within the page. So you don't need to do anything except reference the variable just like you would in any case.
If you're using the URL reference for your tab, then you need to pass the variable on the URL you are providing to the tab.
Please provide your code and describe the problem you're having (including which variable is not showing up where)