Select to view content in your preferred language

Create Hyperlink Field in Javascript Application

1116
1
10-11-2011 10:41 AM
DanPajak
Regular Contributor
I've got a javascript app based on the sample "Find Features - no map" that returns address and owner information in a datagrid. I've joined another table to it that has a field with a url. I'd like that field to be a hyperlink based on the value of the url. The value of the url is based on the Property Index Number assigned by the County.

I'm new to Javascript and thought I'd use link() method, but I can't seem to get the syntax correct. I've also seen <a href=http://www.entireURLHere.htm target=start>text you want displayed</a>, but again not sure where to fit the syntax in correctly.

Any ideas? I believe it should be entered just after function.showresults in the attribs section (between line 40 and 56).
0 Kudos
1 Reply
DanPajak
Regular Contributor
Problem solved:

<td nowrap><font size=2.5><a href=" + attribs.LINK + " target=start ;'>Click for Link!</a></font></td>

href was formatted wrong.
0 Kudos