Hiw to make link in cfselect

Hi Experts, i have this below select tag, which fetches record using the bind attribute using ajax coldfusion stuff.

<cfselect name="subcat" size="5" class="textfield_select" bindOnLoad="no" id="subcat" bind="cfc:statecity.getsubcat({city@click},{category@none})" display="catName" value="catID"></cfselect>

how can i create a link in this cfselect statement so i can open in a new window, can anyone guide in a proper way

like record is BAR, i click on BAR and it should open the link in new window as page.cfm?rec=bar

is it possible
LVL 16
Gurpreet Singh RandhawaCEOAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gurpreet Singh RandhawaCEOAuthor Commented:
or like it is returning a result from a cfc, can i make over there. is so how?

here is my cfc for this:

<cffunction name="getsubcat" access="remote" returntype="query">
  <cfargument name="city" required="true">
  <cfargument name="category" required="true">
  <cfset var myset = "">
  <cfquery name="myset" datasource="#request.dsn#" username="#request.user#" password="#request.pass#">
	SELECT dpages.catID, dpages.cityID, c1.catName, cities.* 
    FROM dpages  
    inner JOIN cities ON dpages.cityID = cities.cityID 
    left Join categories c1 on dpages.catID = c1.catID
    dpages.cityID = <cfqueryparam cfsqltype="cf_sql_numeric" value="#arguments.city#">
    (dpages.catID = <cfqueryparam cfsqltype="cf_sql_numeric" value="#arguments.category#"> 
    dpages.parentID = <cfqueryparam cfsqltype="cf_sql_numeric" value="#arguments.category#">) 
    GROUP BY c1.catName
  <cfreturn myset>

Open in new window

ZvonkoSystems architectCommented:
Check this:

<cfselect name="subcat" size="5" class="textfield_select" bindOnLoad="no" id="subcat" bind="cfc:statecity.getsubcat({city@click},{category@none})" display="catName" value="catID" onChange="f=this.form;f.target='popWin';f.submit();" ></cfselect>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gurpreet Singh RandhawaCEOAuthor Commented:
I have not checked it but i think it works with little modification
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.