vchris Posted February 22, 2007 Share Posted February 22, 2007 How can I get the name of the page I am browsing? If I am on a page called page_e.cfm, I want the link to be page_f.cfm so basically change _e for _f. Link to comment Share on other sites More sharing options...
aspnetguy Posted February 22, 2007 Share Posted February 22, 2007 this code outputs the current url <cfoutput> http://#cgi.server_name##cgi.script_name#?#cgi.query_string#</cfoutput> so I guess what you are looking for is #cgi.script_name# Link to comment Share on other sites More sharing options...
vchris Posted February 22, 2007 Author Share Posted February 22, 2007 Exactly what I needed! thank you. Link to comment Share on other sites More sharing options...
Skemcin Posted February 22, 2007 Share Posted February 22, 2007 when in doubt, use this to investigate exactly what you need.<cfdump var"#cgi#" label="Use at will CGI variables!">I put this and even a session dump in my "onrequestend.cfm" file. I keep it there commented out so I can easily get the information whenever i want. Not sure if you know that, but the "onrequestend.cfm" file works just like the "application.cfm" file except that it gets run at the end of every file. Its helpful in a number of situations. Link to comment Share on other sites More sharing options...
tariq_ews Posted October 24, 2007 Share Posted October 24, 2007 #cgi.script_name#if u are using dreamweaver 8.0 then when you type cgi. all script information u can get and u can chek it outwith the cfout Link to comment Share on other sites More sharing options...
tariq_ews Posted October 24, 2007 Share Posted October 24, 2007 this code will help u just check it out<cfparam name="URL.startrow" default="1" /><cfset nNextRows = URL.startrow + 2 /><cfset nPreviousRows = URL.startrow - 2 /><head><title>Pageable Record</title></head><table><cfoutput><tr> <cfif nNextRows LTE 10> <td><a href="#CGI.SCRIPT_NAME#?startrow=#nNextRows#">Next Record</a></td> </cfif> <cfif nPreviousRows GTE 1> <td><a href="#CGI.SCRIPT_NAME#?startrow=#nPreviousRows#">Previous Record</a></td> </cfif></tr></cfoutput><cfoutput query="pageable" startrow="#url.startrow#" maxrows="2"><tr> <td>#per_name#</td> <td>#per_phone#</td></tr></table></cfoutput><body></body></html> Link to comment Share on other sites More sharing options...
vchris Posted October 24, 2007 Author Share Posted October 24, 2007 This was in Feb this year... I figured it out! Link to comment Share on other sites More sharing options...
Skemcin Posted October 24, 2007 Share Posted October 24, 2007 This was in Feb this year... I figured it out!took you that long - wow, what do you get per hour? Link to comment Share on other sites More sharing options...
vchris Posted October 25, 2007 Author Share Posted October 25, 2007 I get way too much :)Don't play with me! I've killed for a lot less Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now