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

Document (Page) Title

Explorer ,
Jul 21, 2008 Jul 21, 2008
Is there a way to get the <title> tag value, ie the current page's title into a CF variable. In Javascript, it is simply document.title. But I need it in a CF variable. Is this possible?
415
Translate
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 ,
Jul 21, 2008 Jul 21, 2008
If this were my problem, I'd set the variable first and then use it for the title.
Translate
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
Explorer ,
Jul 21, 2008 Jul 21, 2008
Thanks. I'm trying to come up with a tag that I can drop into any page that will be able to obtain the existing page <title>.
Translate
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 ,
Jul 21, 2008 Jul 21, 2008
http://www.beetrootstreet.com/blog/index.cfm/2007/1/5/Extract-page-title--ColdFusion-regular-express...

--
Ken Ford
Adobe Community Expert - Dreamweaver/ColdFusion
Fordwebs, LLC
http://www.fordwebs.com


"KenSchweers" <webforumsuser@macromedia.com> wrote in message news:g62cp4$gk2$1@forums.macromedia.com...
> Is there a way to get the <title> tag value, ie the current page's title into a CF variable. In Javascript, it is simply
> document.title. But I need it in a CF variable. Is this possible?

Translate
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
Explorer ,
Jul 22, 2008 Jul 22, 2008
LATEST
Thanks Ken, that does work. I guess nobody knows of a function call or variable that is available that contains the <title> value. I'll go with this and appreciate the help. I just wish I didn't have to incur overhead reading in the entire source of a page just to get at the title.
Translate
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