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

Create dynamic links.

New Here ,
Mar 20, 2008 Mar 20, 2008

Copy link to clipboard

Copied

Greetings:
In a left nav column, I have several links:
<cfmenu name="nav" type="vertical" bgcolor="white" fontcolor="black">
<cfmenuitem display="page1"
href="javaScript:ColdFusion.navigate('page1.cfm','myDiv')">
</cfmenuitem> etc.

I want each link to display the target page in the right table cell:

<cfdiv id="myDiv" bind="url:page1.cfm">
</cfdiv>

I have got this working but It acts erratically.

A few questions: does there need to be the same number of div tags as links, e.g. <cfdiv id="myDiv" bind="url:page2.cfm">
</cfdiv> etc.?

Does the target page need to be a standalone HTML document or can it be simply text that takes on the style elements of the area it displays in?

Not a lot of postings re: cfmenu- are people using it?

Thanks!
TOPICS
Advanced techniques

Views

367

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
Contributor ,
Mar 21, 2008 Mar 21, 2008

Copy link to clipboard

Copied

LATEST
There is no direct connection with the cfmenu and reference links. You can even use direct links without any cfmenu.

such as:
<a href="javascript:ColdFusion.navigate('content.cfm?page=aboutus','mainContent');">About Us</a>

You can use any HTML/CFM template or text or image etc. for your binded divs. It is just URL.

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