|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Make cfoutput data clickableHello, I'm trying to find a way to make data from cfoutput clickable. The code below populates a table, and I want to be able to click on a members name and launch a profile page, also click on the email address and launch the email app which viewers use on their comp. Thanks in advance for your suggestions. Cheers, Viajero <table width = "900" border = "1" cellspacing = "0"> <tr> <td width = "100" bordercolor = "blue">Name</td> <td width = "100" bordercolor = "blue"> Address</td> <td width = "40" bordercolor = "blue"> City</td> <td width = "15" bordercolor = "blue"> Prov</td> <td width = "70" bordercolor = "blue"> Phone Number</td> <td width = "100" bordercolor = "blue"> Email</td> </tr> <cfoutput query ="getMembers"> <tr> <td width = "100" bordorcolor = "blue" > #getMembers.firstname# #getMembers.lastname#</td> <td width = "100" bordorcolor = "blue" > #getMembers.address#</td> <td width = "40" bordorcolor = "blue" > #getMembers.city#</td> <td width = "15" bordorcolor = "blue" > #getMembers.prov#</td> <td width = "70" bordorcolor = "blue" > #getMembers.phone#</td> <td width = "100" bordorcolor = "blue" > #getMembers.email#</td> </tr> </cfoutput> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4861 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.15 |
|
|
Re: Make cfoutput data clickableCheck out the tutorial at: http://www.dmxzone.com/go?1515 I think it will answer all your questions. Also, get yourself a copy of the CF-WACK, as it covers this as well. Good luck! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4863 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.15 |
|
|
Re: Make cfoutput data clickableYou can just add the following for email: <td width = "100" bordorcolor = "blue" ><a href="mailto: #getMembers.email#">#getMembers.email#</a></td> You can use the variables just as if they were the actual result, as that is what will render in the HTML file. HTH Rob On Wed, Oct 28, 2009 at 9:18 AM, Rick Cummings <rick@...>wrote: > > Hello, > > I'm trying to find a way to make data from cfoutput clickable. > > The code below populates a table, and I want to be able to click on a > members name and launch a profile page, also click on the email address and > launch the email app which viewers use on their comp. > > Thanks in advance for your suggestions. > > Cheers, > > Viajero > > <table width = "900" border = "1" cellspacing = "0"> > <tr> > <td width = "100" bordercolor = "blue">Name</td> > <td width = "100" bordercolor = "blue"> Address</td> > <td width = "40" bordercolor = "blue"> City</td> > <td width = "15" bordercolor = "blue"> Prov</td> > <td width = "70" bordercolor = "blue"> Phone Number</td> > <td width = "100" bordercolor = "blue"> Email</td> > </tr> > > > <cfoutput query ="getMembers"> > <tr> > <td width = "100" bordorcolor = "blue" > #getMembers.firstname# > #getMembers.lastname#</td> > <td width = "100" bordorcolor = "blue" > #getMembers.address#</td> > <td width = "40" bordorcolor = "blue" > #getMembers.city#</td> > <td width = "15" bordorcolor = "blue" > #getMembers.prov#</td> > <td width = "70" bordorcolor = "blue" > #getMembers.phone#</td> > <td width = "100" bordorcolor = "blue" > #getMembers.email#</td> > </tr> > > </cfoutput> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4864 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.15 |
|
|
Re: Make cfoutput data clickable> Hello, > > I'm trying to find a way to make data from cfoutput clickable. > > The code below populates a table, and I want to be able to click on a > members name and launch a profile page, also click on the email > address and launch the email app which viewers use on their comp. > > Thanks in advance for your suggestions. > > Cheers, > > Viajero > > <table width = "900" border = "1" cellspacing = "0"> > <tr> > <td width = "100" bordercolor = "blue">Name</td> > <td width = "100" bordercolor = "blue"> Address</td> > <td width = "40" bordercolor = "blue"> City</td> > <td width = "15" bordercolor = "blue"> Prov</td> > <td width = "70" bordercolor = "blue"> Phone Number</td> > <td width = "100" bordercolor = "blue"> Email</td> > </tr> > > > <cfoutput query ="getMembers"> > <tr> > <td width = "100" bordorcolor = "blue" > #getMembers.firstname# > #getMembers.lastname#</td> > <td width = "100" bordorcolor = "blue" > #getMembers.address#</td> > <td width = "40" bordorcolor = "blue" > #getMembers.city#</td> > <td width = "15" bordorcolor = "blue" > #getMembers.prov#</td> > <td width = "70" bordorcolor = "blue" > #getMembers.phone#</td> > <td width = "100" bordorcolor = "blue" > #getMembers.email#</td> > </tr> > > </cfoutput> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4867 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.15 |
|
|
Re: Make cfoutput data clickable> Hello, > > I'm trying to find a way to make data from cfoutput clickable. > > The code below populates a table, and I want to be able to click on a > members name and launch a profile page, also click on the email > address and launch the email app which viewers use on their comp. > > Thanks in advance for your suggestions. > > Cheers, > > Viajero > > <table width = "900" border = "1" cellspacing = "0"> > <tr> > <td width = "100" bordercolor = "blue">Name</td> > <td width = "100" bordercolor = "blue"> Address</td> > <td width = "40" bordercolor = "blue"> City</td> > <td width = "15" bordercolor = "blue"> Prov</td> > <td width = "70" bordercolor = "blue"> Phone Number</td> > <td width = "100" bordercolor = "blue"> Email</td> > </tr> > > > <cfoutput query ="getMembers"> > <tr> > <td width = "100" bordorcolor = "blue" > #getMembers.firstname# > #getMembers.lastname#</td> > <td width = "100" bordorcolor = "blue" > #getMembers.address#</td> > <td width = "40" bordorcolor = "blue" > #getMembers.city#</td> > <td width = "15" bordorcolor = "blue" > #getMembers.prov#</td> > <td width = "70" bordorcolor = "blue" > #getMembers.phone#</td> > <td width = "100" bordorcolor = "blue" > #getMembers.email#</td> > </tr> > > </cfoutput> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4868 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.15 |
|
|
Re: Make cfoutput data clickable> Hello, > > I'm trying to find a way to make data from cfoutput clickable. > > The code below populates a table, and I want to be able to click on a > members name and launch a profile page, also click on the email > address and launch the email app which viewers use on their comp. > > Thanks in advance for your suggestions. > > Cheers, > > Viajero > > <table width = "900" border = "1" cellspacing = "0"> > <tr> > <td width = "100" bordercolor = "blue">Name</td> > <td width = "100" bordercolor = "blue"> Address</td> > <td width = "40" bordercolor = "blue"> City</td> > <td width = "15" bordercolor = "blue"> Prov</td> > <td width = "70" bordercolor = "blue"> Phone Number</td> > <td width = "100" bordercolor = "blue"> Email</td> > </tr> > > > <cfoutput query ="getMembers"> > <tr> > <td width = "100" bordorcolor = "blue" > #getMembers.firstname# > #getMembers.lastname#</td> > <td width = "100" bordorcolor = "blue" > #getMembers.address#</td> > <td width = "40" bordorcolor = "blue" > #getMembers.city#</td> > <td width = "15" bordorcolor = "blue" > #getMembers.prov#</td> > <td width = "70" bordorcolor = "blue" > #getMembers.phone#</td> > <td width = "100" bordorcolor = "blue" > #getMembers.email#</td> > </tr> > > </cfoutput> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4869 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.15 |
|
|
Re: Make cfoutput data clickableThanks Rob and Randi! the old <a href ...> (hit myself over the head) Cheers, thanks again! Viajero >You can just add the following for email: > > <td width = "100" bordorcolor = "blue" ><a href="mailto: >#getMembers.email#">#getMembers.email#</a></td> > >You can use the variables just as if they were the actual result, as that is >what will render in the HTML file. > >HTH > >Rob > >On Wed, Oct 28, 2009 at 9:18 AM, Rick Cummings <rick@...>wrote: > >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4870 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.15 |
| Free embeddable forum powered by Nabble | Forum Help |