Skip to main content
March 20, 2008
Question

Create dynamic links.

  • March 20, 2008
  • 1 reply
  • 432 views
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!
This topic has been closed for replies.

1 reply

Participating Frequently
March 21, 2008
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.