Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Coldfusion and Javascript

Posted on 2007-04-05
1
Medium Priority
?
156 Views
Last Modified: 2013-12-24
I am populating a navigation drop down menu using javascript as such: (My question begins below at Menu[4]

Menu Item 1:
<li id="navtickets">
     <a href="/ticketing/default.cfm" onMouseover="dropdownmenu(this, event, menu1, '150px')" onMouseout="delayhidemenu()">Buy Tickets</a>
</li>

Populating with from dropNav.js:
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="subscribe/index.cfm">Subscriptions</a>'
menu1[1]='<a href="ticketing/seriesListing.cfm">Series Tickets</a>'
menu1[2]='<a href="ticketing/singleTickets.cfm">Single Tickets</a>'
menu1[3]='<a href="http:calendar.cfm">Season Calendar</a>'

//Set Season ID to equal that of the season dates you wish to display ie 2008 -2009 SeasonID =3
menu1[4]='<a href="http://www.louisvilleorchestra.org/season.cfm?SeasonID=2">2007-2008 Season</a>'
How can I create or can I create a statement such as
menu1[4]='<a href="http://www.louisvilleorchestra.org/season.cfm?SeasonID=<cfoutput>#APPLICATION.SeasonNo#</cfouput>">2007-2008 Season</a>'
0
Comment
Question by:jabronicus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
abdulraheem earned 2000 total points
ID: 18859421
you can't write coldfusion tag in .js file
you need to change the file dropNav.js to dropNav.cfm
and put the  in starting
<cfoutput>

all JS code here
</cfoutput>

then you need to import file in the head tag of html

like this <cfinclude template="dropNav.cfm ">

and remove the <link> tag which include the js file.

I hope you application would run fine.
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question